|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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, SPOT_GLOBAL_FLASH_MANAGER, SPOT_GLOBAL_NOR_FLASH_SECTOR_FACTORY, 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. |
FiqInterruptDaemon |
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. |
OTACommandServer |
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. |
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 FiqInterruptDaemon getFiqInterruptDaemon()
ISpot
getFiqInterruptDaemon
in interface ISpot
public ILed getGreenLed()
ISpot
getGreenLed
in interface ISpot
public ILed getRedLed()
ISpot
getRedLed
in interface ISpot
public ISpotPins getSpotPins()
ISpot
getSpotPins
in interface ISpot
public IAT91_PIO getAT91_PIO(int pioSelector)
ISpot
getAT91_PIO
in interface ISpot
pioSelector
- selects the PIO required (use one of the selector symbols found in IAT91_PIO)
public IAT91_PowerManager getAT91_PowerManager()
getAT91_PowerManager
in interface ISpot
public IRadioPolicyManager getRadioPolicyManager()
ISpot
getRadioPolicyManager
in interface ISpot
public IDMAMemoryManager getDMAMemoryManager()
ISpot
getDMAMemoryManager
in interface ISpot
public ILTC3455 getLTC3455()
getLTC3455
in interface ISpot
public IAT91_AIC getAT91_AIC()
ISpot
getAT91_AIC
in interface ISpot
public I802_15_4_PHY getI802_15_4_PHY()
ISpot
getI802_15_4_PHY
in interface ISpot
public IProprietaryRadio getIProprietaryRadio()
ISpot
getIProprietaryRadio
in interface ISpot
public I802_15_4_MAC[] getI802_15_4_MACs()
ISpot
getI802_15_4_MACs
in interface ISpot
public ISpiMaster getSPI()
ISpot
getSPI
in interface ISpot
public IDriverRegistry getDriverRegistry()
ISpot
getDriverRegistry
in interface ISpot
public IFlashMemoryDevice getFlashMemoryDevice()
ISpot
getFlashMemoryDevice
in interface ISpot
public int getHardwareType()
ISpot
getHardwareType
in interface ISpot
public IAT91_TC getAT91_TC(int index)
getAT91_TC
in interface ISpot
index
- The index of the required TC in the range 0-5
public IUSBPowerDaemon getUsbPowerDaemon()
ISpot
getUsbPowerDaemon
in interface ISpot
public ISecuredSiliconArea getSecuredSiliconArea()
ISpot
getSecuredSiliconArea
in interface ISpot
public ConfigPage getConfigPage()
ISpot
getConfigPage
in interface ISpot
public byte[] getPublicKey()
ISpot
getPublicKey
in interface ISpot
public void flashConfigPage(ConfigPage configPage)
ISpot
flashConfigPage
in interface ISpot
public Hashtable getExternalBoardMap()
ISpot
getExternalBoardMap
in interface ISpot
public void resetExternalBoardMap()
ISpot
resetExternalBoardMap
in interface ISpot
public ISleepManager getSleepManager()
ISpot
getSleepManager
in interface ISpot
public IPowerController getPowerController()
ISpot
getPowerController
in interface ISpot
public boolean isMasterIsolate()
isMasterIsolate
in interface ISpot
public String getPersistentProperty(String key)
ISpot
getPersistentProperty
in interface ISpot
public Properties getPersistentProperties()
ISpot
getPersistentProperties
in interface ISpot
public void setPersistentProperty(String key, String value)
ISpot
setPersistentProperty
in interface ISpot
value
- the value required or null to erasepublic void setPersistentProperties(Properties props)
ISpot
setPersistentProperties
in interface ISpot
props
- the properties to setpublic void storeProperties(Properties props) throws IOException
ISpot
storeProperties
in interface ISpot
props
- the properties to set
IOException
public boolean isRunningOnHost()
isRunningOnHost
in interface ISpot
public OTACommandServer getOTACommandServer() throws IOException
ISpot
getOTACommandServer
in interface ISpot
IOException
public void setProperty(String key, String value)
ISpot
setProperty
in interface ISpot
public int getSystemTicks()
ISpot
ISpot.SYSTEM_TICKER_TICKS_PER_MILLISECOND
.
The count resets to zero every millisecond
getSystemTicks
in interface ISpot
public IResourceRegistry getResourceRegistry()
ISpot
getResourceRegistry
in interface ISpot
public static void setInstance(ISpot theSpot)
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |