Lp3500 Function Apis; Lp3500 Power Modes - Z-World Fox LP3500 User Manual

C-programmable single-board computer
Table of Contents

Advertisement

4.5 LP3500 Function APIs

4.5.1 LP3500 Power Modes

int devPowerSet(int devices, int state);
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
Macro
Receivers and transmitters are disabled,
RS232DEV
RxE remains active
Transmitter is disabled
RS485DEV
ADS7870 internal oscillator is turned off
ADCDEV
LCD/keypad module is turned off.
DISPDEV
All devices are disabled as described above
ALLDEVICES
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
User's Manual
Description state = 0
state after Board Initialization
1
0
0
0
43

Advertisement

Table of Contents
loading

Table of Contents