Interface: tos.chips.cc2420.interfaces.CC2420Ram
interface CC2420Ram
HAL abstraction for accessing theRAM of a ChipCon CC2420 radio.
- Author:
-
Jonathan Hui <jhui@archrock.com>
- Version:
-
$Revision: 1.2 $ $Date: 2008/06/03 04:43:03 $
Commands
command cc2420_status_t read(uint8_t offset, uint8_t *data, uint8_t length)
command cc2420_status_t write(uint8_t offset, uint8_t *data, uint8_t length)
Commands - Details
read
command cc2420_status_t read(uint8_t offset, uint8_t *data, uint8_t length)
- Parameters:
-
offset - within the field.
-
data - a pointer to the receive buffer.
-
length - number of bytes to read.
- Returns:
-
status byte returned when sending the last byte
of the SPI transaction.
write
command cc2420_status_t write(uint8_t offset, uint8_t *data, uint8_t length)
- Parameters:
-
offset - within the field.
-
data - a pointer to the send buffer.
-
length - number of bytes to write.
- Returns:
-
status byte returned when sending the last address byte
of the SPI transaction.