| inline void RTC_SetMode( |
| ) |
Set clock mode
| mode u8 | The clock mode flags |
| inline u8 RTC_Read( |
| ) |
Read a RTC register value
| reg u8 | RTC register number |
| inline void RTC_Write( |
| ) |
Write a RTC register value
| reg u8 | RTC register number |
| value u8 | The value to write in the register |
| void RTC_WriteRaw( |
| ) |
Write data in CMOS in the current block Use RTC_SetMode to change current block
| reg u8 | Register index to start copy |
| data u8* | Data to copy |
| num u8 | Number of bytes to copy (from 1 to 6) |
| void RTC_ReadRaw( |
| ) |
Read data from CMOS in the current block Use RTC_SetMode to change current block
| reg u8 | Register index to start reading |
| data u8* | Data to read |
| num u8 | Number of bytes to read (from 1 to 6) |
Initialize the clock module
| inline void RTC_Set24H( |
| ) |
Set 12/24 hours mode Need RTC_USE_CLOCK define to be set in MSXgl configuration
| enable bool | TRUE for 24h mode and FALSE for 12h mode |
Get current clock second counter (0-59) Need RTC_USE_CLOCK define to be set in MSXgl configuration
Get current clock minute counter (0-59) Need RTC_USE_CLOCK define to be set in MSXgl configuration
Get current clock hour counter (0-23) Need RTC_USE_CLOCK define to be set in MSXgl configuration
Check if current hour is PM or AM Need RTC_USE_CLOCK define to be set in MSXgl configuration
Get current clock day-of-week counter (0-6) Need RTC_USE_CLOCK define to be set in MSXgl configuration
Get current clock day counter (1-31) Need RTC_USE_CLOCK define to be set in MSXgl configuration
Get current clock month counter (1-12) Need RTC_USE_CLOCK define to be set in MSXgl configuration
Get current clock year counter (0-99) Need RTC_USE_CLOCK define to be set in MSXgl configuration
Get current clock day of week string Need RTC_USE_CLOCK and RTC_USE_CLOCK_EXTRA define to be set in MSXgl configuration
Get current clock month counter string Need RTC_USE_CLOCK and RTC_USE_CLOCK_EXTRA define to be set in MSXgl configuration
Get current clock 4-digits year counter (1980-2079) Need RTC_USE_CLOCK and RTC_USE_CLOCK_EXTRA define to be set in MSXgl configuration
Set area code
| inline void RTC_SetAreaCode( |
| ) |
Set area code
Get area code
Get area code
| void RTC_SaveData( |
| ) |
Save 6 bytes data to CMOS's block 3 Need RTC_USE_SAVEDATA define to be set in MSXgl configuration
| data u8* | 6 bytes buffer to be saved |
| bool RTC_LoadData( |
| ) |
Load 6 bytes data from CMOS's block 3 Need RTC_USE_SAVEDATA define to be set in MSXgl configuration
| data u8* | 6 bytes buffer to load data |
| void RTC_SaveDataSigned( |
| ) |
Save 6 bytes data to CMOS's block 3 Need RTC_USE_SAVESIGNED define to be set in MSXgl configuration and AppSignature BuildTool option to TRUE
| data u8* | 6 bytes buffer to be saved |
| bool RTC_LoadDataSigned( |
| ) |
Load 6 bytes data from CMOS's block 3 Need RTC_USE_SAVESIGNED define to be set in MSXgl configuration and AppSignature BuildTool option to TRUE
| data u8* | 6 bytes buffer to load data |