XBee Firmware Library  1.6.0
Functions | Variables
pm.c File Reference

Functions

void gpio_irq_handler_xpin_13 (void)
 
pm_mode_t pm_get_cpu_mode (void)
 Function that returns the CPU operational mode. More...
 
pm_mode_t pm_get_radio_mode (void)
 Function that returns the radio operational mode. We consider radio operative when On/Sleep pin is high and CTS# is low. More...
 
uint8_t pm_get_wakeup_source (void)
 Function that returns which was the last wake up source for the CPU. More...
 
int pm_set_cpu_mode (pm_mode_t mode, uint32_t sleep_seconds)
 Function that configures the CPU operation mode to mode. More...
 
void pm_set_radio_mode (pm_mode_t mode)
 Function that configures the radio operation mode to mode. More...
 
void rtc_config_fast (void)
 
void rtc_config_slow (void)
 
uint8_t rtc_is_slow (void)
 

Variables

pm_mode_t pm_state = PM_MODE_RUN
 
uint32_t seconds_to_wakeup = 0
 
uint8_t wakeup_irq = WAKEUP_UNKNOWN
 
xbee_dev_t xdev
 

Function Documentation

void gpio_irq_handler_xpin_13 ( void  )
void rtc_config_fast ( void  )
void rtc_config_slow ( void  )
uint8_t rtc_is_slow ( void  )

Variable Documentation

pm_mode_t pm_state = PM_MODE_RUN
uint32_t seconds_to_wakeup = 0
uint8_t wakeup_irq = WAKEUP_UNKNOWN
xbee_dev_t xdev