BL4S100 User’s Manual
64
digOutBank
int digOutBank(char bank, char data);
FUNCTION DESCRIPTION
Sets the state (logic 0 or logic 1) of a bank of 8 digital output pins to the states contained
in the
data
parameter. This function only updates the channels that are configured to
be sinking digital outputs by the
setDigOut()
function call.
PARAMETERS
bank
digital output bank pins:
0 — OUT0–OUT7
data
data value to be written to the specified digital output bank; the
data format and bitwise value are as follows:
Bitwise value:
0 — connects the load to GND
1 — puts the output in a high-impedance state.
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter value or board not initialized.
SEE ALSO
brdInit, digOut, setDigOut
Data Bits
Bank 0
LSB
D0
OUT0
D1
OUT1
D2
OUT2
D3
OUT3
D4
OUT4
D5
OUT5
D6
OUT6
MSB
D7
OUT7