#include <inttypes.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 |
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 ALL_OFF SENS_OFF | UART0_OFF | UART1_OFF | BAT_OFF | RTC_OFF |
| #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 |
Sleep Options. Set sensor switches OFF.
Definition at line 128 of file WaspPWR.h.
Referenced by WaspSensorPrototyping::setBoardMode(), WaspSensorGas::setBoardMode(), WaspSensorEvent::setBoardMode(), WaspSensorAgr::setBoardMode(), WaspSensorGas::setSensorMode(), WaspSensorAgr::setSensorMode(), WaspPWR::setSensorPower(), and WaspPWR::switchesOFF().
| #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 |
| #define WTD_16MS 0 |
| #define WTD_1S 6 |
| #define WTD_250MS 4 |
| #define WTD_2S 7 |
| #define WTD_32MS 1 |
| #define WTD_4S 8 |
| #define WTD_500MS 5 |
| #define WTD_64MS 2 |
| #define WTD_8S 9 |
| #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().
| volatile uint16_t intFlag |
Definition at line 51 of file WaspVariables.h.
Referenced by clearIntFlag(), WaspPWR::clearInts(), WaspPWR::ifHibernate(), onHAIwakeUP(), and onLAIwakeUP().
Definition at line 524 of file WaspPWR.cpp.
Referenced by WaspRTC::close(), WaspACC::close(), WaspSensorPrototyping::readADC(), WaspSensorAgr::readDendrometer(), WaspSensorAgr::readPT1000(), WaspSensorAgr::readRadiation(), WaspSensorGas::setAmplifier(), WaspSensorPrototyping::setAmplifierGain(), WaspSensorAgr::setDigipot(), WaspSensorEvent::setDigipot0(), WaspSensorEvent::setDigipot1(), WaspSensorPrototyping::setLoadResistor(), WaspSensorGas::setResistor(), and WaspSensorAgr::sleepAgr().
1.5.6