25#ifndef CC2420_INTERNAL_H
26#define CC2420_INTERNAL_H
39#define CC2420_RESET_DELAY (500U)
40#define CC2420_XOSCON_DELAY (2000U)
42uint8_t cc2420_strobe(
const cc2420_t *dev,
const uint8_t command);
62 const uint16_t value);
73 uint8_t *data,
const size_t len);
84 const uint8_t *data,
const size_t len);
Interface definition for the CC2420 driver.
void cc2420_fifo_write(const cc2420_t *dev, uint8_t *data, const size_t len)
Writes FIFO buffer to RAM at address 0x000.
uint8_t cc2420_state(cc2420_t *dev)
Get the device's current state.
void cc2420_ram_read(const cc2420_t *dev, const uint16_t addr, uint8_t *data, const size_t len)
Read a chunk of data from the SRAM of the given device.
void cc2420_reg_write(const cc2420_t *dev, const uint8_t addr, const uint16_t value)
Write to a register at address addr from device dev.
void cc2420_fifo_read(const cc2420_t *dev, uint8_t *data, const size_t len)
Reads FIFO buffer from RAM at address 0x080.
uint8_t cc2420_status(cc2420_t *dev)
Get the device's status byte.
uint16_t cc2420_reg_read(const cc2420_t *dev, const uint8_t addr)
Read from a register at address addr from device dev.
void cc2420_ram_write(const cc2420_t *dev, const uint16_t addr, const uint8_t *data, const size_t len)
Write a chunk of data into the SRAM of the given device.
void cc2420_en_xosc(cc2420_t *dev)
Enable on-board oscillator.
Device descriptor for CC2420 radio devices.