[][src]Function wpilib_sys::bindings::HAL_InitializeEncoder

pub unsafe extern "C" fn HAL_InitializeEncoder(
    digitalSourceHandleA: HAL_Handle,
    analogTriggerTypeA: Type,
    digitalSourceHandleB: HAL_Handle,
    analogTriggerTypeB: Type,
    reverseDirection: HAL_Bool,
    encodingType: Type,
    status: *mut i32
) -> HAL_EncoderHandle

Initializes an encoder.

@param digitalSourceHandleA the A source (either a HAL_DigitalHandle or a HAL_AnalogTriggerHandle) @param analogTriggerTypeA the analog trigger type of the A source if it is an analog trigger @param digitalSourceHandleB the B source (either a HAL_DigitalHandle or a HAL_AnalogTriggerHandle) @param analogTriggerTypeB the analog trigger type of the B source if it is an analog trigger @param reverseDirection true to reverse the counting direction from standard, otherwise false @param encodingType the encoding type @return the created encoder handle