User`s manual

RabbitFLEX User’s Manual www.rabbit.com 99
flexAnaInNewValue
int flexAnaInNewValue(Flex_IOPin *pin, int clear);
DESCRIPTION
Reports whether an updated value is available for the given analog input pin. If the clear pa-
rameter is 1, then a call to this function will clear the result that a new value is available, i.e., as-
suming that another new value has been processed and made available, the
flexAnaInNewValue() function will indicate that a new value is not available the next time
it is called.
PARAMETER
pin Pointer to the information structure for the requested pin.
clear Should be !0 (e.g., 1) to indicate that this new value should subsequently be
considered old. 0 indicates that this value will still be considered new on a
subsequent call.
RETURN VALUE
>0: a new value is available for this analog input
0: this analog input has not been updated
<0: error (not an analog output?)