DlnGpioPinSetDirection() Function
DLN_RESULT DlnGpioPinSetDirection(
HDLN handle,
uint8_t pin,
uint8_t direction
);
The DlnGpioPinSetDirection() function configures a pin as input or as output.
Parameters:
- handle
- A handle to the DLN-series adapter.
- pin
- A number of the GPIO pin to be configured.
- direction
- Direction of a pin. Set to 0 for input or 1 for output.
Results:
| Result | Description |
|---|---|
| DLN_RES_SUCCESS | The pin direction has been successfully retrieved. |
| DLN_RES_INVALID_PIN_NUMBER | Invalid pin number was specified. |
This function is defined in the dln_gpio.h file.
2006-2012