Function wpilib_sys::bindings::HAL_SetEncoderIndexSource
source · pub unsafe extern "C" fn HAL_SetEncoderIndexSource(
encoderHandle: HAL_EncoderHandle,
digitalSourceHandle: HAL_Handle,
analogTriggerType: Type,
type_: Type,
status: *mut i32
)Expand description
Sets the source for an index pulse on the encoder.
The index pulse can be used to cause an encoder to reset based on an external input.
@param encoderHandle the encoder handle @param digitalSourceHandle the index source handle (either a HAL_AnalogTriggerHandle of a HAL_DigitalHandle) @param analogTriggerType the analog trigger type if the source is an analog trigger @param type the index triggering type