eth32_set_pwm_clock_state

int eth32_set_pwm_clock_state(eth32 handle, int state);

Summary

This function enables or disables the PWM clock from counting. The PWM clock is shared between both PWM outputs of the device. When the PWM clock is disabled, the PWM outputs will be idle (not pulsing). The PWM clock may be enabled or disabled independently of whether the individual PWM channel outputs are enabled or disabled.

Parameters

  • handle - The value returned by the eth32_open function.

  • state - This may be PWM_CLOCK_DISABLED to disable the clock or PWM_CLOCK_ENABLED to enable the clock.

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_clock_state, eth32_set_pwm_base_period, eth32_set_pwm_channel, eth32_set_pwm_duty_period,