This section describes the PWM Interface functions. They are used to control and monitor the PWM module of a DLN-series adapter.
Retrieves the number of ports that can be assigned to the PWM module.
Assigns a port to the PWM module.
Unassigns a port to the PWM module.
Retrieves whether a port is assigned to the PWM module.
Retrieves the number of channels available to the PWM port.
Activates a channel of the PWM port.
Releases a channel of the PWM port.
Retrieves whether a channel is activated.
Configures the duty cycle value for the specified PWM port.
Retrieves the current duty cycle value for the specified PWM port.
Configures the frequency value for the specified PWM port.
Retrieves the current frequency value for the specified PWM port.
Retrieves the maximum frequency value for the specified PWM port.
Retrieves the minimum frequency value for the specified PWM port.
The dln_pwm.h
file declares the PWM Interface functions.
The DlnPwmGetPortCount()
function retrieves the number of PWM ports available in your DLN-series adapter.
The DlnPwmEnable()
function activates the corresponding PWM port of your DLN-series adapter.
The DlnPwmDisable()
function releases the specified PWM port of your DLN-series adapter.
The DlnPwmIsEnabled()
function retrieves information, whether the specified port is assigned to the PWM module.
The DlnPwmGetChannelCount()
function retrieves the number of PWM channels available in the specified PWM-port of your DLN-series adapter.
The DlnPwmChannelEnable()
function activates the specified channel from the corresponding PWM port of your DLN-series adapter.
The DlnPwmChannelDisable()
function releases the specified channel from the corresponding PWM port of your DLN-series adapter.
The DlnPwmChannelIsEnabled()
retrieves information, whether the specified PWM channel is activated.
The DlnPwmSetDutyCycle()
function defines a PWM duty cycle value, which is the ratio of the high time to the PWM period.
The DlnPwmGetDutyCycle()
function retrieves the current PWM duty cycle value.
The DlnPwmSetFrequency()
function defines the PWM frequency.
The DlnPwmGetFrequency()
function retrieves the current PWM frequency.
The DlnPwmGetMaxFrequency()
function retrieves the maximum possible value of the PWM frequency.
The DlnPwmGetMinFrequency()
function retrieves the minimum possible value of the PWM frequency.