|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISPI
An interface defining the SPI operations used by external boards. 09-Mar-2005
| Method Summary | |
|---|---|
void |
send16bits(int i)
Send 16 bits of data. |
void |
sendSPICommand(byte[] commandSequence,
byte[] readByteSequence)
Send and receive using SPI. |
void |
sendSPICommand(byte[] commandSequence,
int commandLength,
byte[] readByteSequence,
int readLength)
Send and receive using SPI. |
void |
sendSPICommand(byte[] commandSequence,
int commandLength,
byte[] readByteSequence,
int readLength,
int readOffset)
Send and receive using SPI. |
void |
setConfiguration(int config)
Set the configuration of the SPI communications for this device. |
| Method Detail |
|---|
void send16bits(int i)
i - The data to send (least sig. 16 bits only), MSB first.
void sendSPICommand(byte[] commandSequence,
byte[] readByteSequence)
commandSequence - The data to sendreadByteSequence - An array into which the received data is placed
void sendSPICommand(byte[] commandSequence,
int commandLength,
byte[] readByteSequence,
int readLength)
commandSequence - The data to sendcommandLength - The number of bytes to sendreadByteSequence - An array into which the received data is placedreadLength - The number of bytes to receive
void sendSPICommand(byte[] commandSequence,
int commandLength,
byte[] readByteSequence,
int readLength,
int readOffset)
commandSequence - The data to sendcommandLength - The number of bytes to sendreadByteSequence - An array into which the received data is placedreadLength - The number of bytes to receivereadOffset - The number of bytes to send before beginning receptionvoid setConfiguration(int config)
ISpiMaster
config - The configuration of the SPI communications to use for this device.
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||