Z-World Fox LP3500 User Manual page 55

C-programmable single-board computer
Table of Contents

Advertisement

int digIn(int channel);
Reads the state of an input channel (IN00–IN15).
A run-time error will occur for the following conditions:
1. channel out of range.
2. brdInit was not executed before executing digIn.
PARAMETER
channel is the input channel number (0–15)
RETURN VALUE
The logic state of the input (0 or 1).
SEE ALSO
brdInit, digOut, digBankIn
void digBankIn(int bank);
Reads the state of a block of designated digital input channels. The first bank consists of IN0–IN07, the
second bank consists of IN08–IN15.
A run-time error will occur for the following conditions:
1. bank out of range.
2. brdInit was not executed before executing digIn.
PARAMETER
bank is 0 for IN00–IN07, 1 for IN08–IN15.
RETURN VALUE
An input value in the lower byte, where each bit corresponds to one channel. IN00 and IN08 are in the
bit 0 place.
SEE ALSO
brdInit, digOut, digBankOut
User's Manual
49

Advertisement

Table of Contents
loading

Related Products for Z-World Fox LP3500

Table of Contents