StuBS
CMOS Namespace Reference

CMOS. More...

Namespaces

namespace  NMI
 

Enumerations

enum  Register {
  REG_SECOND = 0x0 ,
  REG_ALARM_SECOND = 0x1 ,
  REG_MINUTE = 0x2 ,
  REG_ALARM_MINUTE = 0x3 ,
  REG_HOUR = 0x4 ,
  REG_ALARM_HOUR = 0x5 ,
  REG_WEEKDAY = 0x6 ,
  REG_DAYOFMONTH = 0x7 ,
  REG_MONTH = 0x8 ,
  REG_YEAR = 0x9 ,
  REG_STATUS_A = 0xa ,
  REG_STATUS_B = 0xb ,
  REG_STATUS_C = 0xc ,
  REG_STATUS_D = 0xd ,
  REG_STATUS_DIAGNOSE = 0xe ,
  REG_STATUS_SHUTDOWN = 0xf
}
 

Functions

static void setAddress (enum Register reg)
 
uint8_t read (enum Register reg)
 
void write (enum Register reg, uint8_t value)
 

Constants

static IOPort address (0x70)
 
static IOPort data (0x71)
 

Detailed Description

CMOS.

Enumeration Type Documentation

◆ Register

Enumerator
REG_SECOND 

RTC.

REG_ALARM_SECOND 

RTC.

REG_MINUTE 

RTC.

REG_ALARM_MINUTE 

RTC.

REG_HOUR 

RTC.

REG_ALARM_HOUR 

RTC.

REG_WEEKDAY 

RTC.

REG_DAYOFMONTH 

RTC.

REG_MONTH 

RTC.

REG_YEAR 

RTC.

REG_STATUS_A 

RTC.

REG_STATUS_B 

RTC.

REG_STATUS_C 

RTC.

REG_STATUS_D 

RTC.

REG_STATUS_DIAGNOSE 
REG_STATUS_SHUTDOWN 

Function Documentation

◆ setAddress()

static void CMOS::setAddress ( enum Register  reg)
static

◆ read()

uint8_t CMOS::read ( enum Register  reg)

◆ write()

void CMOS::write ( enum Register  reg,
uint8_t  value 
)

Constant Documentation

◆ address

IOPort CMOS::address(0x70) ( 0x70  )
static

◆ data

IOPort CMOS::data(0x71) ( 0x71  )
static