Sun SPOT API
Green Release  


Package com.sun.spot.peripheral

Interfaces and classes dealing with the hardware on the SPOT processor board.

See:
          Description

Interface Summary
IAT91_AIC The interface to the AT91 Interrupt Controller.

The Java interrupt handling mechanism works like this:

At startup the main() in os.c calls set_up_java_interrupts() in eb40a-io.c which puts the address of the generic asm interrupt handler in the Source Vector Register for every interrupt source available to Java.
IAT91_Peripherals This interface simply provides symbolic access to the RM9200 peripheral ids.
IAT91_PIO Interface to the AT91 Parallel I/O Controller.
IAT91_PowerManager Interface to the power manager for the Sun SPOT, allowing peripheral power consumption to be controlled by switching the peripheral clocks on or off.
IAT91_TC Interface to an AT91 Timer Counter.
IDriver Interface for all device drivers participating in the deep sleep setUp/tearDown process controlled by the DriverRegistry.
IDriverLookup  
IDriverRegistry  
IEventHandler  
IFlashMemoryDevice Interface to flash memory devices on the main Spot board and sensor board.
ILed Represents a simple one-colour LED
ILTC3455 Interface to LTC3455 power control chip on the Spot.
IPowerController  
ISecuredSiliconArea  
ISerialPipe Interface to a pipe for sending byte arrays between host and spot
ISleepManager  
ISpiMaster Interface to the SPI master controller.
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.
ISpotPins Interface to provide PIOPin objects representing pins assigned to various external functions on the Spot board.
ITimeoutableConnection Thie interface represents any Connection between a pair of Spots that can timeout on receiving data.
IUSBPowerDaemon  
TimerCounterBits Timer counter bit definitions

See headings in the source file for more information

 

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.
CC2420Driver  
ConfigPage Each Spot reserves some flash memory for configuration information.
DriverRegistry Acts as a registry for drivers that need to be aware of deep sleep.
FiqInterruptDaemon  
FlashInputStream An InputStream that streams over flash memory.
FlashOutputStream An OutputStream that streams over flash memory.
PeripheralChipSelect  
PIOPin  
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.
SpiPcs  
Spot The class of the root object of the Spot base library.

There is only one instance of Spot.
 

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 "radio:" or "radiogram:" connection fails due to a read timeout being exceeded.
 

Package com.sun.spot.peripheral Description

Interfaces and classes dealing with the hardware on the SPOT processor board.


Sun SPOT API
Green Release  


Copyright © 2006 Sun Microsystems, Inc. All Rights Reserved.