Interface: tos.chips.cc2420.interfaces.CC2420Register
interface CC2420Register
Interface representing one of the Read/Write registers on the
CC2420 radio. The return values (when appropriate) refer to the
status byte returned on the CC2420 SO pin. A full list of RW
registers can be found on page 61 of the CC2420 datasheet (rev
1.2). Page 25 of the same document describes the protocol for
interacting with these registers over the CC2420 SPI bus.
- Author:
-
Philip Levis
- Version:
-
$Revision: 1.2 $ $Date: 2008/06/11 00:46:23 $
Commands
command cc2420_status_t read(uint16_t *data)
command cc2420_status_t write(uint16_t data)
Commands - Details
read
command cc2420_status_t read(uint16_t *data)
- Parameters:
-
data - pointer to place the register value.
- Returns:
-
status byte from the read.
write
command cc2420_status_t write(uint16_t data)
- Parameters:
-
data - value to write to register.
- Returns:
-
status byte from the write.