User`s manual
RabbitFLEX User’s Manual www.rabbit.com 93
flexAnaInVolts
float flexAnaInVolts(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 volts. 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 voltage value corresponding to the voltage on the analog input channel
FLEX_ANAIN_ERROR: overflow, out-of-range, or not an analog input
SEE ALSO
flexAnaIn, flexAnaInmAmps, flexAnaInCalib