
50
Fox (LP3500)
Use this function to poll a selected digital input until a timeout occurs. The function call forces the
LP3500 to enter the low-power mode using the battery for polling. Upon activation of the channel or
expiration of the timeout, this function will enable the normal power mode and exit.
Use
devPowerSet(ALLDEVICES, int state)
before and after this function call to deactivate
and activate all devices to operate at less power.
PARAMETERS
channel
is the digital input channel (IN00– IN15) to poll
value
is the input value of 0 or 1 to receive
lowpowermode
is the low-power mode setting to enter, usually 10 (see
powerMode()
)
maxpowermode
is the maximum operating power mode setting to enter, usually 1 (see
power-
Mode()
)
powersource
1 = battery
2 = raw DC power
timeout
is the timeout in seconds if an input is not received. Enter 0 for no timeout.
SEE ALSO
powerMode, serCommAlert, timedAlert, devPowerSet
Determines if the LP3500 is running under battery power or a raw DC power source.
RETURN VALUE
0 if on raw DC power source
1 if on battery power
SEE ALSO
powerMode, setPowerState
Turns the linear regulator “off” or “on.”
PARAMETER
0 for normal power source
1 for battery
RETURN VALUE
0 if successful
-1 if raw DC power source is not available
-2 if battery is not available
SEE ALSO
powerMode, rdPowerState
void digInAlert(int channel, int value, int
lowpowermode, int maxpowermode, int powersource,
unsigned long timeout)
int rdPowerState(void);
int setPowerSource(int state);
Summary of Contents for Fox LP3500
Page 1: ...Fox LP3500 C Programmable Single Board Computer User s Manual 019 0111 081121 L...
Page 6: ...Fox LP3500...
Page 14: ...8 Fox LP3500...
Page 22: ...16 Fox LP3500...
Page 44: ...38 Fox LP3500...
Page 90: ...84 Fox LP3500...
Page 108: ...102 Fox LP3500 glFillCircle glPlotPolygon glFillPolygon...
Page 134: ...128 Fox LP3500...
Page 140: ...134 Fox LP3500...
Page 142: ......