39#define KW41ZRF_MAX_PKT_LENGTH (IEEE802154_FRAME_LEN_MAX)
49#ifndef KW41ZRF_DEFAULT_CHANNEL
50#define KW41ZRF_DEFAULT_CHANNEL (CONFIG_IEEE802154_DEFAULT_CHANNEL)
56#ifndef KW41ZRF_DEFAULT_CCA_THRESHOLD
57#define KW41ZRF_DEFAULT_CCA_THRESHOLD (-60)
63#ifndef KW41ZRF_DEFAULT_LQI_COMPENSATION
64#define KW41ZRF_DEFAULT_LQI_COMPENSATION (102)
73#define KW41ZRF_MIN_CHANNEL (11U)
74#define KW41ZRF_MAX_CHANNEL (26U)
80#define KW41ZRF_DEFAULT_TX_POWER (CONFIG_IEEE802154_DEFAULT_TXPOWER)
85#define KW41ZRF_OUTPUT_POWER_MAX (4)
90#define KW41ZRF_OUTPUT_POWER_MIN (-19)
Definitions for netdev common IEEE 802.15.4 code.
Definitions low-level network driver interface.
int kw41zrf_reset(kw41zrf_t *dev)
Reset radio hardware and restore default settings.
int kw41zrf_init(kw41zrf_t *dev, kw41zrf_cb_t cb)
Initialize the given KW41ZRF device.
void kw41zrf_setup(kw41zrf_t *dev, uint8_t index)
Setup an KW41ZRF based device state.
void(* kw41zrf_cb_t)(void *arg)
ISR callback function type.
Mutex for thread synchronization.
Protocol type definitions.
thread_t holds thread's context data.
Device descriptor for KW41ZRF radio devices.
uint8_t csma_max_be
Maximum backoff exponent (macMaxBe)
uint8_t recv_blocked
blocks moving to XCVSEQ_RECEIVE to prevent overwriting the RX buffer before the higher layers have co...
uint8_t csma_num_backoffs
Counter used internally by send implementation.
int16_t tx_power
The current tx-power setting of the device.
uint8_t csma_max_backoffs
Maximum number of CSMA backoffs when waiting for channel clear (macMaxCsmaBackoffs)
uint32_t rx_warmup_time
RX warmup time, in event timer ticks.
uint32_t backoff_delay
CSMA delay for the current TX operation.
uint8_t csma_min_be
Minimum backoff exponent (macMinBe)
uint8_t csma_be
Counter used internally by send implementation.
uint32_t rf_osc_en_idle
RF_OSC_EN bits setting when RF module is in standby.
uint32_t tx_timeout
Used to timeout waiting for ACK during TRX.
uint8_t cca_result
Used for passing CCA result from ISR to user.
uint8_t pm_blocked
true if we have blocked a low power mode in the CPU
uint8_t idle_seq
state to return to after sending
uint8_t num_retrans
Counter used internally by send implementation.
thread_t * thread
Network driver thread, for providing feedback from IRQ handler.
uint8_t flags
Internal driver option flags.
uint8_t max_retrans
Maximum number of frame retransmissions when no Ack frame is received (macMaxFrameRetries)
netdev_ieee802154_t netdev
netdev parent struct
uint32_t tx_warmup_time
TX warmup time, in event timer ticks.
Extended structure to hold IEEE 802.15.4 driver state.