Z-World Wolf BL2600 User Manual page 51

C-programmable single-board computer with ethernet
Table of Contents

Advertisement

void digOutBank(char bank, char data);
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.
Data Format
Data
D7
Bank 0
DIO07
Bank 1
DIO15
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
User's Manual
D6
D5
D4
DIO06
DIO05
DIO04
DIO14
DIO13
DIO12
D3
D2
D1
DIO03
DIO02
DIO01
DIO11
DIO10
DIO09
D0
DIO00
DIO08
47

Advertisement

Table of Contents
loading

Related Products for Z-World Wolf BL2600

Table of Contents