BALTECH Docs |
C API for BALTECH SDK
|
brp_errcode brp_DHWCtrl_PortConfig | ( | brp_protocol | protocol, |
unsigned | Port, | ||
unsigned | Mode | ||
) |
Configures a port.
[in] | protocol | used to execute the command |
[in] | Port | Number of port to access. |
[in] | Mode | There are four modes possible: * OUTPUT_LOW - 0: The port is pushed to low level. * OUTPUT_HIGH - 1: The port is pushed to high level. * INPUT_TRISTATE - 2: The port is in very high resistance mode. * INPUT_PULLUP - 3: The port drives a positive voltage over a resistor |