Z-World Fox LP3500 User Manual page 52

C-programmable single-board computer
Table of Contents

Advertisement

void digInAlert(int channel, int value, int
lowpowermode, int maxpowermode, int powersource,
unsigned long timeout)
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
int rdPowerState(void);
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
int setPowerSource(int state);
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
46
Fox (LP3500)

Advertisement

Table of Contents
loading

Related Products for Z-World Fox LP3500

Table of Contents