pic32/libraries/SoftPWMServo/SoftPWMServo.cpp
// return the current PWM value
// Return SOFTPWM_ERROR if pin not enabled
return the current PWM value
Return SOFTPWM_ERROR if pin not enabled
return the current PWM value Return SOFTPWM_ERROR if pin not enabled
int32_t SoftPWMServoRawRead(uint32_t Pin) 
{
    if (Pin >= SOFTPWMSERVO_MAX_PINS)
    {
        return SOFTPWMSERVO_ERROR;
    }
    if (Chan[InactiveBuffer][Pin].SetPort == NULL)
    {
        return SOFTPWMSERVO_ERROR;
    }
    else
    {
        return Chan[ActiveBuffer][Pin].PWMValue;
    }
}
int32_t SoftPWMServoRawRead ( uint32_t Pin ) { if ( Pin >= SOFTPWMSERVO_MAX_PINS ) { return SOFTPWMSERVO_ERROR ; } if ( Chan [ InactiveBuffer ] [ Pin ] . SetPort == NULL ) { return SOFTPWMSERVO_ERROR ; } else { return Chan [ ActiveBuffer ] [ Pin ] . PWMValue ; } }
return the current PWM value
Return SOFTPWM_ERROR if pin not enabled
return the current PWM value Return SOFTPWM_ERROR if pin not enabled