
User’s Manual
47
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
digOut, digBankIn
Reads the state of a block of designated digital input channels. One bank consists of IN0–IN07, and the
other bank consists of IN08–IN15. This call is faster than reading the individual channels, but does not
read the states simultaneously. States are read in succession from IN15–IN08 or from IN07–IN00.
A run-time error will occur for the following conditions:
1.
bank
is out of range.
2.
brdInit
was not called first.
PARAMETER
bank
is 0 for the bank of digital inputs IN00–IN07, 1 for the bank of digital inputs 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.
EXAMPLE
To read inputs 8 to 15:
int digBankIn(1);
SEE ALSO
digIn, digBankOut
int digIn(int channel);
int digBankIn(int bank);
Summary of Contents for Coyote BL2500
Page 1: ...Coyote BL2500 C Programmable Single Board Computer with Ethernet User s Manual 019 0120_M...
Page 6: ...Coyote BL2500...
Page 90: ...84 Coyote BL2500...
Page 104: ...98 Coyote BL2500...
Page 106: ......