SunSPOT host API V6.0


Package com.sun.spot.peripheral

Access to the hardware peripherals built in to the Sun SPOT main board.

See:
          Description

Interface Summary
IDeepSleepListener Implemented by classes wanting a call back when the SPOT wakes up from deep sleep.
IDriver Interface for all device drivers participating in the deep sleep setUp/tearDown process controlled by the DriverRegistry.
IFlashMemoryDevice Interface to flash memory devices on the main Spot board and external boards.
IMultipleHopConnection Connections that implement IMultipleHopConnection support adjustment of the number of hops between nodes that messages can make.
IRadioControl  
ISleepManager Interface to the low power sleep manager for the Sun SPOT
ITimeoutableConnection This interface represents any Connection between a pair of Spots that can timeout on receiving data.
 

Class Summary
BoundedInputStream Wraps a parent InputStream with an input stream on the assumptions that the first four bytes of the parent's content are a Java int which tells us how many more valid bytes remain in the parent.
BoundedOutputStream An output stream that writes the length of the data at the start.
ConfigPage Each Spot reserves some flash memory for configuration information.
NorFlashSector Define a segment of memory which is defined as being of type NOR Flash.
RadioConnectionBase Abstract base class for classes that implement a radio Connection that can time out if an expected acknowledgment doesn't arrive for a sent packet.
Spot Deprecated.  
 

Exception Summary
ChannelBusyException Thrown when an attempt to transmit over the radio fails because the channel is busy - and remains busy for a full set of retries.
NoAckException Thrown when an attempt to transmit over the radio fails because no acknowledgement is received within the time limit specified in the I802.15.4 standard.
SpotFatalException This class represents all API precondition violations by client programs.
TimeoutException Thrown when an attempt to receive data over either a "radiostream:" or "radiogram:" connection fails due to a read timeout being exceeded.
 

Package com.sun.spot.peripheral Description

Access to the hardware peripherals built in to the Sun SPOT main board. Normally you should access the individual components via interfaces obtained from the singleton instance of Spot. For example:

... ILed the greenLed = Spot.getInstance().getGreenLed(); ...

See Also:
"Sun SPOT Developers' Guide"

SunSPOT host API V6.0


Copyright © 2006-2010 Oracle. All Rights Reserved.