FreeNOS
Data Structures | Macros
time

The time driver contains an interface to the system Real Time Clock (RTC). More...

Data Structures

class  Time
 System Time server. More...
 

Macros

#define RTC_PORT(x)   (0x70 + (x))
 The base I/O port of the CMOS. More...
 
#define RTC_SECONDS   0
 Offset in the CMOS for the current number of seconds. More...
 
#define RTC_MINUTES   2
 Offset in the CMOS for the current number of minutes. More...
 
#define RTC_HOURS   4
 Offset in the CMOS for the current number of hours. More...
 
#define RTC_DAY_OF_WEEK   6
 Offset in the CMOS for the current day of the week. More...
 
#define RTC_DAY_OF_MONTH   7
 Offset in the CMOS for the current day of the month. More...
 
#define RTC_MONTH   8
 Offset in the CMOS for the current month. More...
 
#define RTC_YEAR   9
 Offset in the CMOS for the current year. More...
 
#define CMOS_YEARS_OFFS   2000
 Assume that a two-digit year is after 2000. More...
 
#define RTC_STATUS_A   10
 Offset in CMOS for the status A register. More...
 
#define RTC_STATUS_B   11
 Offset in CMOS for the status B register. More...
 
#define RTC_UIP   0x80
 Update in progress flag. More...
 
#define RTC_DLS   0x01
 Daylight savings flag. More...
 
#define RTC_24H   0x02
 24 hour mode flag. More...
 
#define RTC_BCD   0x04
 Time/date in binary/BCD flag. More...
 

Detailed Description

The time driver contains an interface to the system Real Time Clock (RTC).

Macro Definition Documentation

◆ 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

#define RTC_24H   0x02

24 hour mode flag.

Definition at line 80 of file Time.h.

◆ RTC_BCD

#define RTC_BCD   0x04

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

#define RTC_DLS   0x01

Daylight savings flag.


Definition at line 77 of file Time.h.

◆ RTC_HOURS

#define RTC_HOURS   4

Offset in the CMOS for the current number of hours.

Definition at line 45 of file Time.h.

◆ RTC_MINUTES

#define RTC_MINUTES   2

Offset in the CMOS for the current number of minutes.

Definition at line 42 of file Time.h.

◆ RTC_MONTH

#define RTC_MONTH   8

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

#define RTC_SECONDS   0

Offset in the CMOS for the current number of seconds.

Definition at line 39 of file Time.h.

◆ RTC_STATUS_A

#define RTC_STATUS_A   10

Offset in CMOS for the status A register.

Definition at line 68 of file Time.h.

◆ RTC_STATUS_B

#define RTC_STATUS_B   11

Offset in CMOS for the status B register.

Definition at line 71 of file Time.h.

◆ RTC_UIP

#define RTC_UIP   0x80

Update in progress flag.

Definition at line 74 of file Time.h.

◆ RTC_YEAR

#define RTC_YEAR   9

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.