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) Read a 16-bit data word from the register.
command cc2420_status_t write(uint16_t data) Write a 16-bit data word to the register.

Commands - Details

read

command cc2420_status_t read(uint16_t *data)

Read a 16-bit data word from the register.

Parameters:
data - pointer to place the register value.
Returns:
status byte from the read.

write

command cc2420_status_t write(uint16_t data)

Write a 16-bit data word to the register.

Parameters:
data - value to write to register.
Returns:
status byte from the write.