|
SunSPOT API V2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.peripheral.CC2420Driver
public class CC2420Driver
| Constructor Summary | |
|---|---|
CC2420Driver(ISpiMaster spi,
SpiPcs ce_pin,
ISpotPins spotPins)
|
|
| Method Summary | |
|---|---|
int |
getRegister(int first)
|
boolean |
isCcaHigh()
|
boolean |
isFifoHigh()
|
boolean |
isFifopHigh()
|
boolean |
isSfdHigh()
|
boolean |
isVRegEnHigh()
|
byte[] |
readRxFifo()
Read the chip's rx fifo. |
byte |
receiveRAM(int ramAddress)
Read the chip's ram. |
void |
sendAndReceive(int txSize,
byte[] tx,
int rxOffset,
int rxSize,
byte[] rx)
|
int |
sendRAM(int ramAddress,
byte data)
Write the chip's ram. |
int |
sendRAM(int ramAddress,
long data)
|
int |
sendRAM(int ramAddress,
short data)
|
int |
sendReceive8PlusSendN(int first,
int size,
byte[] subsequent)
|
int |
sendReceive8PlusVariableReceiveN(int first,
byte[] subsequent)
|
int |
sendStrobe(int data)
|
int |
setRegister(int first,
int subsequent)
|
void |
setReset(boolean b)
|
void |
setUp()
|
void |
setVRegEn(boolean b)
|
void |
tearDown()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CC2420Driver(ISpiMaster spi,
SpiPcs ce_pin,
ISpotPins spotPins)
| Method Detail |
|---|
public void sendAndReceive(int txSize,
byte[] tx,
int rxOffset,
int rxSize,
byte[] rx)
public int sendReceive8PlusSendN(int first,
int size,
byte[] subsequent)
public int getRegister(int first)
public int setRegister(int first,
int subsequent)
public int sendStrobe(int data)
public int sendReceive8PlusVariableReceiveN(int first,
byte[] subsequent)
public int sendRAM(int ramAddress,
byte data)
ramAddress - -- the address at which to writedata - -- the byte to write
public int sendRAM(int ramAddress,
short data)
public int sendRAM(int ramAddress,
long data)
public byte receiveRAM(int ramAddress)
ramAddress - -- the address at which to read ram
public byte[] readRxFifo()
public boolean isSfdHigh()
public boolean isFifopHigh()
public boolean isFifoHigh()
public boolean isCcaHigh()
public boolean isVRegEnHigh()
public void setVRegEn(boolean b)
public void setReset(boolean b)
public void tearDown()
public void setUp()
|
SunSPOT API V2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||