com.sun.spot.peripheral
Class SpiPcs
java.lang.Object
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. |
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 devicespiConfiguration
- Value to be written into SPI_CSR for transfers to this device
getPcsIndex
public int getPcsIndex()
getConfiguration
public int getConfiguration()
setConfiguration
public void setConfiguration(int config)
Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.