BL4S200 User’s Manual
70
digInBank
int digInBank(int bank);
FUNCTION DESCRIPTION
Reads the state of the 32 configurable I/O channels.
PARAMETER
bank
digital input bank pins:
0 — DIO0–DIO7
1 — DIO8–DIO15
2 — DIO16–DIO23
3 — DIO24–DIO31
RETURN VALUE
Data read from the bank of digital inputs.
-EINVAL
— invalid parameter value.
-EPERM
— pin functionality does not permit this operation.
SEE ALSO
brdInit, digIn, setDigIn
Data Bits
Bank 0
Bank 1
Bank 2
Bank 3
LSB
D0
DIO0
DIO8
DIO16
DIO24
D1
DIO1
DIO9
DIO17
DIO25
D2
DIO2
DIO10
DIO18
DIO26
D3
DIO3
DIO11
DIO19
DIO27
D4
DIO4
DIO12
DIO20
DIO28
D5
DIO5
DIO13
DIO21
DIO29
D6
DIO6
DIO14
DIO22
DIO30
MSB
D7
DIO7
DIO15
DIO23
DIO31
electronic components distributor