Package com.ctre.phoenix
Class CANifierJNI
java.lang.Object
com.ctre.phoenix.CTREJNIWrapper
com.ctre.phoenix.CANifierJNI
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
JNI_ClearStickyFaults
(long handle, int timeoutMs) static int
JNI_ConfigClearPositionOnLimitF
(long handle, boolean clearPositionOnLimitF, int timeoutMs) static int
JNI_ConfigClearPositionOnLimitR
(long handle, boolean clearPositionOnLimitR, int timeoutMs) static int
JNI_ConfigClearPositionOnQuadIdx
(long handle, boolean clearPositionOnQuadIdx, int timeoutMs) static int
JNI_ConfigFactoryDefault
(long handle, int timeoutMs) static int
JNI_ConfigGetCustomParam
(long handle, int paramIndex, int timoutMs) static double
JNI_ConfigGetParameter
(long handle, int param, int ordinal, int timeoutMs) static int
JNI_ConfigSetCustomParam
(long handle, int newValue, int paramIndex, int timeoutMs) static int
JNI_ConfigSetParameter
(long handle, int param, double value, int subValue, int ordinal, int timeoutMs) static int
JNI_ConfigVelocityMeasurementPeriod
(long handle, int period, int timeoutMs) static int
JNI_ConfigVelocityMeasurementWindow
(long handle, int windowSize, int timeoutMs) static int
JNI_destroy_CANifier
(long handle) static void
JNI_EnablePWMOutput
(long handle, int pwmChannel, boolean bEnable) static double
JNI_GetBatteryVoltage
(long handle) static double
JNI_GetBusVoltage
(long handle) static int
JNI_GetFaults
(long handle) static int
JNI_GetFirmwareVersion
(long handle) static boolean
JNI_GetGeneralInput
(long handl, int inputPin) static void
JNI_GetGeneralInputs
(long handle, boolean[] allPins) static int
JNI_GetLastError
(long handle) static void
JNI_GetPWMInput
(long handle, int pwmChannel, double[] pulseWidthAndPeriod) static int
JNI_GetQuadraturePosition
(long handle) static int
JNI_GetQuadratureVelocity
(long handle) static int
JNI_GetStatusFramePeriod
(long handle, int frame, int timeoutMs) static int
JNI_GetStickyFaults
(long handle) static boolean
JNI_HasResetOccurred
(long handle) static long
JNI_new_CANifier
(int deviceNumber) static int
JNI_SetControlFramePeriod
(long handle, int frame, int periodMs) static void
JNI_SetGeneralOutput
(long handle, int outputPin, boolean outputValue, boolean outputEnable) static void
JNI_SetGeneralOutputs
(long handle, int outputBits, int isOutputBits) static void
JNI_SetLEDOutput
(long handle, int dutyCycle, int ledChannel) static void
JNI_SetPWMOutput
(long handle, int pwmChannel, int dutyCycle) static int
JNI_SetQuadraturePosition
(long handle, int newPosition, int timeoutMs) static int
JNI_SetStatusFramePeriod
(long handle, int statusFrame, int periodMs, int timeoutMs)
-
Constructor Details
-
CANifierJNI
public CANifierJNI()
-
-
Method Details
-
JNI_new_CANifier
-
JNI_destroy_CANifier
-
JNI_SetLEDOutput
-
JNI_SetGeneralOutputs
-
JNI_SetGeneralOutput
public static void JNI_SetGeneralOutput(long handle, int outputPin, boolean outputValue, boolean outputEnable) -
JNI_SetPWMOutput
-
JNI_EnablePWMOutput
-
JNI_GetGeneralInputs
-
JNI_GetGeneralInput
-
JNI_GetPWMInput
-
JNI_GetLastError
-
JNI_GetBatteryVoltage
-
JNI_GetQuadraturePosition
-
JNI_SetQuadraturePosition
-
JNI_GetQuadratureVelocity
-
JNI_ConfigVelocityMeasurementPeriod
-
JNI_ConfigVelocityMeasurementWindow
-
JNI_ConfigClearPositionOnLimitF
public static int JNI_ConfigClearPositionOnLimitF(long handle, boolean clearPositionOnLimitF, int timeoutMs) -
JNI_ConfigClearPositionOnLimitR
public static int JNI_ConfigClearPositionOnLimitR(long handle, boolean clearPositionOnLimitR, int timeoutMs) -
JNI_ConfigClearPositionOnQuadIdx
public static int JNI_ConfigClearPositionOnQuadIdx(long handle, boolean clearPositionOnQuadIdx, int timeoutMs) -
JNI_ConfigSetCustomParam
public static int JNI_ConfigSetCustomParam(long handle, int newValue, int paramIndex, int timeoutMs) -
JNI_ConfigGetCustomParam
-
JNI_ConfigSetParameter
public static int JNI_ConfigSetParameter(long handle, int param, double value, int subValue, int ordinal, int timeoutMs) -
JNI_ConfigGetParameter
-
JNI_ConfigFactoryDefault
-
JNI_SetStatusFramePeriod
public static int JNI_SetStatusFramePeriod(long handle, int statusFrame, int periodMs, int timeoutMs) -
JNI_GetStatusFramePeriod
-
JNI_SetControlFramePeriod
-
JNI_GetFirmwareVersion
-
JNI_HasResetOccurred
-
JNI_GetFaults
-
JNI_GetStickyFaults
-
JNI_ClearStickyFaults
-
JNI_GetBusVoltage
-