Z-World Fox LP3500 User Manual - page 49
User’s Manual
43
4.5 LP3500 Function APIs
4.5.1 LP3500 Power Modes
Sets individual devices to low-power or fully active states in the order listed below.
PARAMETERS
devices
is a list of the following macros, which are OR'ed together, that will be affected by the
state
parameter, e.g.,
RS232DEV|ADCDEV
.
RS232DEV
—RS-232 devices
RS485DEV
—RS-485 devices
ADCDEV
—ADS7870 A/D converter devices
DISPDEV
—LCD/keypad module
ALLDEVICES
—all devices
state
0 = shuts or powers down listed devices
1 = activates listed devices
Table E-1 provides further information about the power consumption associated with each section.
RETURN VALUE
0 if valid parameter
-1 otherwise
SEE ALSO
powerMode, anaInConfig, brdInit
int devPowerSet(int devices, int state);
Macro
Description
state
= 0
state
after Board Initialization
RS232DEV
Receivers and transmitters are disabled,
RxE remains active
1
RS485DEV
Transmitter is disabled
0
ADCDEV
ADS7870 internal oscillator is turned off
0
DISPDEV
LCD/keypad module is turned off.
0
ALLDEVICES
All devices are disabled as described above
—