SunSPOT API V5.0


com.sun.spot.sensorboard.hardware
Class AtmegaExternalBoard

java.lang.Object
  extended by com.sun.spot.peripheral.external.ExternalBoard
      extended by com.sun.spot.sensorboard.hardware.AtmegaExternalBoard
All Implemented Interfaces:
IExternalBoard
Direct Known Subclasses:
AtmegaProtoBoard, EDemoController

public abstract class AtmegaExternalBoard
extends ExternalBoard

A spot sensorboard that has a resident atmega part The intent is that this ease the process of programming the atmega. May want to generalize this to any daughter card that has programmable assets.

Author:
arshan NOTES: 1/12/06 - created file

Field Summary
protected  Atmega atmega
           
 
Fields inherited from class com.sun.spot.peripheral.external.ExternalBoard
BOARD_MAGIC_WORD, ID_PROPERTY_NAME, MEMORY_PROPERTY_NAME
 
Constructor Summary
AtmegaExternalBoard(String PART_ID)
           
 
Method Summary
 Atmega getAtmega()
          call to the board to return a pointer to the Atmega Controller
 ISPI getAtmegaSPI()
           
 ISPI getProgrammingSPI()
           
 void setAtmega(Atmega atm)
          set the atmega part
 
Methods inherited from class com.sun.spot.peripheral.external.ExternalBoard
forceChipSelectPin, getBoardIndex, getProperties, getSerialFlash, hardwareNotValid, isInstalled, newBoardDeviceSPI, setProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

atmega

protected Atmega atmega
Constructor Detail

AtmegaExternalBoard

public AtmegaExternalBoard(String PART_ID)
Method Detail

getAtmega

public Atmega getAtmega()
call to the board to return a pointer to the Atmega Controller

Returns:
atmega object

setAtmega

public void setAtmega(Atmega atm)
set the atmega part

Parameters:
atm - atmega object

getProgrammingSPI

public ISPI getProgrammingSPI()
Returns:
handle to the programming spi bus

getAtmegaSPI

public ISPI getAtmegaSPI()
Returns:
handle to the standard spi bus

SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.