pub unsafe extern "C" fn CANSparkMax_GetAlternateEncoder(
this: *mut CANSparkMax,
countsPerRev: c_int,
) -> SparkMaxAlternateEncoderExpand description
Returns an object for interfacing with a quadrature encoder connected to the alternate encoder mode data port pins. These are defined as:
Pin 4 (Forward Limit Switch): Index Pin 6 (Multi-function): Encoder A Pin 8 (Reverse Limit Switch): Encoder B
This call will disable support for the limit switch inputs.