|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.dalsemi.system.TINIOS
The TINIOS class contains static methods to read
the state of the running tasks, set system type variables, etc.
The default encoding String is also kept here.
| Constructor Summary | |
TINIOS()
|
|
| Method Summary | |
static void |
blastHeapOnReboot(int blastType)
Calling this function will cause the heap to be destroyed (reinitialized) on the next boot. |
static void |
feedWatchdog()
Feed the Watchdog timer. |
static java.lang.String |
getDefaultEncoding()
|
static int |
getExternalSerialPortAddress(int portNum)
|
static boolean |
getExternalSerialPortEnable(int portNum)
|
static boolean |
getExternalSerialPortSearchEnable()
|
static int |
getFreeRAM()
Gets the free RAM. |
static int |
getLCDAddress()
Gets the address of the LCD port. |
static int |
getOwnerIDByTaskID(int taskid)
Get tasks unique hash id from the taskid |
static boolean |
getSerialBootMessagesState()
Deprecated. |
static int |
getTaskID()
Get tasks unique hash id from the taskid |
static java.lang.String[] |
getTaskTable()
Return the task table |
static int[] |
getTaskTableIDs()
Return the task table |
static java.lang.String |
getTINIOSFirmwareVersion()
Get a string representing the TINI OS Firmware Version. |
static boolean |
isCurrentTaskInit()
Is the current process the init process? (HEX file in bank 7) |
static boolean |
isTaskRunning(int taskid)
Check to see if task with specified Hash ID is running |
static int |
killTask(int taskID)
Stop and remove task from system. |
static void |
reboot()
Does a quick (and at this point ugly) system reboot. |
static void |
setDebugMessagesState(boolean on)
Set the state of debug messages. |
static void |
setExternalSerialPortAddress(int portNum,
int address)
|
static void |
setExternalSerialPortEnable(int portNum,
boolean enable)
|
static void |
setExternalSerialPortSearchEnable(boolean enable)
|
static void |
setLCDAddress(int address)
Sets the address of the LCD Port. |
static void |
setSerialBootMessagesState(boolean on)
Set the state of serial boot up messages. |
static void |
setWatchdogTimeout(int mstimeout)
Set the TINI Watchdog timeout. |
static void |
sleepProcess(int ms)
Delay a process for ms milliseconds. |
static long |
uptimeMillis()
Gets the approximate number of milliseconds the system has been running. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public TINIOS()
| Method Detail |
public static final java.lang.String getDefaultEncoding()
public static boolean getExternalSerialPortEnable(int portNum)
public static void setExternalSerialPortEnable(int portNum,
boolean enable)
public static boolean getExternalSerialPortSearchEnable()
public static void setExternalSerialPortSearchEnable(boolean enable)
public static int getExternalSerialPortAddress(int portNum)
public static void setExternalSerialPortAddress(int portNum,
int address)
public static void setWatchdogTimeout(int mstimeout)
mstimeout - - Timeout, in milliseconds. Don't set this too low,
because Java ain't that quick! Set to zero to turn off
the watchdog.public static void feedWatchdog()
public static java.lang.String getTINIOSFirmwareVersion()
public static boolean isCurrentTaskInit()
Thread.sleep()public static final void sleepProcess(int ms)
ms milliseconds.ms - the amout of time to sleep.Thread.sleep()public static int getTaskID()
public static int getOwnerIDByTaskID(int taskid)
public static boolean isTaskRunning(int taskid)
taskid - ID of taskpublic static java.lang.String[] getTaskTable()
public static int[] getTaskTableIDs()
public static int killTask(int taskID)
taskID - Task ID of task to kill.public static final int getFreeRAM()
public static final void reboot()
public static final boolean getSerialBootMessagesState()
public static final void setSerialBootMessagesState(boolean on)
on - Set to true to turn on boot messages, false to turn offpublic static final void setDebugMessagesState(boolean on)
on - Set to true to turn on debug messages, false to turn offpublic static final long uptimeMillis()
public static final void blastHeapOnReboot(int blastType)
blastType - - 0 for heap reinit only
1 for heap reinit and stored system variable initpublic static int getLCDAddress()
public static void setLCDAddress(int address)
- - the address of the LCD port.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||