BL4S100 User’s Manual
50
digInBank
int digInBank(int bank);
FUNCTION DESCRIPTION
Reads the state of the 12 digital input channels in banks of up to 8 input channels.
PARAMETER
bank
digital input bank pins:
0 — IN0–IN7
1 — IN8–IN11
RETURN VALUE
Data read from the bank of digital inputs.
-EINVAL
— invalid parameter value.
SEE ALSO
brdInit, digIn, setDigIn
Data Bits
Bank 0
Bank 1
LSB
D0
IN0
IN8
D1
IN1
IN9
D2
IN2
IN10
D3
IN3
IN11
D4
IN4
not used
D5
IN5
D6
IN6
MSB
D7
IN7