RTC SetDateTime

From WikiPrizm
Revision as of 14:54, 31 July 2014 by Gbl08ma (talk | contribs) (Created page with "{{syscall | name = RTC_SetDateTime | header = fxcg/rtc.h | index = 0x11DE | signature = void RTC_SetDateTime(unsigned char* timestr) | synopsis = Sets the Real-Time Clock. | p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Synopsis

Header: fxcg/rtc.h
Syscall index: 0x11DE
Function signature: void RTC_SetDateTime(unsigned char* timestr)

Sets the Real-Time Clock.

Parameters

  • timestr - Pointer to 7 bytes unsigned char array. The meaning of each array field is as follows:
    • timestr[0] and timestr[1]: year in BCD format (for example, 0x20 0x08);
    • timestr[2]: month in BCD format (for example, 0x03);
    • timestr[3]: day in BCD format (for example, 0x02);
    • timestr[4]: hour in BCD format (for example, 0x19);
    • timestr[5]: minute in BCD format (for example, 0x47);
    • timestr[6]: second in BCD format (for example, 0x03).