001/* 002 * Copyright (C) Cross The Road Electronics. All rights reserved. 003 * License information can be found in CTRE_LICENSE.txt 004 * For support and suggestions contact support@ctr-electronics.com or file 005 * an issue tracker at https://github.com/CrossTheRoadElec/Phoenix-Releases 006 */ 007package com.ctre.phoenix6.configs.jni; 008 009import java.nio.ByteBuffer; 010 011import com.ctre.phoenix6.jni.CtreJniWrapper; 012 013public class ConfigJNI extends CtreJniWrapper { 014 public String serializedString = ""; // don't let this be null 015 016 public native int SetConfigs(ByteBuffer network, int deviceHash, double timeoutSeconds, boolean futureProofConfigs, 017 boolean overrideIfDuplicate); 018 019 public native int GetConfigs(ByteBuffer network, int deviceHash, double timeoutSeconds); 020 021 public static native String Serializedouble(int spn, double val); 022 023 public static native String Serializeint(int spn, int val); 024 025 public static native String Serializeboolean(int spn, boolean val); 026 027 public static native double Deserializedouble(int spn, String str); 028 029 public static native int Deserializeint(int spn, String str); 030 031 public static native boolean Deserializeboolean(int spn, String str); 032}