com.sun.spot.peripheral
Class CC2420Driver
java.lang.Object
com.sun.spot.peripheral.CC2420Driver
public class CC2420Driver
- extends Object
|
Method Summary |
int |
getRegister(int first)
|
boolean |
isCcaHigh()
|
boolean |
isFifoHigh()
|
boolean |
isFifopHigh()
|
boolean |
isOKForTransmit()
|
boolean |
isSfdHigh()
|
boolean |
isVRegEnHigh()
|
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()
|
CC2420Driver
public CC2420Driver(ISpiMaster spi,
SpiPcs ce_pin,
ISpotPins spotPins)
sendAndReceive
public void sendAndReceive(int txSize,
byte[] tx,
int rxOffset,
int rxSize,
byte[] rx)
sendReceive8PlusSendN
public int sendReceive8PlusSendN(int first,
int size,
byte[] subsequent)
getRegister
public int getRegister(int first)
setRegister
public int setRegister(int first,
int subsequent)
sendStrobe
public int sendStrobe(int data)
sendReceive8PlusVariableReceiveN
public int sendReceive8PlusVariableReceiveN(int first,
byte[] subsequent)
sendRAM
public int sendRAM(int ramAddress,
byte data)
- Write the chip's ram. To support testing
- Parameters:
ramAddress - -- the address at which to writedata - -- the byte to write
- Returns:
sendRAM
public int sendRAM(int ramAddress,
short data)
sendRAM
public int sendRAM(int ramAddress,
long data)
receiveRAM
public byte receiveRAM(int ramAddress)
- Read the chip's ram. To support testing
- Parameters:
ramAddress - -- the address at which to read ram
- Returns:
- -- the byte of ram read
isSfdHigh
public boolean isSfdHigh()
isFifopHigh
public boolean isFifopHigh()
isFifoHigh
public boolean isFifoHigh()
isCcaHigh
public boolean isCcaHigh()
isVRegEnHigh
public boolean isVRegEnHigh()
setVRegEn
public void setVRegEn(boolean b)
setReset
public void setReset(boolean b)
tearDown
public void tearDown()
setUp
public void setUp()
isOKForTransmit
public boolean isOKForTransmit()
Copyright © 2006 Sun Microsystems, Inc. All Rights Reserved.