The DlnPwmGetChannelCount() function retrieves the number of PWM channels available in the specified PWM-port of your DLN-series adapter.
DlnPwmGetChannelCount()
DLN_RESULT DlnPwmGetChannelCount( HDLN handle, uint8_t port, uint8_t* count );
A handle to the DLN-series adapter.
A PWM port to retrieve the number of channels from.
A pointer to an unsigned 8-bit integer that receives the available number of channels in the specified PWM port of the DLN-series adapter.
The function successfully retrieved the number of channels.
The port number is not valid. Use the DlnPwmGetPortCount() function to find the maximum possible port number.
The DlnPwmGetChannelCount() function is defined in the dln_pwm.h file.
dln_pwm.h