WaspPWR.h File Reference

Library for managing Waspmote Power & Energy Modes. More...

#include <inttypes.h>

Include dependency graph for WaspPWR.h:

Go to the source code of this file.

Data Structures

class  WaspPWR
 WaspPWR Class. More...

Defines

#define WTD_ON   1
 Watchdog possible states. ON in this case.
#define WTD_OFF   2
 Watchdog possible states. OFF in this case.
#define WTD_16MS   0
 Watchdog possible timers. 16 miliseconds in this case.
#define WTD_32MS   1
 Watchdog possible timers. 32 miliseconds in this case.
#define WTD_64MS   2
 Watchdog possible timers. 64 miliseconds in this case.
#define WTD_128MS   3
 Watchdog possible timers. 128 miliseconds in this case.
#define WTD_250MS   4
 Watchdog possible timers. 250 miliseconds in this case.
#define WTD_500MS   5
 Watchdog possible timers. 500 miliseconds in this case.
#define WTD_1S   6
 Watchdog possible timers. 1 second in this case.
#define WTD_2S   7
 Watchdog possible timers. 2 seconds in this case.
#define WTD_4S   8
 Watchdog possible timers. 4 seconds in this case.
#define WTD_8S   9
 Watchdog possible timers. 8 seconds in this case.
#define BAT_MIN   512
 Battery level. Minimum value pre-defined.
#define BAT_MAX   651
 Battery level. Maximum value pre-defined.
#define ALL_OFF   SENS_OFF | UART0_OFF | UART1_OFF | BAT_OFF | RTC_OFF
 Sleep Options. All the modules and switches OFF.
#define SENS_OFF   1
 Sleep Options. Set sensor switches OFF.
#define UART0_OFF   2
 Sleep Options. UART0 closed and switch related with XBee is set OFF.
#define UART1_OFF   4
 Sleep Options. UART1 closed.
#define BAT_OFF   8
 Sleep Options. Battery level switch is set OFF.
#define RTC_OFF   16
 Sleep Options. RTC switch is set OFF.
#define HIB_ADDR   0
 EEPROM Address for hibernating.
#define HIB_VALUE   10
 EEPROM Value for hibernating.

Variables

volatile uint16_t intFlag
WaspPWR PWR


Detailed Description

Library for managing Waspmote Power & Energy Modes.

Copyright (C) 2009 Libelium Comunicaciones Distribuidas S.L. http://www.libelium.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Version: 0.6

Design: David Gascón

Implementation: Alberto Bielsa, David Cuartielles

Definition in file WaspPWR.h.


Define Documentation

#define ALL_OFF   SENS_OFF | UART0_OFF | UART1_OFF | BAT_OFF | RTC_OFF

Sleep Options. All the modules and switches OFF.

Definition at line 123 of file WaspPWR.h.

#define BAT_MAX   651

Battery level. Maximum value pre-defined.

Definition at line 118 of file WaspPWR.h.

Referenced by WaspPWR::getBatteryLevel().

#define BAT_MIN   512

Battery level. Minimum value pre-defined.

Definition at line 113 of file WaspPWR.h.

Referenced by WaspPWR::getBatteryLevel().

#define BAT_OFF   8

Sleep Options. Battery level switch is set OFF.

Definition at line 143 of file WaspPWR.h.

Referenced by WaspPWR::switchesOFF().

#define HIB_ADDR   0

EEPROM Address for hibernating.

Definition at line 153 of file WaspPWR.h.

Referenced by WaspPWR::hibernate(), and WaspPWR::ifHibernate().

#define HIB_VALUE   10

EEPROM Value for hibernating.

Definition at line 158 of file WaspPWR.h.

Referenced by WaspPWR::hibernate(), and WaspPWR::ifHibernate().

#define RTC_OFF   16

Sleep Options. RTC switch is set OFF.

Definition at line 148 of file WaspPWR.h.

Referenced by WaspPWR::hibernate(), WaspRTC::OFF(), WaspRTC::setMode(), and WaspPWR::switchesOFF().

#define SENS_OFF   1

#define UART0_OFF   2

Sleep Options. UART0 closed and switch related with XBee is set OFF.

Definition at line 133 of file WaspPWR.h.

Referenced by WaspPWR::switchesOFF().

#define UART1_OFF   4

Sleep Options. UART1 closed.

Definition at line 138 of file WaspPWR.h.

Referenced by WaspPWR::switchesOFF().

#define WTD_128MS   3

Watchdog possible timers. 128 miliseconds in this case.

Definition at line 76 of file WaspPWR.h.

#define WTD_16MS   0

Watchdog possible timers. 16 miliseconds in this case.

Definition at line 61 of file WaspPWR.h.

#define WTD_1S   6

Watchdog possible timers. 1 second in this case.

Definition at line 91 of file WaspPWR.h.

#define WTD_250MS   4

Watchdog possible timers. 250 miliseconds in this case.

Definition at line 81 of file WaspPWR.h.

#define WTD_2S   7

Watchdog possible timers. 2 seconds in this case.

Definition at line 96 of file WaspPWR.h.

#define WTD_32MS   1

Watchdog possible timers. 32 miliseconds in this case.

Definition at line 66 of file WaspPWR.h.

#define WTD_4S   8

Watchdog possible timers. 4 seconds in this case.

Definition at line 101 of file WaspPWR.h.

#define WTD_500MS   5

Watchdog possible timers. 500 miliseconds in this case.

Definition at line 86 of file WaspPWR.h.

#define WTD_64MS   2

Watchdog possible timers. 64 miliseconds in this case.

Definition at line 71 of file WaspPWR.h.

#define WTD_8S   9

Watchdog possible timers. 8 seconds in this case.

Definition at line 106 of file WaspPWR.h.

#define WTD_OFF   2

Watchdog possible states. OFF in this case.

Definition at line 55 of file WaspPWR.h.

Referenced by WaspPWR::setWatchdog().

#define WTD_ON   1

Watchdog possible states. ON in this case.

Definition at line 50 of file WaspPWR.h.

Referenced by WaspPWR::setWatchdog(), and WaspPWR::sleep().


Variable Documentation

volatile uint16_t intFlag


Generated on Tue Jul 20 09:30:57 2010 for WaspmoteAPI by  doxygen 1.5.6