kw2xrf_t Struct Reference

Device descriptor for KW2XRF radio devices. More...

Detailed Description

Device descriptor for KW2XRF radio devices.

Definition at line 119 of file kw2xrf.h.

#include <kw2xrf.h>

thread_tthread
 device specific fields More...
 
const kw2xrf_params_tparams
 parameters for initialization
 
uint8_t buf [KW2XRF_MAX_PKT_LENGTH]
 Buffer for incoming or outgoing packets.
 
uint8_t state
 current state of the radio
 
uint8_t tx_frame_len
 length of the current TX frame
 
uint8_t idle_state
 state to return to after sending
 
uint8_t pending_tx
 keep track of pending TX calls this is required to know when to return to kw2xrf_t::idle_state
 
int16_t tx_power
 The current tx-power setting of the device.
 
bool ack_requested
 ACK was requested for last frame.
 
bool ch_clear
 CCA indicated channel clear.
 
bool waiting_for_cca
 Indicate whether CCA is still ongoing.
 
bool tx_done
 Indicate whether TX completed.
 
bool ack_rcvd
 Indicate if ACK was received for last transmission.
 
bool cca_before_tx
 true if CCA shall be performed before TX
 
bool tx_cca_pending
 true a manual CCA was started and a TX should be triggered on channel clear indication
 

Additional Inherited Members

- Data Fields inherited from netdev_ieee802154_t
netdev_t netdev
 netdev_t base class
 
uint16_t pan
 IEEE 802.15.4 specific fields. More...
 
uint8_t short_addr [IEEE802154_SHORT_ADDRESS_LEN]
 Short address in network byte order.
 
uint8_t long_addr [IEEE802154_LONG_ADDRESS_LEN]
 Long address in network byte order.
 
uint8_t seq
 sequence number
 
uint8_t chan
 channel
 
uint8_t page
 channel page
 
uint16_t flags
 flags as defined above
 
int16_t txpower
 tx power in dBm
 
ieee802154_sec_context_t sec_ctx
 security context
 
- Data Fields inherited from netdev
const struct netdev_driverdriver
 ptr to that driver's interface.
 
netdev_event_cb_t event_callback
 callback for device events
 
void * context
 ptr to network stack context
 

Field Documentation

◆ thread

thread_t* kw2xrf_t::thread

device specific fields

Network driver thread, for providing feedback from IRQ handler

Definition at line 124 of file kw2xrf.h.


The documentation for this struct was generated from the following file: