|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.spot.peripheral.external.ExternalBoard
public class ExternalBoard
Represents an external board. Used primarily to manage the properties stored in the serial flash memory of any SPOT external board. Acts as the base class for specific board implemenations.
| Field Summary | |
|---|---|
protected static int |
BOARD_MAGIC_WORD
|
static String |
ID_PROPERTY_NAME
|
| Constructor Summary | |
|---|---|
|
ExternalBoard(PeripheralChipSelect pcs)
Create an interface to the external board |
protected |
ExternalBoard(String partId)
Create an interface to an external board |
| Method Summary | |
|---|---|
protected void |
forceChipSelectPin(PeripheralChipSelect pin)
Force the chip select pin to be as specified. |
Properties |
getProperties()
Get the properties of this board. |
IFlashMemoryDevice |
getSerialFlash()
Get the serial flash memory device |
protected void |
hardwareNotValid()
Handle the case where no board id matches |
boolean |
isInstalled()
|
protected BoardDeviceSPI |
newBoardDeviceSPI(int deviceAddress)
|
void |
setProperties(Properties p)
Set the properties of this board |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ID_PROPERTY_NAME
protected static final int BOARD_MAGIC_WORD
| Constructor Detail |
|---|
public ExternalBoard(PeripheralChipSelect pcs)
pcs - The chip select pin of the boardprotected ExternalBoard(String partId)
partId - The part id to match against| Method Detail |
|---|
public Properties getProperties()
getProperties in interface IExternalBoard
public void setProperties(Properties p)
throws IOException
setProperties in interface IExternalBoardp - The properties to set.
IOExceptionpublic IFlashMemoryDevice getSerialFlash()
getSerialFlash in interface IExternalBoardIFlashMemoryDeviceprotected BoardDeviceSPI newBoardDeviceSPI(int deviceAddress)
protected void hardwareNotValid()
protected void forceChipSelectPin(PeripheralChipSelect pin)
pin - SpiPcs for the boardpublic boolean isInstalled()
|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||