SunSPOT API V3.0


com.sun.spot.peripheral
Class SpiPcs

java.lang.Object
  extended by com.sun.spot.peripheral.SpiPcs

public class SpiPcs
extends Object


Constructor Summary
SpiPcs(PeripheralChipSelect pcs, int spiConfiguration)
          Create a SpiPcs for accessing the device whose chip select and SPI modes are as specified.
 
Method Summary
 int getConfiguration()
           
 int getPcsIndex()
           
 void setConfiguration(int config)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpiPcs

public SpiPcs(PeripheralChipSelect pcs,
              int spiConfiguration)
Create a SpiPcs for accessing the device whose chip select and SPI modes are as specified. See ISpiMaster for details of SPI configuration settings.

Parameters:
pcs - The chip select of the device
spiConfiguration - Value to be written into SPI_CSR for transfers to this device
Method Detail

getPcsIndex

public int getPcsIndex()

getConfiguration

public int getConfiguration()

setConfiguration

public void setConfiguration(int config)

SunSPOT API V3.0


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