User`s manual
98 www.rabbit.com Applications Programming
flexAnaInmAmpsAverage
float flexAnaInmAmpsAverage(Flex_IOPin *pin);
DESCRIPTION
This function is like flexAnaInmAmps(), except that it reports the most recent discount av-
eraged current reading instead of the raw current reading.
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 milliamp value corresponding to the current on the analog input channel
FLEX_ANAIN_ERROR: overflow, out of range, or not an analog input
SEE ALSO
flexAnaInAverageSetting, flexAnaInAverage,
flexAnaInVoltsAverage