eth32_get_pwm_channel

int eth32_get_pwm_channel(eth32 handle, int channel, int *state);

Summary

This function retrieves the current state of a PWM channel on the ETH32 device. Please see the eth32_set_pwm_channel function for more information about the possible channel states and their meanings.

Parameters

  • handle - The value returned by the eth32_open function.

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

  • state - Pointer to a variable which will receive the state of the channel. This will be set to PWM_CHANNEL_DISABLED, PWM_CHANNEL_NORMAL, or PWM_CHANNEL_INVERTED

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_clock_state, eth32_get_pwm_duty_period, eth32_set_pwm_channel