The DlnPwmGetDutyCycle() function retrieves the current PWM duty cycle value.
DlnPwmGetDutyCycle()
DLN_RESULT DlnPwmGetDutyCycle( HDLN handle, uint8_t port, uint8_t channel, double* dutyCycle );
A handle to the DLN-series adapter.
A number of the PWM port.
A number of the PWM channel.
A pointer to the double precision floating point number that receives the current duty cycle.
The function successfully retrieved the current duty cycle value.
The port number is not valid. Use the DlnPwmGetPortCount() function to find the maximum possible port number.
The channel number is not valid. Use the DlnPwmGetChannelCount() function to find the maximum possible port number.
The DlnPwmGetDutyCycle() function is defined in the dln_pwm.h file.
dln_pwm.h