rtc.c File Reference

Go to the source code of this file.

Functions

void F_RtcPowerOnInit (void)
void F_RtcSvc (void)
void F_RtcCurrentTimeSet ()
void F_RtcCurrentTimeShow ()
INT8U F_RtcEventCheck (void)
void F_RtcYearSet (INT8U Year) LargeReentrant
void F_RtcMonthSet (INT8U Month) LargeReentrant
void F_RtcDateSet (INT8U Date) LargeReentrant
void F_RtcHourSet (INT8U Hour) LargeReentrant
void F_RtcMinuteSet (INT8U Minute) LargeReentrant
void F_RtcSecondSet (INT8U Second) LargeReentrant
void F_RtcWeekDaySet (INT8U WeekDay) LargeReentrant
void F_RtcYearRead ()
void F_RtcMonthRead ()
void F_RtcDateRead ()
void F_RtcHourRead ()
void F_RtcMinuteRead ()
void F_RtcSecondRead ()
void F_RtcWeekDayRead ()
UCHAR F_RtcRead (UCHAR Command) LargeReentrant
void F_RtcWrite (UCHAR Command, UCHAR Data) LargeReentrant
void F_RtcCommandSet (INT8U **pArgv, INT8U Argc) LargeReentrant

Variables

sbit RtcSclk = P2^0
sbit RtcData = P2^1
sbit RtcCe = P2^2
INT8U code second [7] = {'s','e','c','o','n','d',0}
INT8U code minute [7] = {'m','i','n','u','t','e',0}
INT8U code hour [5] = {'h','o','u','r',0}
INT8U code date [5] = {'d','a','t','e',0}
INT8U code month [6] = {'m','o','n','t','h',0}
INT8U code year [5] = {'y','e','a','r',0}
INT8U code day [4] = {'d','a','y',0}
INT8U code * RtcCommandList [RTC_COMMAND_MAX] = {second,minute,hour,date,month,year,day}
struct RTC_CONTROL RtcCtrl
struct RTC_EVENT RtcEvent


Function Documentation

void F_RtcCommandSet ( INT8U **  pArgv,
INT8U  Argc 
)

void F_RtcCurrentTimeSet ( void   ) 

void F_RtcCurrentTimeShow ( void   ) 

void F_RtcDateRead ( void   ) 

void F_RtcDateSet ( INT8U  Date  ) 

Definition at line 248 of file rtc.c.

References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.

Referenced by F_RtcCommandSet().

INT8U F_RtcEventCheck ( void   ) 

Definition at line 230 of file rtc.c.

References RTC_EVENT::HasEvent, and RtcEvent.

void F_RtcHourRead ( void   ) 

void F_RtcHourSet ( INT8U  Hour  ) 

Definition at line 255 of file rtc.c.

References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.

Referenced by F_RtcCommandSet().

void F_RtcMinuteRead ( void   ) 

void F_RtcMinuteSet ( INT8U  Minute  ) 

Definition at line 262 of file rtc.c.

References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.

Referenced by F_RtcCommandSet().

void F_RtcMonthRead ( void   ) 

void F_RtcMonthSet ( INT8U  Month  ) 

Definition at line 241 of file rtc.c.

References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.

Referenced by F_RtcCommandSet().

void F_RtcPowerOnInit ( void   ) 

UCHAR F_RtcRead ( UCHAR  Command  ) 

Definition at line 325 of file rtc.c.

References RTC_EVENT::Data, RtcCe, RtcData, and RtcSclk.

Referenced by F_RtcCurrentTimeShow(), F_RtcPowerOnInit(), and F_RtcSvc().

void F_RtcSecondRead ( void   ) 

void F_RtcSecondSet ( INT8U  Second  ) 

Definition at line 269 of file rtc.c.

References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.

Referenced by F_RtcCommandSet().

void F_RtcSvc ( void   ) 

void F_RtcWeekDayRead ( void   ) 

void F_RtcWeekDaySet ( INT8U  WeekDay  ) 

Definition at line 276 of file rtc.c.

References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.

Referenced by F_RtcCommandSet().

void F_RtcWrite ( UCHAR  Command,
UCHAR  Data 
)

Definition at line 501 of file rtc.c.

References RTC_EVENT::Data, RtcCe, RtcData, and RtcSclk.

Referenced by F_RtcCurrentTimeSet(), F_RtcPowerOnInit(), and F_RtcSvc().

void F_RtcYearRead ( void   ) 

void F_RtcYearSet ( INT8U  Year  ) 

Definition at line 234 of file rtc.c.

References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.

Referenced by F_RtcCommandSet().


Variable Documentation

INT8U code date[5] = {'d','a','t','e',0}

Definition at line 27 of file rtc.c.

INT8U code day[4] = {'d','a','y',0}

Definition at line 30 of file rtc.c.

INT8U code hour[5] = {'h','o','u','r',0}

Definition at line 26 of file rtc.c.

INT8U code minute[7] = {'m','i','n','u','t','e',0}

Definition at line 25 of file rtc.c.

INT8U code month[6] = {'m','o','n','t','h',0}

Definition at line 28 of file rtc.c.

sbit RtcCe = P2^2

Definition at line 21 of file rtc.c.

Referenced by F_RtcPowerOnInit(), F_RtcRead(), and F_RtcWrite().

INT8U code* RtcCommandList[RTC_COMMAND_MAX] = {second,minute,hour,date,month,year,day}

Definition at line 31 of file rtc.c.

Referenced by F_RtcCommandSet().

sbit RtcData = P2^1

Definition at line 20 of file rtc.c.

Referenced by F_RtcPowerOnInit(), F_RtcRead(), and F_RtcWrite().

sbit RtcSclk = P2^0

Definition at line 19 of file rtc.c.

Referenced by F_RtcPowerOnInit(), F_RtcRead(), and F_RtcWrite().

INT8U code second[7] = {'s','e','c','o','n','d',0}

Definition at line 24 of file rtc.c.

INT8U code year[5] = {'y','e','a','r',0}

Definition at line 29 of file rtc.c.


Generated on Sat Aug 9 23:31:25 2008 for A Small Control System Using 8051 by  doxygen 1.5.6