Class CANServoHubJNI
java.lang.Object
com.revrobotics.jni.RevJNIWrapper
com.revrobotics.jni.CANServoHubJNI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intc_ServoHub_ClearFaults(long handle) static voidc_ServoHub_Close(long handle) static intc_ServoHub_Configure(long handle, String flattenedString, boolean resetSafeParameters) static intc_ServoHub_ConfigureAsync(long handle, String flattenedString, boolean resetSafeParameters) static longc_ServoHub_Create(int busId, int deviceId) static voidc_ServoHub_CreateSimFaultManager(long handle) static voidc_ServoHub_Destroy(long handle) static booleanc_ServoHub_GetChannelDisableBehavior(long handle, int channel) static voidc_ServoHub_GetChannelPulseRange(long handle, int channel, ServoChannelConfig.PulseRange pulseRange) static intc_ServoHub_GetControlFramePeriod(long handle) static voidc_ServoHub_GetFirmwareVersion(long handle, ServoHubLowLevel.FirmwareVersion version) static intc_ServoHub_GetParameterType(int paramId) c_ServoHub_GetPeriodStatus0(long handle) c_ServoHub_GetPeriodStatus1(long handle) c_ServoHub_GetPeriodStatus2(long handle) c_ServoHub_GetPeriodStatus3(long handle) c_ServoHub_GetPeriodStatus4(long handle) static intc_ServoHub_RegisterId(int busId, int deviceId) static intc_ServoHub_SetBankPulsePeriod(long handle, int bank, int pulsePeriod_us) static voidc_ServoHub_SetCANMaxRetries(long handle, int numRetries) static intc_ServoHub_SetCANTimeout(long handle, int timeout_ms) static intc_ServoHub_SetChannelEnabled(long handle, int channel, boolean enabled) static intc_ServoHub_SetChannelPowered(long handle, int channel, boolean powered) static intc_ServoHub_SetChannelPulseWidth(long handle, int channel, int pulseWidth_us) static voidc_ServoHub_SetControlFramePeriod(long handle, int period_ms) static voidc_ServoHub_SetPeriodicFrameTimeout(long handle, int timeout_ms)
-
Constructor Details
-
CANServoHubJNI
public CANServoHubJNI()
-
-
Method Details
-
c_ServoHub_RegisterId
public static int c_ServoHub_RegisterId(int busId, int deviceId) -
c_ServoHub_Create
public static long c_ServoHub_Create(int busId, int deviceId) -
c_ServoHub_Close
public static void c_ServoHub_Close(long handle) -
c_ServoHub_Destroy
public static void c_ServoHub_Destroy(long handle) -
c_ServoHub_GetFirmwareVersion
public static void c_ServoHub_GetFirmwareVersion(long handle, ServoHubLowLevel.FirmwareVersion version) -
c_ServoHub_SetPeriodicFrameTimeout
public static void c_ServoHub_SetPeriodicFrameTimeout(long handle, int timeout_ms) -
c_ServoHub_SetCANTimeout
public static int c_ServoHub_SetCANTimeout(long handle, int timeout_ms) -
c_ServoHub_SetCANMaxRetries
public static void c_ServoHub_SetCANMaxRetries(long handle, int numRetries) -
c_ServoHub_SetControlFramePeriod
public static void c_ServoHub_SetControlFramePeriod(long handle, int period_ms) -
c_ServoHub_GetControlFramePeriod
public static int c_ServoHub_GetControlFramePeriod(long handle) -
c_ServoHub_GetPeriodStatus0
-
c_ServoHub_GetPeriodStatus1
-
c_ServoHub_GetPeriodStatus2
-
c_ServoHub_GetPeriodStatus3
-
c_ServoHub_GetPeriodStatus4
-
c_ServoHub_Configure
public static int c_ServoHub_Configure(long handle, String flattenedString, boolean resetSafeParameters) -
c_ServoHub_ClearFaults
public static int c_ServoHub_ClearFaults(long handle) -
c_ServoHub_SetBankPulsePeriod
public static int c_ServoHub_SetBankPulsePeriod(long handle, int bank, int pulsePeriod_us) -
c_ServoHub_GetChannelPulseRange
public static void c_ServoHub_GetChannelPulseRange(long handle, int channel, ServoChannelConfig.PulseRange pulseRange) -
c_ServoHub_GetChannelDisableBehavior
public static boolean c_ServoHub_GetChannelDisableBehavior(long handle, int channel) -
c_ServoHub_SetChannelPulseWidth
public static int c_ServoHub_SetChannelPulseWidth(long handle, int channel, int pulseWidth_us) -
c_ServoHub_SetChannelEnabled
public static int c_ServoHub_SetChannelEnabled(long handle, int channel, boolean enabled) -
c_ServoHub_SetChannelPowered
public static int c_ServoHub_SetChannelPowered(long handle, int channel, boolean powered) -
c_ServoHub_ConfigureAsync
public static int c_ServoHub_ConfigureAsync(long handle, String flattenedString, boolean resetSafeParameters) -
c_ServoHub_GetParameterType
public static int c_ServoHub_GetParameterType(int paramId) -
c_ServoHub_CreateSimFaultManager
public static void c_ServoHub_CreateSimFaultManager(long handle)
-