The DlnPwmChannelIsEnabled() retrieves information, whether the specified PWM channel is activated.
DlnPwmChannelIsEnabled()
DLN_RESULT DlnPwmChannelIsEnabled( HDLN handle, uint8_t port, uint8_t channel, uint8_t* enabled );
A handle to the DLN-series adapter.
A number of the PWM port.
A number of the PWM channel.
A pointer to an unsigned 8-bit integer that receives the information about the specified PWM channel. There are two possible values:
0 or DLN_PWM_DISABLED - The PWM channel is released.
DLN_PWM_DISABLED
1 or DLN_PWM_ENABLED - The PWM channel is activated.
DLN_PWM_ENABLED
The function successfully retrieved information about the channel.
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 DlnPwmChannelIsEnabled() function is defined in the dln_pwm.h file.
dln_pwm.h