User`s manual

RabbitFLEX User’s Manual www.rabbit.com 97
flexAnaInVoltsAverage
float flexAnaInVoltsAverage(Flex_IOPin *pin);
DESCRIPTION
This function is like flexAnaInVolts(), except that it reports the most recent discount av-
eraged voltage value instead of the raw voltage value.
To set the discount average alpha value, execute flexAnaInAverageSetting() before
calling this function.
This function is non-reentrant.
PARAMETER
pin Pointer to the information structure for the selected analog input pin.
RETURN VALUE
0: A value corresponding to the voltage on the analog input channel
FLEX_ANAIN_ERROR: overflow, out of range, or not an analog input
SEE ALSO
flexAnaInAverageSetting, flexAnaInAverage,
flexAnaInmAmpsAverage