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 com.ctre.phoenix6.jni.CtreJniWrapper; 010 011public class ConfigJNI extends CtreJniWrapper { 012 public String serializedString = ""; // don't let this be null 013 014 public native int SetConfigs(String network, int deviceHash, double timeoutSeconds, boolean futureProofConfigs, 015 boolean overrideIfDuplicate); 016 017 public native int GetConfigs(String network, int deviceHash, double timeoutSeconds); 018 019 public static native String Serializedouble(int spn, double val); 020 021 public static native String Serializeint(int spn, int val); 022 023 public static native String Serializeboolean(int spn, boolean val); 024 025 public static native double Deserializedouble(int spn, String str); 026 027 public static native int Deserializeint(int spn, String str); 028 029 public static native boolean Deserializeboolean(int spn, String str); 030}