SunSPOT API V3.0


Uses of Class
com.sun.spot.peripheral.SpiPcs

Packages that use SpiPcs
com.sun.spot.peripheral Access to the hardware peripherals built in to the Sun SPOT main board. 
 

Uses of SpiPcs in com.sun.spot.peripheral
 

Methods in com.sun.spot.peripheral with parameters of type SpiPcs
 void ISpiMaster.sendAndReceive(SpiPcs pcs, int txSize, byte[] tx, int rxOffset, int rxSize, byte[] rx)
          General SPI send and receive
 void ISpiMaster.sendAndReceive(SpiPcs pcs, int deviceAddress, int txSize, byte[] tx, int rxOffset, int rxSize, byte[] rx)
          General SPI send and receive
 int ISpiMaster.sendReceive8(SpiPcs pcs, int data)
          SPI send of 8 bits, plus simultaneous receive of 8 bits
 int ISpiMaster.sendReceive8PlusReceive16(SpiPcs pcs, int first)
          SPI send of 8 bits, plus simultaneous receive of 8 bits, then receive 16 bits
 int ISpiMaster.sendReceive8PlusSend16(SpiPcs pcs, int first, int subsequent)
          SPI send of 8 bits, plus simultaneous receive of 8 bits, then send 16 bits
 int ISpiMaster.sendReceive8PlusSendN(SpiPcs pcs, int first, int size, byte[] subsequent)
          SPI send of 8 bits, simultaneous receive of 8 bits, then send of multiple 8 bits
 int ISpiMaster.sendReceive8PlusVariableReceiveN(SpiPcs pcs, int first, byte[] subsequent, PIOPin fifo_pin)
          Specialised SPI send of 8 bits, simultaneous receive of 8 bits, then receive of multiple 8 bits

This routine is highly specialised for the CC2420

the number of bytes received is determined by the 7 bit value read as the first byte after the initial 8 bits

 

Constructors in com.sun.spot.peripheral with parameters of type SpiPcs
CC2420Driver(ISpiMaster spi, SpiPcs ce_pin, ISpotPins spotPins)
           
 


SunSPOT API V3.0


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