projekty/Source/example1/src/rtc.h File Reference

#include "lpc229x.h"
#include "types.h"

Go to the source code of this file.

Data Structures

struct  Alarm
struct  Timer

Defines

#define DEBUG   1

Typedefs

typedef Alarm pAlarm
typedef Timer pTimer

Functions

void ResetRTC (pTimer)
void StartRTC (void)
void SetRTC (uint8_t, pTimer)
void StopRTC (void)
pTimer GetTimeRTC (void)
void SetAlarm (pAlarm)


Define Documentation

#define DEBUG   1

Definition at line 28 of file rtc.h.


Typedef Documentation

typedef struct Alarm pAlarm

typedef struct Timer pTimer


Function Documentation

pTimer GetTimeRTC ( void   ) 

Definition at line 91 of file rtc.c.

References Timer::DOM, Timer::DOW, Timer::DOY, Timer::HOUR, itoa_16(), Timer::MIN, Timer::MONTH, RTC_CTIME0, RTC_CTIME1, RTC_CTIME2, Timer::SEC, UARTWriteStr(), and Timer::YEAR.

void ResetRTC ( pTimer   ) 

Definition at line 44 of file rtc.c.

References Timer::DOM, Timer::DOW, Timer::DOY, Timer::HOUR, Timer::MIN, Timer::MONTH, RTC_CCR, RTC_CTIME0, RTC_DOM, RTC_DOW, RTC_DOY, RTC_HOUR, RTC_MIN, RTC_MONTH, RTC_SEC, RTC_YEAR, Timer::SEC, UARTWriteStr(), and Timer::YEAR.

void SetAlarm ( pAlarm   ) 

Definition at line 27 of file rtc.c.

References Alarm::ALDOM, Alarm::ALDOW, Alarm::ALDOY, Alarm::ALHOUR, Alarm::ALMIN, Alarm::ALMON, Alarm::ALSEC, Alarm::ALYEAR, Alarm::AMR, RTC_ALDOM, RTC_ALDOW, RTC_ALDOY, RTC_ALHOUR, RTC_ALMIN, RTC_ALMON, RTC_ALSEC, RTC_ALYEAR, and RTC_AMR.

void SetRTC ( uint8_t  ,
pTimer   
)

Definition at line 61 of file rtc.c.

References Timer::DOM, Timer::DOW, Timer::DOY, Timer::HOUR, Timer::MIN, Timer::MONTH, RTC_CCR, RTC_CIIR, RTC_DOM, RTC_DOW, RTC_DOY, RTC_HOUR, RTC_ILR, RTC_MIN, RTC_MONTH, RTC_PREFRAC, RTC_PREINT, RTC_SEC, RTC_YEAR, Timer::SEC, UARTWriteStr(), and Timer::YEAR.

void StartRTC ( void   ) 

Definition at line 84 of file rtc.c.

References RTC_CCR, and UARTWriteStr().

void StopRTC ( void   ) 

Definition at line 38 of file rtc.c.

References RTC_CCR, and UARTWriteStr().


Generated on Fri Sep 21 13:41:55 2007 for example1 by  doxygen 1.4.7