rtc_calendar.h File Reference

Go to the source code of this file.

Defines

#define JANUARY   0x00
#define FEBRUARY   0x01
#define MARCH   0x02
#define APRIL   0x03
#define MAY   0x04
#define JUNE   0x05
#define JULY   0x06
#define AUGUST   0x07
#define SEPTEMBER   0x08
#define OCTOBER   0x09
#define NOVEMBER   0x10
#define DECEMBER   0x11
#define SUNDAY   0
#define MONDAY   1
#define TUESDAY   2
#define WEDNESDAY   3
#define THURSDAY   4
#define FRIDAY   5
#define SATURDAY   6
#define NO_DAYLIGHT_SAVINGS   0x00
#define US_DAYLIGHT_SAVINGS   0x01
#define EU_DAYLIGHT_SAVINGS   0x02
#define setTime(H, M, S, P)   {TI_second = S; TI_minute = M; TI_hour = H; TI_PM = P;}
#define LEAP_YEAR   (TI_FebDays == 0x29)

Functions

void incrementSeconds (void)
void incrementMinutes (void)
void incrementHours (void)
void incrementDays (void)
void incrementMonths (void)
void incrementYears (void)
void testLeap (void)
void setDate (int year, char month, char day)
char get24Hour (unsigned char hour, unsigned char pm)

Variables

unsigned char TI_second
unsigned char TI_minute
unsigned char TI_hour
unsigned char TI_day
unsigned char TI_dayOfWeek
unsigned char TI_month
unsigned int TI_year
unsigned char TI_PM
unsigned char TI_FebDays
unsigned char TI_dayLightZone
unsigned char TI_dayLightSavings


Define Documentation

#define APRIL   0x03

Definition at line 66 of file rtc_calendar.h.

#define AUGUST   0x07

Definition at line 70 of file rtc_calendar.h.

#define DECEMBER   0x11

Definition at line 74 of file rtc_calendar.h.

#define EU_DAYLIGHT_SAVINGS   0x02

Definition at line 86 of file rtc_calendar.h.

#define FEBRUARY   0x01

Definition at line 64 of file rtc_calendar.h.

#define FRIDAY   5

Definition at line 81 of file rtc_calendar.h.

#define JANUARY   0x00

Definition at line 63 of file rtc_calendar.h.

#define JULY   0x06

Definition at line 69 of file rtc_calendar.h.

#define JUNE   0x05

Definition at line 68 of file rtc_calendar.h.

#define LEAP_YEAR   (TI_FebDays == 0x29)

Definition at line 112 of file rtc_calendar.h.

#define MARCH   0x02

Definition at line 65 of file rtc_calendar.h.

#define MAY   0x04

Definition at line 67 of file rtc_calendar.h.

#define MONDAY   1

Definition at line 77 of file rtc_calendar.h.

#define NO_DAYLIGHT_SAVINGS   0x00

Definition at line 84 of file rtc_calendar.h.

#define NOVEMBER   0x10

Definition at line 73 of file rtc_calendar.h.

#define OCTOBER   0x09

Definition at line 72 of file rtc_calendar.h.

#define SATURDAY   6

Definition at line 82 of file rtc_calendar.h.

#define SEPTEMBER   0x08

Definition at line 71 of file rtc_calendar.h.

#define setTime ( H,
M,
S,
 )     {TI_second = S; TI_minute = M; TI_hour = H; TI_PM = P;}

Definition at line 88 of file rtc_calendar.h.

#define SUNDAY   0

Definition at line 76 of file rtc_calendar.h.

#define THURSDAY   4

Definition at line 80 of file rtc_calendar.h.

#define TUESDAY   2

Definition at line 78 of file rtc_calendar.h.

#define US_DAYLIGHT_SAVINGS   0x01

Definition at line 85 of file rtc_calendar.h.

#define WEDNESDAY   3

Definition at line 79 of file rtc_calendar.h.


Function Documentation

char get24Hour ( unsigned char  hour,
unsigned char  pm 
)

void incrementDays ( void   ) 

void incrementHours ( void   ) 

void incrementMinutes ( void   ) 

void incrementMonths ( void   ) 

void incrementSeconds ( void   ) 

void incrementYears ( void   ) 

void setDate ( int  year,
char  month,
char  day 
)

void testLeap ( void   ) 


Variable Documentation

unsigned char TI_day

unsigned char TI_dayLightSavings

unsigned char TI_dayLightZone

unsigned char TI_dayOfWeek

unsigned char TI_FebDays

unsigned char TI_hour

unsigned char TI_minute

unsigned char TI_month

unsigned char TI_PM

unsigned char TI_second

unsigned int TI_year


Generated on Thu Dec 27 14:21:53 2007 for Sample MSP430-449STK2 project by  doxygen 1.5.1