DlnPwmChannelIsEnabled() Function
DLN_RESULT DlnPwmChannelIsEnabled(
HDLN handle,
uint8_t port,
uint8_t channel,
uint8_t* enabled
);
The DlnPwmChannelIsEnabled() retrieves information, whether the specified PWM channel is activated.
Parameters:
- handle
- A handle to the DLN-series adapter.
- port
- A number of the PWM port to retrieve the information from.
- channel
- A number of the PWM channel to retrieve the information from.
- enabled
-
A pointer to an unsigned 8-bit integer. The integer will be filled with the information whether the specified PWM channel is activated. There are two possible values:
Value Description 0 or DLN_PWM_DISABLED PWM channel is deactivated. 1 or DLN_PWM_ENABLED PWM channel is activated.
Results:
| Result | Description |
|---|---|
| DLN_RES_SUCCESS | Function was succesfully executed. |
This function is defined in the dln_pwm.h file.
2006-2012