User`s manual

86 www.rabbit.com Applications Programming
6.6.3 Digital Inputs
flexDigIn
int flexDigIn(Flex_IOPin *pin);
DESCRIPTION
Reads the state of a digital input channel. This function is non-reentrant.
PARAMETER
pin Pointer to the information structure for the selected I/O pin.
RETURN VALUE
0: logic low
1: logic high
<0: error (not a valid digital input?)
SEE ALSO
flexDigShadow, flexDigOut, flexDigInGroup16, flexDigOutGroup16