C API for BALTECH SDK

§ brp_DHWCtrl_PortConfig()

brp_errcode brp_DHWCtrl_PortConfig ( brp_protocol  protocol,
unsigned  Port,
unsigned  Mode 
)

Configures a port.

Parameters
[in]protocolused to execute the command
[in]PortNumber of port to access.
[in]ModeThere 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