int eth32_get_pwm_duty_period(eth32 handle, int channel, int *period);
This function retrieves the current duty period for the specified PWM channel on the ETH32 device. Please see the eth32_set_pwm_duty_period function for more information about the duty period.
handle - The value returned by the eth32_open function.
channel - Specifies the PWM channel number (0 or 1).
period - Pointer to a variable which will receive the current duty period for the specified channel, in terms of PWM clock counts.
This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.