The time driver contains an interface to the system Real Time Clock (RTC).
More...
|
| #define | RTC_PORT(x) (0x70 + (x)) |
| | The base I/O port of the CMOS.
|
| |
| #define | RTC_SECONDS 0 |
| | Offset in the CMOS for the current number of seconds.
|
| |
| #define | RTC_MINUTES 2 |
| | Offset in the CMOS for the current number of minutes.
|
| |
| #define | RTC_HOURS 4 |
| | Offset in the CMOS for the current number of hours.
|
| |
| #define | RTC_DAY_OF_WEEK 6 |
| | Offset in the CMOS for the current day of the week.
|
| |
| #define | RTC_DAY_OF_MONTH 7 |
| | Offset in the CMOS for the current day of the month.
|
| |
| #define | RTC_MONTH 8 |
| | Offset in the CMOS for the current month.
|
| |
| #define | RTC_YEAR 9 |
| | Offset in the CMOS for the current year.
|
| |
| #define | CMOS_YEARS_OFFS 2000 |
| | Assume that a two-digit year is after 2000.
|
| |
| #define | RTC_STATUS_A 10 |
| | Offset in CMOS for the status A register.
|
| |
| #define | RTC_STATUS_B 11 |
| | Offset in CMOS for the status B register.
|
| |
| #define | RTC_UIP 0x80 |
| | Update in progress flag.
|
| |
| #define | RTC_DLS 0x01 |
| | Daylight savings flag.
|
| |
| #define | RTC_24H 0x02 |
| | 24 hour mode flag.
|
| |
| #define | RTC_BCD 0x04 |
| | Time/date in binary/BCD flag.
|
| |
The time driver contains an interface to the system Real Time Clock (RTC).
◆ CMOS_YEARS_OFFS
| #define CMOS_YEARS_OFFS 2000 |
Assume that a two-digit year is after 2000.
Definition at line 65 of file Time.h.
◆ RTC_24H
24 hour mode flag.
Definition at line 80 of file Time.h.
◆ RTC_BCD
Time/date in binary/BCD flag.
Definition at line 83 of file Time.h.
◆ RTC_DAY_OF_MONTH
| #define RTC_DAY_OF_MONTH 7 |
Offset in the CMOS for the current day of the month.
Definition at line 51 of file Time.h.
◆ RTC_DAY_OF_WEEK
| #define RTC_DAY_OF_WEEK 6 |
Offset in the CMOS for the current day of the week.
Definition at line 48 of file Time.h.
◆ RTC_DLS
Daylight savings flag.
Definition at line 77 of file Time.h.
◆ RTC_HOURS
Offset in the CMOS for the current number of hours.
Definition at line 45 of file Time.h.
◆ RTC_MINUTES
Offset in the CMOS for the current number of minutes.
Definition at line 42 of file Time.h.
◆ RTC_MONTH
Offset in the CMOS for the current month.
Definition at line 54 of file Time.h.
◆ RTC_PORT
| #define RTC_PORT |
( |
|
x | ) |
(0x70 + (x)) |
The base I/O port of the CMOS.
Definition at line 36 of file Time.h.
◆ RTC_SECONDS
Offset in the CMOS for the current number of seconds.
Definition at line 39 of file Time.h.
◆ RTC_STATUS_A
Offset in CMOS for the status A register.
Definition at line 68 of file Time.h.
◆ RTC_STATUS_B
Offset in CMOS for the status B register.
Definition at line 71 of file Time.h.
◆ RTC_UIP
Update in progress flag.
Definition at line 74 of file Time.h.
◆ RTC_YEAR
Offset in the CMOS for the current year.
A one digit value means before 2000, and a two-digit value, i.e. >= 100, is after the year 2000.
Definition at line 62 of file Time.h.