pub unsafe extern "C" fn CANSparkMax_GetReverseLimitSwitch1(
this: *mut CANSparkMax,
polarity: CANDigitalInput_LimitSwitchPolarity,
) -> SparkMaxLimitSwitchExpand description
Returns an object for interfacing with the reverse limit switch connected to the appropriate pins on the data port.
This call will disable support for the alternate encoder.
@param polarity Whether the limit switch is normally open or normally closed.
@deprecated Use GetReverseLimitSwitch(SparkMaxLimitSwitch::Type) instead