Go to the documentation of this file.
24 #ifndef AT86RF2XX_INTERNAL_H
25 #define AT86RF2XX_INTERNAL_H
31 #if defined(MODULE_AT86RFA1) || defined(MODULE_AT86RFR2)
44 #ifdef MODULE_AT86RF212B
45 #define AT86RF2XX_TXPOWER_MAX (36)
46 #elif MODULE_AT86RF233
47 #define AT86RF2XX_TXPOWER_MAX (21)
49 #define AT86RF2XX_TXPOWER_MAX (20)
55 #ifdef MODULE_AT86RF212B
56 #define AT86RF2XX_TXPOWER_OFF (25)
58 #define AT86RF2XX_TXPOWER_OFF (17)
65 #define AT86RF2XX_WAKEUP_DELAY (306U)
71 #define AT86RF2XX_RESET_PULSE_WIDTH (62U)
79 #define AT86RF2XX_RESET_DELAY (62U)
89 #if defined(MODULE_AT86RFA1) || defined(MODULE_AT86RFR2)
105 #if defined(MODULE_AT86RFA1) || defined(MODULE_AT86RFR2)
107 const uint8_t value) {
123 #if defined(MODULE_AT86RFA1) || defined(MODULE_AT86RFR2)
125 uint8_t *data,
size_t len) {
127 memcpy(data, (
void*)(AT86RF2XX_REG__TRXFBST + offset), len);
131 uint8_t *data,
size_t len);
141 #if defined(MODULE_AT86RFA1) || defined(MODULE_AT86RFR2)
143 const uint8_t *data,
size_t len) {
145 memcpy((
void*)(AT86RF2XX_REG__TRXFBST + offset), data, len);
149 const uint8_t *data,
size_t len);
159 #if defined(MODULE_AT86RFA1) || defined(MODULE_AT86RFR2)
175 #if defined(MODULE_AT86RFA1) || defined(MODULE_AT86RFR2)
178 memcpy(data, (
void*)AT86RF2XX_REG__TRXFBST, len);
190 #if defined(MODULE_AT86RFA1) || defined(MODULE_AT86RFR2)
228 #if AT86RF2XX_RANDOM_NUMBER_GENERATOR || defined(DOXYGEN)
void at86rf2xx_reg_write(const at86rf2xx_t *dev, uint8_t addr, uint8_t value)
Write to a register at address addr from device dev.
void at86rf2xx_fb_stop(const at86rf2xx_t *dev)
Stop a read transcation internal frame buffer of the given device.
uint8_t at86rf2xx_reg_read(const at86rf2xx_t *dev, uint8_t addr)
Read from a register at address addr from device dev.
void at86rf2xx_configure_phy(at86rf2xx_t *dev)
Set PHY parameters based on channel and page number.
uint8_t at86rf2xx_get_status(const at86rf2xx_t *dev)
Convenience function for reading the status of the given device.
void at86rf2xx_fb_read(const at86rf2xx_t *dev, uint8_t *data, size_t len)
Read the internal frame buffer of the given device.
Register and command definitions for AT86RF2xx devices.
Interface definition for AT86RF2xx based drivers.
void at86rf2xx_sram_read(const at86rf2xx_t *dev, uint8_t offset, uint8_t *data, size_t len)
Read a chunk of data from the SRAM of the given device.
void at86rf2xx_assert_awake(at86rf2xx_t *dev)
Make sure that device is not sleeping.
void at86rf2xx_get_random(const at86rf2xx_t *dev, uint8_t *data, size_t len)
Read random data from the RNG.
void at86rf2xx_sram_write(const at86rf2xx_t *dev, uint8_t offset, const uint8_t *data, size_t len)
Write a chunk of data into the SRAM of the given device.
void at86rf2xx_fb_start(const at86rf2xx_t *dev)
Start a read transcation internal frame buffer of the given device.
void at86rf2xx_hardware_reset(at86rf2xx_t *dev)
Trigger a hardware reset.
Device descriptor for AT86RF2XX radio devices.