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