|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dioscuri.module.rtc.CMOS
public class CMOS
Implementation of the CMOS memory
Notes: - register information is taken from CMOS Reference by Padgett Peterson, 2001. See: http://moon.inf.uji.es/docs/interr/CMOS/CMOS.HTM
Field Summary | |
---|---|
protected static int |
AMI_EXTEND_MEM_HIGH
|
protected static int |
AMI_EXTEND_MEM_LOW
|
protected static int |
ATA_POLICY_0_1
|
protected static int |
ATA_POLICY_2_3
|
protected static int |
AWARD_HD1_USERDEF
|
protected static int |
CHECKSUM_HIGH_BYTE
|
protected static int |
CHECKSUM_LOW_BYTE
|
protected static int |
ELTORITO_BOOT
|
protected static int |
ELTORITO_BOOT2
|
protected static int |
FLOPPYDRIVE_TYPE
|
protected static int |
IBM_BASE_MEM_HIGH
|
protected static int |
IBM_BASE_MEM_LOW
|
protected static int |
IBM_EQUIPMENT
|
protected static int |
IBM_EXTEND_HD1
|
protected static int |
IBM_EXTEND_HD2
|
protected static int |
IBM_EXTEND_MEM_HIGH
|
protected static int |
IBM_EXTEND_MEM_LOW
|
protected static int |
IBM_EXTEND_MEM2_HIGH
|
protected static int |
IBM_EXTEND_MEM2_LOW
|
protected static int |
IBM_HD_DATA
|
protected static int |
IBM_PS2_HD1_DATA
|
protected static int |
IBM_PS2_HD2_DATA
|
protected static int |
IBM_PS2_RTC_CENTURY
|
protected static int |
IBM_RTC_CENTURY
|
protected byte[] |
ram
|
protected static int |
RTC_DATEOFMONTH
|
protected static int |
RTC_DAYOFWEEK
|
protected static int |
RTC_HOUR_ALARM
|
protected static int |
RTC_HOURS
|
protected static int |
RTC_MINUTE_ALARM
|
protected static int |
RTC_MINUTES
|
protected static int |
RTC_MONTH
|
protected static int |
RTC_SECOND_ALARM
|
protected static int |
RTC_SECONDS
|
protected static int |
RTC_YEAR
|
protected static int |
SHUTDOWN_STATUS
|
protected static int |
STATUS_REGISTER_A
|
protected static int |
STATUS_REGISTER_B
|
protected static int |
STATUS_REGISTER_C
|
protected static int |
STATUS_REGISTER_D
|
Constructor Summary | |
---|---|
CMOS()
Class constructor |
Method Summary | |
---|---|
protected int |
bcdToDec(byte bcdValue)
Performs a conversion of bcd value into decimal. |
protected byte |
decToBcd(int decimalValue)
Performs a conversion of decimal value into Binary Code Decimal (BCD). |
protected java.lang.String |
getClockValue()
Returns string of decimal representation of time and date |
protected void |
reset(boolean systemTime)
|
protected void |
setClockValue(int seconds)
Updates the clock values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected byte[] ram
protected static final int RTC_SECONDS
protected static final int RTC_SECOND_ALARM
protected static final int RTC_MINUTES
protected static final int RTC_MINUTE_ALARM
protected static final int RTC_HOURS
protected static final int RTC_HOUR_ALARM
protected static final int RTC_DAYOFWEEK
protected static final int RTC_DATEOFMONTH
protected static final int RTC_MONTH
protected static final int RTC_YEAR
protected static final int STATUS_REGISTER_A
protected static final int STATUS_REGISTER_B
protected static final int STATUS_REGISTER_C
protected static final int STATUS_REGISTER_D
protected static final int SHUTDOWN_STATUS
protected static final int FLOPPYDRIVE_TYPE
protected static final int IBM_PS2_HD1_DATA
protected static final int IBM_HD_DATA
protected static final int IBM_PS2_HD2_DATA
protected static final int IBM_EQUIPMENT
protected static final int IBM_BASE_MEM_LOW
protected static final int IBM_BASE_MEM_HIGH
protected static final int IBM_EXTEND_MEM_LOW
protected static final int IBM_EXTEND_MEM_HIGH
protected static final int IBM_EXTEND_HD1
protected static final int IBM_EXTEND_HD2
protected static final int AWARD_HD1_USERDEF
protected static final int CHECKSUM_HIGH_BYTE
protected static final int CHECKSUM_LOW_BYTE
protected static final int IBM_EXTEND_MEM2_LOW
protected static final int IBM_EXTEND_MEM2_HIGH
protected static final int IBM_RTC_CENTURY
protected static final int AMI_EXTEND_MEM_LOW
protected static final int AMI_EXTEND_MEM_HIGH
protected static final int IBM_PS2_RTC_CENTURY
protected static final int ELTORITO_BOOT
protected static final int ATA_POLICY_0_1
protected static final int ATA_POLICY_2_3
protected static final int ELTORITO_BOOT2
Constructor Detail |
---|
public CMOS()
Method Detail |
---|
protected void reset(boolean systemTime)
systemTime
- protected byte decToBcd(int decimalValue)
decimalValue
-
protected int bcdToDec(byte bcdValue)
bcdValue
-
protected java.lang.String getClockValue()
protected void setClockValue(int seconds)
seconds
- Number of seconds to update the clock
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |