cc2420_internal.h¶
Definitions and settings for the cc2420.
-
CC2420_RESET_DELAY
¶ Delays for resetting and turning on the device.
1
(500U)
-
CC2420_XOSCON_DELAY
¶ 1
(2000U)
-
uint16_t
cc2420_reg_read
(const cc2420_t * dev, const uint8_t addr)¶ Read from a register at address
addr
from devicedev
.Parameters
dev: device to read from addr: address of the register to read Return values
- the value of the specified register
-
void
cc2420_reg_write
(const cc2420_t * dev, const uint8_t addr, const uint16_t value)¶ Write to a register at address
addr
from devicedev
.Parameters
dev: device to write to addr: address of the register to write value: value to write to the given register
-
void
cc2420_ram_read
(const cc2420_t * dev, const uint16_t addr, uint8_t * data, constmsp430_types.h::size_t
len)¶ Read a chunk of data from the SRAM of the given device.
Parameters
dev: device to read from addr: starting address to read from [valid 0x00-0x16B] data: buffer to read data into len: number of bytes to read from SRAM
-
void
cc2420_ram_write
(const cc2420_t * dev, const uint16_t addr, const uint8_t * data, constmsp430_types.h::size_t
len)¶ Write a chunk of data into the SRAM of the given device.
Parameters
dev: device to write to addr: address in the SRAM to write to [valid 0x00-0x16B] data: data to copy into SRAM len: number of bytes to write to SRAM
-
void
cc2420_fifo_read
(const cc2420_t * dev, uint8_t * data, constmsp430_types.h::size_t
len)¶ Reads FIFO buffer from RAM at address 0x080.
Parameters
dev: device to write to data: data to copy into SRAM len: number of bytes to write to SRAM