Xmega Application Note


rtc.h File Reference

AVR XMEGA Real Time Counter driver definitions. More...

#include <compiler.h>
#include <conf_rtc.h>
Include dependency graph for rtc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* rtc_callback_t )(uint32_t time)
 Callback definition for alarm callback.

Functions

bool rtc_alarm_has_triggered (void)
 Check if pending alarm have triggered.
uint32_t rtc_get_time (void)
 Get current time.
void rtc_init (void)
 Initialize the RTC.
void rtc_set_alarm (uint32_t time)
 Set alarm time.
static void rtc_set_alarm_relative (uint32_t offset)
 Set alarm relative to current time.
void rtc_set_callback (rtc_callback_t callback)
 Set callback to call on alarm.
void rtc_set_time (uint32_t time)
 Set current time.

Detailed Description

AVR XMEGA Real Time Counter driver definitions.

Copyright (C) 2010 Atmel Corporation. All rights reserved.

Definition in file rtc.h.

@DOC_TITLE@
Generated on Fri Oct 22 12:15:25 2010 for AVR1300 Using the Xmega ADC by doxygen 1.6.3