eth32_get_pwm_base_period

int eth32_get_pwm_base_period(eth32 handle, int *period);

Summary

This function retrieves the currently configured base period for the PWM channels. See the eth32_set_pwm_base_period function for more information about the PWM base period.

Parameters

  • handle - The value returned by the eth32_open function.

  • period - Pointer to a variable which will receive the currently configured PWM base period, in terms of number 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_channel, eth32_get_pwm_clock_state, eth32_get_pwm_duty_period, eth32_set_pwm_base_period