Contiki-NG
Loading...
Searching...
No Matches

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 controller
#define PWR_MNGMT_ADDR   0x7F
 Power Management slave address.
 
Power Management return values

Functions

Power Management functions
int8_t pm_enable (void)
 Initializes the Power Management driver.
 
int8_t pm_get_fw_ver (uint8_t *fwver)
 Gets the current firmware version of power management module.
 
int8_t pm_shutdown_now (uint8_t type)
 Disconnects the board battery and enter shutdown mode PM_SOFT/HARD_SLEEP_CONFIG.
 
int8_t pm_set_timeout (uint32_t time)
 Configure Internal Timeout for Hard and Soft shutdown modes.
 
uint32_t pm_get_timeout (void)
 Gets the current timeout value configured in power management module.
 
uint32_t pm_get_num_cycles (void)
 Gets current cycles.
 
int8_t pm_get_voltage (uint16_t *state)
 Reads the voltage of the external battery if connected to VIN pin.
 
int8_t pm_reset_system (void)
 Restarts the on-board low-power PIC, provoking a board reset.
 

Detailed Description

Header file for the RE-Mote Power Management driver.

Definition in file power-mgmt.h.