BL4S200 User’s Manual
82
digOut
void digOut(int channel, int state);
FUNCTION DESCRIPTION
Sets the state of a configurable I/O channel configured as a sinking digital output
to a logic 0 or a logic 1. This function will only allow control of pins that are configured
by the
setDigOut()
function call to be a sinking digital output.
PARAMETERS
channel
digital output channel, 0–31 (DIO0–DIO31).
state
set output to one of the following states:
0 — connects the load to GND
1 — puts the output in a high-impedance tristate.
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter value.
-EPERM
— pin function was not set up as a digital output
SEE ALSO
brdInit, setDigOut, digOutBank