DlnPwmEnable() Function
DLN_RESULT DlnPwmEnable(
HDLN handle,
uint8_t port,
uint16_t* conflict
);
The DlnPwmEnable() function activates the corresponding PWM port of your DLN-series adapter.
Parameters:
- handle
- A handle to the DLN-series adapter.
- port
- A number of the PWM port to be activated.
- conflict
-
A pointer to an unsigned 16-bit integer. The integer will be filled with the number of the conflicted pin, if any.
A conflict arises if a pin is already assigned to another module of the DLN-series adapter and cannot be used for the PWM module. To fix this a user has to disconnect a pin from a module that it has been assigned to and call the DlnPwmEnable() function once again. In case there still are conflicted pins, only the number of the next one will be returned.
Results:
| Result | Description |
|---|---|
| DLN_RES_SUCCESS | Function was succesfully executed. |
This function is defined in the dln_pwm.h file.
2006-2012