XBee Firmware Library  1.6.0
Data Structures | Functions | Variables
rtc.h File Reference

Data Structures

struct  tm_t
 

Functions

void delay_ticks (uint16_t delay)
 Performs a busy loop delay of delay system ticks. The watchdog is continuously refreshed during the delay. More...
 
int rtc_config (void)
 Configures and initializes the RTC module, with the defualt settings. Its automatically called by sys_hw_init() More...
 
int rtc_get_date (tm_t *now)
 Reads the RTC time/date and saves it in now. More...
 
uint32_t rtc_get_ms_uptime (void)
 Returns the miliseconds counter, number of ms the system has been running without interruption (downtime) More...
 
uint32_t rtc_get_uptime (void)
 Returns the second counter, number of seconds the system has been running without interruption (downtime) More...
 
int rtc_set_alarm (tm_t newalarm)
 Programs the alarm with newalarm time values. More...
 
int rtc_set_date (tm_t newdate)
 Sets date as RTC date. More...
 
int rtc_set_periodic_task_period (uint32_t period)
 Configures the period (expressed as number of system ticks) of execution of the periodic task. A call to this function resets/restarts the periodic task timer. More...
 
void rtc_set_timeout (uint16_t timeout)
 Programs the timeout variable, decremented each system tick. More...
 
bool_t rtc_timeout_expired (void)
 Returns a 1 if the programmed timeout expired. The timeout is programmed with rtc_set_timeout() More...
 

Variables

uint32_t ms_uptime
 
uint32_t uptime
 
uint32_t wait_for_tout
 

Variable Documentation

uint32_t ms_uptime
uint32_t uptime
uint32_t wait_for_tout