User`s manual
88 www.rabbit.com Applications Programming
6.6.4 Digital Outputs
flexDigOut
int flexDigOut(Flex_IOPin *pin, int state);
DESCRIPTION
Sets the state of a digital output channel and is non-reentrant.
Note that this function takes into account any inversion by the circuit on the given pin so that the
called state is always reflected on the output pin.
PARAMETERS
pin Pointer to the information structure for the selected I/O pin.
state Output logic value:
0 = logic low
1 = logic high
2 = tristated (valid for push-pull outputs)
RETURN VALUE
0: success
<0: error (not a valid digital output?)
SEE ALSO
flexDigShadow, flexDigIn, flexDigInGroup16, flexDigOutGroup16