eth32_get_pwm_clock_state

int eth32_get_pwm_clock_state(eth32 handle, int *state);

Summary

This function retrieves the current state (enabled or disabled) of the device's PWM clock.

Parameters

  • handle - The value returned by the eth32_open function.

  • state - Pointer to a variable which will receive the status of the PWM clock. This will be set to PWM_CLOCK_DISABLED or PWM_CLOCK_ENABLED.

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_duty_period, eth32_set_pwm_clock_state