|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISpot
The interface to the root object of the Spot base library.
This interface provides access to the LED on the Spot board, to the AT91 peripherals,
and to other resources such as the software SPI implementation.
Field Summary | |
---|---|
static int |
MCLK_FREQUENCY
Frequency of ARM master clock |
static String |
PROPERTY_SPOT_DIAGNOSTICS
System property that if true enables output of log messages on System.err |
static int |
SPOT_GLOBAL_FLASH_MANAGER
The index used with SpotGlobals to access the globally shared FlashManager |
static int |
SPOT_GLOBAL_NOR_FLASH_SECTOR_FACTORY
The index used with SpotGlobals to access the globally shared NorFlashSectorFactory |
static int |
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()
Get the singleton AT91 chip power manager |
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 |
IProprietaryRadio |
getIProprietaryRadio()
Get access to the radio via its proprietary (non-I802.15.4) interface. |
ILTC3455 |
getLTC3455()
power control chip driver |
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 SYSTEM_TICKER_TICKS_PER_MILLISECOND . |
IUSBPowerDaemon |
getUsbPowerDaemon()
Get the usb power daemon |
boolean |
isMasterIsolate()
|
boolean |
isRunningOnHost()
|
void |
resetExternalBoardMap()
Clear the cache of external board properties. |
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 |
Field Detail |
---|
static final int MCLK_FREQUENCY
static final int SYSTEM_TICKER_TICKS_PER_MILLISECOND
static final String PROPERTY_SPOT_DIAGNOSTICS
static final int SPOT_GLOBAL_FLASH_MANAGER
static final int SPOT_GLOBAL_NOR_FLASH_SECTOR_FACTORY
Method Detail |
---|
boolean isRunningOnHost()
boolean isMasterIsolate()
int getHardwareType()
ISpotPins getSpotPins()
ILed getGreenLed()
ILed getRedLed()
FiqInterruptDaemon getFiqInterruptDaemon()
IAT91_PIO getAT91_PIO(int pioSelector)
pioSelector
- selects the PIO required (use one of the selector symbols found in IAT91_PIO)
IAT91_AIC getAT91_AIC()
I802_15_4_PHY getI802_15_4_PHY()
I802_15_4_MAC[] getI802_15_4_MACs()
IProprietaryRadio getIProprietaryRadio()
ISpiMaster getSPI()
IDriverRegistry getDriverRegistry()
ISecuredSiliconArea getSecuredSiliconArea()
IAT91_TC getAT91_TC(int index)
index
- The index of the required TC in the range 0-5
ConfigPage getConfigPage()
byte[] getPublicKey()
void flashConfigPage(ConfigPage configPage)
Hashtable getExternalBoardMap()
void resetExternalBoardMap()
IFlashMemoryDevice getFlashMemoryDevice()
ISleepManager getSleepManager()
ILTC3455 getLTC3455()
IUSBPowerDaemon getUsbPowerDaemon()
IPowerController getPowerController()
void setPersistentProperty(String key, String value)
key
- value
- the value required or null to erasevoid setPersistentProperties(Properties props)
props
- the properties to setvoid storeProperties(Properties props) throws IOException
props
- the properties to set
IOException
String getPersistentProperty(String key)
key
-
Properties getPersistentProperties()
OTACommandServer getOTACommandServer() throws IOException
IOException
IRadioPolicyManager getRadioPolicyManager()
void setProperty(String key, String value)
key
- value
- int getSystemTicks()
SYSTEM_TICKER_TICKS_PER_MILLISECOND
.
The count resets to zero every millisecond
IResourceRegistry getResourceRegistry()
IAT91_PowerManager getAT91_PowerManager()
IDMAMemoryManager getDMAMemoryManager()
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |