User`s manual
94 www.rabbit.com Applications Programming
flexAnaInmAmps
float flexAnaInmAmps(Flex_IOPin *pin);
DESCRIPTION
Reads the state of the external analog input channel and uses the previously set calibration con-
stants to convert it to milliamps. This function is non-reentrant.
Also note that the value retrieved here is not read when requested; rather, the latest value that has
been calculated by the analog input interrupt service request is returned. The update rate is 2.5 ms
times the number of analog input channels.
PARAMETER
pin Pointer to the information structure for the selected 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
flexAnaIn, flexAnaInVolts, flexAnaInCalib