Z-World Wildcat BL2000 User Manual page 50

C-programmable, with ethernet
Table of Contents

Advertisement

float anaInVolts(unsigned int channel);
Reads the state of an A/D converter input channel and uses the previously set calibration constants to
convert it to volts.
PARAMETER
channel
is the A/D converter input channel (0–10).
RETURN VALUE
A voltage value corresponding to the voltage on the analog input channel.
SEE ALSO
anaIn, anaInCalib, brdInit
int anaInEERd(unsigned int channel);
Reads the calibration constants, gain, and offset from the simulated EEPROM in flash memory (located
in reserved user block memory area 0x1C00–0x1FFF).
PARAMETER
channel is the A/D converter input channel (0–10).
RETURN VALUE
0 if successful.
-1 if address or range is invalid.
SEE ALSO
anaInEEWr, brdInit
int anaInEEWr(unsigned int channel);
Writes the calibration constants, gain, and offset to the simulated EEPROM in flash memory (located in
reserved user block memory area 0x1C00–0x1FFF).
PARAMETER
channel
is the A/D converter input channel (0–10).
RETURN VALUE
0 if successful.
-1 if address or range is invalid.
SEE ALSO
anaInEERd,
brdInit
The address range of the user block memory area where the calibration constants are
stored may be determined using
readUserBlock( _adcCalib, ADC_CALIB_ADDR, sizeof( _adcCalib ) );
where
and
_adcCalib
library.
46
are macros defined in the
ADC_CALIB_ADDR
BL20XX.LIB
Wildcat (BL2000)

Advertisement

Table of Contents
loading

Related Products for Z-World Wildcat BL2000

Table of Contents