PWM Functions

This section describes the PWM functions. They are used to control and monitor the PWM module of a DLN-series adapter.

Actual control of the device is performed by use of commands and responses. Each function utilizes respective commands and responses. You can send such commands directly if necessary.

Function Description
DlnPwmGetPortCount() Function retrieves the number of PWM ports available in your DLN-series adapter.
DlnPwmGetChannelCount() Function retrieves the number of PWM channels, available in the specified PWM-port of your DLN-series adapter.
DlnPwmEnable() Function activates the corresponding PWM port of your DLN-series adapter.
DlnPwmDisable() Function deactivates the specified PWM port of your DLN-series adapter.
DlnPwmIsEnabled() Function retrieves information, whether the specified PWM port is activated.
DlnPwmChannelEnable() Function activates the specified channel from the corresponding PWM port of your DLN-series adapter.
DlnPwmChannelDisable() Function activates the specified channel from the corresponding PWM port of your DLN-series adapter.
DlnPwmChannelIsEnabled() Retrieves information, whether the specified PWM channel is activated.
DlnPwmSetFrequency() FDlnPwmGetFrequencyunction sets the PWM frequency.
DlnPwmGetFrequency() Function retrieves current setting for PWM frequency.
DlnPwmSetDutyCycle() Function sets a PWM duty cycle, which is the ratio of the high time to the PWM period.
DlnPwmGetDutyCycle() Function retrieves the currently set PWM duty cycle from your DLN-series adapter.