SunSPOT API V3.0


com.sun.spot.sensorboard
Class AtmegaProtoBoard

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

public class AtmegaProtoBoard
extends AtmegaExternalBoard

beginning of the file for the AtmegaPrototyping board. THIS FILE IS NOT COMPLETE. Use at your own risk. Waiting on representitive hardware.

Author:
arshan

Field Summary
protected static Atmega48 atmegaController
           
static String PART_ID
           
 
Fields inherited from class com.sun.spot.sensorboard.hardware.AtmegaExternalBoard
atmega
 
Fields inherited from class com.sun.spot.peripheral.external.ExternalBoard
BOARD_MAGIC_WORD, ID_PROPERTY_NAME
 
Method Summary
 void forceSelect()
           
 Atmega getAtmega()
          call to the board to return a pointer to the Atmega Controller
protected static Properties getInitialProperties()
          Get the correct set of properties for this board to its flash memory
static AtmegaProtoBoard getInstance()
           
 ISPI getProgrammingSPI()
           
static IFlashMemoryDevice getSerialFlashMemory()
           
static ISPI getSPI()
           
protected  ISPI getSPIPrim()
           
protected  void hardwareNotValid()
          Handle missing id information by asking user if it should be written
static void main(String[] args)
          so the board select should really be detemined by the instantiation
 
Methods inherited from class com.sun.spot.sensorboard.hardware.AtmegaExternalBoard
getAtmegaSPI, setAtmega
 
Methods inherited from class com.sun.spot.peripheral.external.ExternalBoard
forceChipSelectPin, getBoardIndex, getProperties, getSerialFlash, isInstalled, newBoardDeviceSPI, setProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

atmegaController

protected static Atmega48 atmegaController

PART_ID

public static final String PART_ID
See Also:
Constant Field Values
Method Detail

getInstance

public static AtmegaProtoBoard getInstance()

getSPI

public static ISPI getSPI()
Returns:
the SPI controller
Throws:
IOException

getSerialFlashMemory

public static IFlashMemoryDevice getSerialFlashMemory()
Returns:
The serial flash memory device

main

public static void main(String[] args)
so the board select should really be detemined by the instantiation


getSPIPrim

protected ISPI getSPIPrim()
Returns:
the SPI controller
Throws:
IOException

hardwareNotValid

protected void hardwareNotValid()
Handle missing id information by asking user if it should be written

Overrides:
hardwareNotValid in class ExternalBoard

forceSelect

public void forceSelect()

getInitialProperties

protected static Properties getInitialProperties()
Get the correct set of properties for this board to its flash memory


getAtmega

public Atmega getAtmega()
Description copied from class: AtmegaExternalBoard
call to the board to return a pointer to the Atmega Controller

Overrides:
getAtmega in class AtmegaExternalBoard
Returns:
atmega object

getProgrammingSPI

public ISPI getProgrammingSPI()
Overrides:
getProgrammingSPI in class AtmegaExternalBoard
Returns:
handle to the programming spi bus

SunSPOT API V3.0


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