Z-World Wolf BL2600 User Manual - page 51
User’s Manual
47
Sets the state of a bank of configurable I/O channels (DIO00–DIO15) configured as sinking digital out-
puts to a logic 0 or a logic 1. This function only allows control of channels that are configured to be an
output by the digOutConfig function.
Remember to call the brdInit and the digOutConfig functions before executing this function.
A runtime error will occur for the following conditions:
1. bank is out of range.
2. brdInit or digOutConfig was not executed before executing digOutBank.
PARAMETERS
bank
is 0 or 1.
0 = DIO00–DIO07
1 = DIO08–DIO15
data
is a value to be written to the specified digital output bank. The data format and bitwise value are
as follows.
0 = connect the load to GND
1 = put the output in a high-impedance state
RETURN VALUE
None.
SEE ALSO
brdInit, digHout, digOutConfig, digBankOut, digIn
void digOutBank(char bank, char data);
Data Format
Data
D7
D6
D5
D4
D3
D2
D1
D0
Bank 0
DIO07
DIO06
DIO05
DIO04
DIO03
DIO02
DIO01
DIO00
Bank 1
DIO15
DIO14
DIO13
DIO12
DIO11
DIO10
DIO09
DIO08