Distributor of Digi International: Excellent Integrated System Limited
Datasheet of 20-101-1194 - MODULE RABBITCORE RCM3309 ROHS
Contact us: [email protected] Website: www.integrated-circuit.com
User’s Manual
41
5.2.6.2 Digital I/O
digIn
int digIn(int channel);
DESCRIPTION
Reads the input state of a digital input on headers J5 and J6 on the Prototyping Board.
Do not use this function call if you configure these pins for alternate use after
brdInit()
is called.
A runtime error will occur if
brdInit()
has not been called first.
PARAMETER
channel
the channel number corresponding to the digital input channel:
0—IN0
1—IN1
2—IN2
3—IN3
4—QD1B
5—QD1A
6—QD2B
7—QD2A
RETURN VALUE
The logic state (0 or 1) of the input. A run-time error will occur if the
channel
parameter is out of range.
SEE ALSO
brdInit
48 / 191
48 / 191