CANSparkMax_GetForwardLimitSwitch

Function CANSparkMax_GetForwardLimitSwitch 

Source
pub unsafe extern "C" fn CANSparkMax_GetForwardLimitSwitch(
    this: *mut CANSparkMax,
    switchType: SparkMaxLimitSwitch_Type,
) -> SparkMaxLimitSwitch
Expand description

Returns an object for interfacing with the forward limit switch connected to the appropriate pins on the data port.

This call will disable support for the alternate encoder.

@param switchType Whether the limit switch is normally open or normally closed.