The DlnPwmSetDutyCycle() function defines a PWM duty cycle value, which is the ratio of the high time to the PWM period.
DlnPwmSetDutyCycle()
DLN_RESULT DlnPwmSetDutyCycle( HDLN handle, uint8_t port, uint8_t channel, double dutyCycle, double* actualDutyCycle );
A handle to the DLN-series adapter.
A number of the PWM port.
A number of the PWM channel.
A double precision floating point number. Must contain a duty cycle that should to be set. The value is specified in percents.
A pointer to a double precision floating point number that receives the actual duty cycle value.
The function successfully defined the 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 provided value is not valid.
The DlnPwmSetDutyCycle() function is defined in the dln_pwm.h file.
dln_pwm.h