Difference between revisions of "RTC"
Line 8: | Line 8: | ||
{{#Widget:LibTable}} | {{#Widget:LibTable}} | ||
|- | |- | ||
− | |Defination || | + | |Defination || This function is used to Initialize the Ds1307 RTC. |
|- | |- | ||
− | | Input Arguments || | + | | Input Arguments || none |
|- | |- | ||
− | | Return Value|| | + | | Return Value|| none |
|- | |- | ||
− | | Description || | + | | Description || This function is used to Initialize the Ds1307 RTC. |
|- | |- | ||
− | | Usage || | + | | Usage ||RTC_Init(); |
|} | |} | ||
Line 27: | Line 27: | ||
{{#Widget:LibTable}} | {{#Widget:LibTable}} | ||
|- | |- | ||
− | |Defination || | + | |Defination ||<syntaxhighlight lang = "c"> void RTC_SetTime(uint8_t var_hour_u8, uint8_t var_min_u8, uint8_t var_sec_u8)<syntaxhighlight> |
|- | |- | ||
− | | Input Arguments || | + | | Input Arguments || <syntaxhighlight lang = "c">uint8_t: Hour (0x00-0x23) BCD format |
+ | uint8_t: Minute (0x00-0x59) BCD format | ||
+ | uint8_t: Second (0x00-0x59) BCD format<syntaxhighlight> | ||
|- | |- | ||
| Return Value|| | | Return Value|| |
Revision as of 10:53, 10 January 2015
RTC
RTC_Init
Defination | This function is used to Initialize the Ds1307 RTC. |
Input Arguments | none |
Return Value | none |
Description | This function is used to Initialize the Ds1307 RTC. |
Usage | RTC_Init(); |
RTC_SetTime
Defination | void RTC_SetTime(uint8_t var_hour_u8, uint8_t var_min_u8, uint8_t var_sec_u8)<syntaxhighlight> |- | Input Arguments || <syntaxhighlight lang = "c">uint8_t: Hour (0x00-0x23) BCD format uint8_t: Minute (0x00-0x59) BCD format uint8_t: Second (0x00-0x59) BCD format<syntaxhighlight> |- | Return Value|| |- | Description || |- | Usage || |} ==RTC_SetDate== {|{{Widget:LibCol}} {{#Widget:LibTable}} |- |Defination || |- | Input Arguments || |- | Return Value|| |- | Description || |- | Usage || |} ==RTC_GetTime== {|{{Widget:LibCol}} {{#Widget:LibTable}} |- |Defination || |- | Input Arguments || |- | Return Value|| |- | Description || |- | Usage || |} ==RTC_GetDate== {|{{Widget:LibCol}} {{#Widget:LibTable}} |- |Defination || |- | Input Arguments || |- | Return Value|| |- | Description || |- | Usage || |} ==User Guide== |