int eth32_get_pwm_channel(eth32 handle, int channel, int *state);
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.
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
This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.