|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.peripheral.Spot
public class Spot
The class of the root object of the Spot base library.
There is only one instance of Spot. To access it use:
Spot.getInstance();
For details of public methods see ISpot.
| Field Summary |
|---|
| Fields inherited from interface com.sun.spot.peripheral.ISpot |
|---|
MCLK_FREQUENCY, PROPERTY_SPOT_DIAGNOSTICS, SYSTEM_TICKER_TICKS_PER_MILLISECOND |
| Method Summary | |
|---|---|
void |
flashConfigPage(ConfigPage configPage)
Write a ConfigPage into the flash. |
IAT91_AIC |
getAT91_AIC()
Get access to the AT91 Interrupt Controller |
IAT91_PIO |
getAT91_PIO(int pioSelector)
Get access to the AT91 Parallel I/O Controller. |
IAT91_PowerManager |
getAT91_PowerManager()
Return the AT91_PowerManager. |
IAT91_TC |
getAT91_TC(int index)
Get access to an AT91 Timer-Counter. |
ConfigPage |
getConfigPage()
Get the configuration page held in flash |
IDMAMemoryManager |
getDMAMemoryManager()
Get the singleton DMA Memory Manager. |
IDriverRegistry |
getDriverRegistry()
Get the Driver Registry. |
Hashtable |
getExternalBoardMap()
Get the map of external boards. |
IFiqInterruptDaemon |
getFiqInterruptDaemon()
Get the FiqInterruptDaemon. |
IFlashMemoryDevice |
getFlashMemoryDevice()
Get access to the flash memory on the Spot |
ILed |
getGreenLed()
Get access to the green LED on the Spot processor board. |
int |
getHardwareType()
Get the hardware type code for this device. |
I802_15_4_MAC[] |
getI802_15_4_MACs()
Get access to the I802.15.4 MAC layers |
I802_15_4_PHY |
getI802_15_4_PHY()
Get access to the physical I802.15.4 radio device |
static ISpot |
getInstance()
Get the singleton instance of this class. |
IProprietaryRadio |
getIProprietaryRadio()
Get access to the radio via its proprietary (non-I802.15.4) interface. |
ILTC3455 |
getLTC3455()
Return the LTC3455 power regulator used by the Spot. |
IOTACommandServer |
getOTACommandServer()
Get the OTA Command Server, creating one if necessary |
Properties |
getPersistentProperties()
Get all the persistent properties, as held in the flash memory |
String |
getPersistentProperty(String key)
Get a persistent property, as held in the flash memory |
IPowerController |
getPowerController()
Get the PowerController - the AVR on the spot. |
byte[] |
getPublicKey()
Get the Public Key used to sign and verify application and library suites, and the config page. |
IRadioPolicyManager |
getRadioPolicyManager()
Get the singleton radio policy manager |
ILed |
getRedLed()
Get access to the red LED on the Spot processor board. |
IRemotePrintManager |
getRemotePrintManager()
Get the singleton remote print manager |
IResourceRegistry |
getResourceRegistry()
Get the singleton resource registry |
ISecuredSiliconArea |
getSecuredSiliconArea()
Get the SecuredSiliconArea |
ISleepManager |
getSleepManager()
Get access to the sleep manager for the Spot |
ISpiMaster |
getSPI()
Get access to the SPI interface. |
ISpotPins |
getSpotPins()
Get the singleton SpotPins instance. |
int |
getSystemTicks()
Return a tick count in the range of zero to ISpot.SYSTEM_TICKER_TICKS_PER_MILLISECOND. |
IUSBPowerDaemon |
getUsbPowerDaemon()
Get the usb power daemon |
boolean |
isMasterIsolate()
|
boolean |
isRunningOnHost()
|
static void |
main(String[] args)
Main entry point. |
void |
resetExternalBoardMap()
Clear the cache of external board properties. |
static void |
setInstance(ISpot theSpot)
FOR TEST PURPOSES ONLY |
void |
setPersistentProperties(Properties props)
Set one or more persistent property in the flash memory |
void |
setPersistentProperty(String key,
String value)
Set a persistent property in the flash memory |
void |
setProperty(String key,
String value)
Set the system property "key" to have the value "value" |
void |
storeProperties(Properties props)
Replace the persistent properties held in the flash memory |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void main(String[] args)
args - arg[0] indicates whether the main or a child isolate is being startedpublic static ISpot getInstance()
public IFiqInterruptDaemon getFiqInterruptDaemon()
ISpot
getFiqInterruptDaemon in interface ISpotpublic ILed getGreenLed()
ISpot
getGreenLed in interface ISpotpublic ILed getRedLed()
ISpot
getRedLed in interface ISpotpublic ISpotPins getSpotPins()
ISpot
getSpotPins in interface ISpotpublic IAT91_PIO getAT91_PIO(int pioSelector)
ISpot
getAT91_PIO in interface ISpotpioSelector - selects the PIO required (use one of the selector symbols found in IAT91_PIO)
public IAT91_PowerManager getAT91_PowerManager()
getAT91_PowerManager in interface ISpotpublic IRadioPolicyManager getRadioPolicyManager()
ISpot
getRadioPolicyManager in interface ISpotpublic IDMAMemoryManager getDMAMemoryManager()
ISpot
getDMAMemoryManager in interface ISpotpublic ILTC3455 getLTC3455()
getLTC3455 in interface ISpotpublic IAT91_AIC getAT91_AIC()
ISpot
getAT91_AIC in interface ISpotpublic I802_15_4_PHY getI802_15_4_PHY()
ISpot
getI802_15_4_PHY in interface ISpotpublic IProprietaryRadio getIProprietaryRadio()
ISpot
getIProprietaryRadio in interface ISpotpublic I802_15_4_MAC[] getI802_15_4_MACs()
ISpot
getI802_15_4_MACs in interface ISpotpublic ISpiMaster getSPI()
ISpot
getSPI in interface ISpotpublic IDriverRegistry getDriverRegistry()
ISpot
getDriverRegistry in interface ISpotpublic IFlashMemoryDevice getFlashMemoryDevice()
ISpot
getFlashMemoryDevice in interface ISpotpublic int getHardwareType()
ISpot
getHardwareType in interface ISpotpublic IAT91_TC getAT91_TC(int index)
getAT91_TC in interface ISpotindex - The index of the required TC in the range 0-5
public IUSBPowerDaemon getUsbPowerDaemon()
ISpot
getUsbPowerDaemon in interface ISpotpublic ISecuredSiliconArea getSecuredSiliconArea()
ISpot
getSecuredSiliconArea in interface ISpotpublic ConfigPage getConfigPage()
ISpot
getConfigPage in interface ISpotpublic byte[] getPublicKey()
ISpot
getPublicKey in interface ISpotpublic void flashConfigPage(ConfigPage configPage)
ISpot
flashConfigPage in interface ISpotpublic Hashtable getExternalBoardMap()
ISpot
getExternalBoardMap in interface ISpotpublic void resetExternalBoardMap()
ISpot
resetExternalBoardMap in interface ISpotpublic ISleepManager getSleepManager()
ISpot
getSleepManager in interface ISpotpublic IPowerController getPowerController()
ISpot
getPowerController in interface ISpotpublic boolean isMasterIsolate()
isMasterIsolate in interface ISpotpublic String getPersistentProperty(String key)
ISpot
getPersistentProperty in interface ISpotpublic Properties getPersistentProperties()
ISpot
getPersistentProperties in interface ISpot
public void setPersistentProperty(String key,
String value)
ISpot
setPersistentProperty in interface ISpotvalue - the value required or null to erasepublic void setPersistentProperties(Properties props)
ISpot
setPersistentProperties in interface ISpotprops - the properties to set
public void storeProperties(Properties props)
throws IOException
ISpot
storeProperties in interface ISpotprops - the properties to set
IOExceptionpublic boolean isRunningOnHost()
isRunningOnHost in interface ISpot
public IOTACommandServer getOTACommandServer()
throws IOException
ISpot
getOTACommandServer in interface ISpotIOException
public void setProperty(String key,
String value)
ISpot
setProperty in interface ISpotpublic int getSystemTicks()
ISpotISpot.SYSTEM_TICKER_TICKS_PER_MILLISECOND.
The count resets to zero every millisecond
getSystemTicks in interface ISpotpublic IResourceRegistry getResourceRegistry()
ISpot
getResourceRegistry in interface ISpotpublic IRemotePrintManager getRemotePrintManager()
ISpot
getRemotePrintManager in interface ISpotpublic static void setInstance(ISpot theSpot)
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||