|
Contiki 3.x
|
Header file for the RE-Mote Power Management driver. More...
#include "dev/gpio.h"Go to the source code of this file.
Macros | |
Power Management return values | |
| #define | PM_SUCCESS 0 |
| #define | PM_ERROR (-1) |
| #define | PM_MAX_BITS 8 |
Power Management "done" signal | |
| #define | PM_SHUTDOWN_NOW GPIO_SET_PIN(PM_DONE_PORT_BASE, PM_DONE_PIN_MASK) |
Power Management timing values | |
| #define | PM_1_MILISECOND 1000L |
| #define | PM_2_2_MILISECOND 2200L |
| #define | PM_3_MILISECOND 3000L |
| #define | PM_10_MILISECOND 10000L |
Enumerations | |
Power Management commands | |
| enum | pm_cmd_t |
Functions | |
Power Management functions | |
| int8_t | pm_init (void) |
| Initializes the Power Management driver. More... | |
| int8_t | pm_enable_timer (void) |
| Enable the shutdown mode, periodically driven by the Nano Timer. More... | |
| int8_t | pm_disable_timer (void) |
| Disable the Nano Timer. More... | |
| int8_t | pm_get_state (uint8_t *state) |
| Get the current state of the power management module. More... | |
| int8_t | pm_get_firmware_version (uint8_t *state) |
| Get the firmware version of the power management module. More... | |
Power Management status and masks | |
| #define | PM_SYSOFF_ON_MASK 0x01 |
| #define | PM_TIMER_ENABLED_MASK 0x02 |
| #define | PM_AWAITING_RTC_EVENT_MASK 0x04 |
| enum | pm_state_t |
Header file for the RE-Mote Power Management driver.
Definition in file power-mgmt.h.
1.8.6