eth32_get_pwm_duty_period

int eth32_get_pwm_duty_period(eth32 handle, int channel, int *period);

Summary

This function retrieves the current duty period for the specified PWM channel on the ETH32 device. Please see the eth32_set_pwm_duty_period function for more information about the duty period.

Parameters

  • handle - The value returned by the eth32_open function.

  • channel - Specifies the PWM channel number (0 or 1).

  • period - Pointer to a variable which will receive the current duty period for the specified channel, in terms of PWM clock counts.

Return Value

This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.

See Also

eth32_get_pwm_base_period, eth32_get_pwm_channel, eth32_get_pwm_clock_state, eth32_set_pwm_duty_period