lejos.nxt
Class NXT

java.lang.Object
  extended by lejos.nxt.NXT

public class NXT
extends Object

Abstraction for the local NXT Device. Supports methods that are non specific to any particular sub-system.

Author:
Lawrie Griffiths

Constructor Summary
NXT()
           
 
Method Summary
static void boot()
          Boot into firmware update mode.
static int getFirmwareMajorVersion()
          Get the leJOS NXJ firmware major version
static int getFirmwareMinorVersion()
          Get the leJOS NXJ firmware minor version
static int getFirmwarePatchLevel()
          Get the leJOS NXJ firmware patch level
static int getFirmwareRawVersion()
          Return major and minor version and the patch level within a single integer.
static int getFirmwareRevision()
          Get the leJOS NXJ firmware revision number
static int getProgramExecutionsCount()
          Get the number of times a Java program (including the menu) has executed since the brick was switched on
static int getUserPages()
          Return the number of flash pages available to user programs.
static void shutDown()
          Shutdown the brick
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NXT

public NXT()
Method Detail

shutDown

public static void shutDown()
Shutdown the brick


boot

public static void boot()
Boot into firmware update mode.


getProgramExecutionsCount

public static int getProgramExecutionsCount()
Get the number of times a Java program (including the menu) has executed since the brick was switched on

Returns:
the count

getFirmwareRawVersion

public static int getFirmwareRawVersion()
Return major and minor version and the patch level within a single integer. The format is not specified. Please use getFirmwareMajorVersion(), getFirmwareMinorVersion(), and getFirmwarePatchLevel() instead of this method.

Returns:
a single version int
See Also:
getFirmwareMajorVersion(), getFirmwareMinorVersion(), getFirmwarePatchLevel()

getFirmwareMajorVersion

public static int getFirmwareMajorVersion()
Get the leJOS NXJ firmware major version

Returns:
the major version number

getFirmwareMinorVersion

public static int getFirmwareMinorVersion()
Get the leJOS NXJ firmware minor version

Returns:
the minor version number

getFirmwarePatchLevel

public static int getFirmwarePatchLevel()
Get the leJOS NXJ firmware patch level

Returns:
the patch level number

getFirmwareRevision

public static int getFirmwareRevision()
Get the leJOS NXJ firmware revision number

Returns:
the revision number

getUserPages

public static int getUserPages()
Return the number of flash pages available to user programs. Normally these pages are used to hold the leJOS file system.

Returns:
The number of user pages.