|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.dalsemi.system.Clock
This class provides access to the TINI Real-Time clock. The methods support
setting and getting the clock values. Getting the time involves calling
getRTC() and then accessing the public static ints
(i.e. year, month, hour,...) to get the clock values. Setting the time
involves setting the public static ints (i.e. year, month, hour,
...) and then calling setRTC(). This class will be modified
at a later date to conform to Java clock/calendar classes.
| Field Summary | |
int |
date
Day of the month |
int |
day
Day of the week |
int |
hour
Hour |
int |
hundredth
Hundreths of seconds |
boolean |
is12Hour
12/24 hour flag |
int |
minute
Minute |
int |
month
Month |
boolean |
pm
PM/AM flag |
int |
second
Second |
int |
year
Year mod 100 |
| Constructor Summary | |
Clock()
Constructor |
|
| Method Summary | |
boolean |
get12Hour()
get the 12/24 hour mode for the Real Time Clock. |
int |
getDate()
get the date value for the Real Time Clock. |
int |
getDay()
get the day value for the Real Time Clock. |
int |
getHour()
get the hour value for the Real Time Clock. |
int |
getHundredth()
get the hundredth value for the Real Time Clock. |
int |
getMinute()
get the minute value for the Real Time Clock. |
int |
getMonth()
get the month value for the Real Time Clock. |
boolean |
getPm()
get the AM/PM value for the Real Time Clock. |
void |
getRTC()
Reads Real time clock values from hardware clock and places them into Clock static fields. |
int |
getSecond()
get the second value for the Real Time Clock. |
int |
getTickCount()
Get the current time in milliseconds. |
int |
getYear()
get the year value for the Real Time Clock. |
void |
set12Hour(boolean is12Hour)
Sets the 12/24 hour mode of the Real Time Clock. |
void |
setDate(int Date)
Sets the date value of the Real Time Clock. |
void |
setDay(int Day)
Sets the day value of the Real Time Clock. |
void |
setHour(int Hour)
Sets the hour value of the Real Time Clock. |
void |
setHundredth(int Hundredth)
Sets the hundredth value of the Real Time Clock. |
void |
setMinute(int Minute)
Sets the minute value of the Real Time Clock. |
void |
setMonth(int Month)
Sets the month value of the Real Time Clock. |
void |
setPm(boolean PM)
Sets the AM/PM value of the Real Time Clock. |
void |
setRTC()
Reads real time clock values from static ints and writes them to the hardware clock. |
void |
setSecond(int Second)
Sets the second value of the Real Time Clock. |
void |
setYear(int Year)
Sets the year value of the Real Time Clock. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public int year
public int month
public int day
public int date
public int hour
public int minute
public int second
public int hundredth
public boolean pm
public boolean is12Hour
| Constructor Detail |
public Clock()
| Method Detail |
public void setYear(int Year)
int - year - the year to be set.public int getYear()
public void setMonth(int Month)
int - month - the month to be set.public int getMonth()
public void setDay(int Day)
int - day - the day to be set.public int getDay()
public void setDate(int Date)
int - date - the date to be set.public int getDate()
public void setHour(int Hour)
int - hour - the hour to be set.public int getHour()
public void setMinute(int Minute)
int - minute - the minute to be set.public int getMinute()
public void setSecond(int Second)
int - second - the second to be set.public int getSecond()
public void setHundredth(int Hundredth)
int - hundredth - the hundredths of seconds to be set.public int getHundredth()
public void setPm(boolean PM)
boolean - PM - set to true for PM, false for AMpublic boolean getPm()
public void set12Hour(boolean is12Hour)
boolean - is12Hour - true for 12 hour clock, false for 24 hour clock.public boolean get12Hour()
public void getRTC()
public int getTickCount()
public void setRTC()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||