Package com.revrobotics.jni
Class CANServoHubJNI
java.lang.Object
com.revrobotics.jni.RevJNIWrapper
com.revrobotics.jni.CANServoHubJNI
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
c_ServoHub_ClearFaults
(long handle) static int
c_ServoHub_Configure
(long handle, String flattenedString, boolean resetSafeParameters) static int
c_ServoHub_ConfigureAsync
(long handle, String flattenedString, boolean resetSafeParameters) static long
c_ServoHub_Create
(int deviceId) static void
c_ServoHub_CreateSimFaultManager
(long handle) static void
c_ServoHub_Destroy
(long handle) static float
c_ServoHub_GetChannelCurrent
(long handle, int channel) static boolean
c_ServoHub_GetChannelDisableBehavior
(long handle, int channel) static boolean
c_ServoHub_GetChannelEnabled
(long handle, int channel) static void
c_ServoHub_GetChannelPulseRange
(long handle, int channel, ServoChannelConfig.PulseRange pulseRange) static int
c_ServoHub_GetChannelPulseWidth
(long handle, int channel) static int
c_ServoHub_GetControlFramePeriod
(long handle) static float
c_ServoHub_GetDeviceCurrent
(long handle) static float
c_ServoHub_GetDeviceVoltage
(long handle) static int
c_ServoHub_GetFaults
(long handle) static void
c_ServoHub_GetFirmwareVersion
(long handle, ServoHubLowLevel.FirmwareVersion version) static int
c_ServoHub_GetParameterType
(int paramId) static void
c_ServoHub_GetPeriodStatus0
(long handle, ServoHubLowLevel.PeriodicStatus0 status0) static void
c_ServoHub_GetPeriodStatus1
(long handle, ServoHubLowLevel.PeriodicStatus1 status1) static void
c_ServoHub_GetPeriodStatus2
(long handle, ServoHubLowLevel.PeriodicStatus2 status2) static void
c_ServoHub_GetPeriodStatus3
(long handle, ServoHubLowLevel.PeriodicStatus3 status3) static void
c_ServoHub_GetPeriodStatus4
(long handle, ServoHubLowLevel.PeriodicStatus4 status4) static float
c_ServoHub_GetServoVoltage
(long handle) static int
c_ServoHub_GetStickyFaults
(long handle) static int
c_ServoHub_GetStickyWarnings
(long handle) static int
c_ServoHub_GetWarnings
(long handle) static int
c_ServoHub_RegisterId
(int deviceId) static int
c_ServoHub_SetBankPulsePeriod
(long handle, int bank, int pulsePeriod_us) static void
c_ServoHub_SetCANMaxRetries
(long handle, int numRetries) static int
c_ServoHub_SetCANTimeout
(long handle, int timeout_ms) static int
c_ServoHub_SetChannelEnabled
(long handle, int channel, boolean enabled) static int
c_ServoHub_SetChannelPowered
(long handle, int channel, boolean powered) static int
c_ServoHub_SetChannelPulseWidth
(long handle, int channel, int pulseWidth_us) static void
c_ServoHub_SetControlFramePeriod
(long handle, int period_ms) static void
c_ServoHub_SetPeriodicFrameTimeout
(long handle, int timeout_ms)
-
Constructor Details
-
CANServoHubJNI
public CANServoHubJNI()
-
-
Method Details
-
c_ServoHub_RegisterId
public static int c_ServoHub_RegisterId(int deviceId) -
c_ServoHub_Create
public static long c_ServoHub_Create(int deviceId) -
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
public static void c_ServoHub_GetPeriodStatus0(long handle, ServoHubLowLevel.PeriodicStatus0 status0) -
c_ServoHub_GetPeriodStatus1
public static void c_ServoHub_GetPeriodStatus1(long handle, ServoHubLowLevel.PeriodicStatus1 status1) -
c_ServoHub_GetPeriodStatus2
public static void c_ServoHub_GetPeriodStatus2(long handle, ServoHubLowLevel.PeriodicStatus2 status2) -
c_ServoHub_GetPeriodStatus3
public static void c_ServoHub_GetPeriodStatus3(long handle, ServoHubLowLevel.PeriodicStatus3 status3) -
c_ServoHub_GetPeriodStatus4
public static void c_ServoHub_GetPeriodStatus4(long handle, ServoHubLowLevel.PeriodicStatus4 status4) -
c_ServoHub_Configure
public static int c_ServoHub_Configure(long handle, String flattenedString, boolean resetSafeParameters) -
c_ServoHub_GetFaults
public static int c_ServoHub_GetFaults(long handle) -
c_ServoHub_GetStickyFaults
public static int c_ServoHub_GetStickyFaults(long handle) -
c_ServoHub_GetWarnings
public static int c_ServoHub_GetWarnings(long handle) -
c_ServoHub_GetStickyWarnings
public static int c_ServoHub_GetStickyWarnings(long handle) -
c_ServoHub_ClearFaults
public static int c_ServoHub_ClearFaults(long handle) -
c_ServoHub_GetDeviceVoltage
public static float c_ServoHub_GetDeviceVoltage(long handle) -
c_ServoHub_GetDeviceCurrent
public static float c_ServoHub_GetDeviceCurrent(long handle) -
c_ServoHub_GetServoVoltage
public static float c_ServoHub_GetServoVoltage(long handle) -
c_ServoHub_SetBankPulsePeriod
public static int c_ServoHub_SetBankPulsePeriod(long handle, int bank, int pulsePeriod_us) -
c_ServoHub_GetChannelPulseWidth
public static int c_ServoHub_GetChannelPulseWidth(long handle, int channel) -
c_ServoHub_GetChannelEnabled
public static boolean c_ServoHub_GetChannelEnabled(long handle, int channel) -
c_ServoHub_GetChannelCurrent
public static float c_ServoHub_GetChannelCurrent(long handle, int channel) -
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)
-