Loading...
Searching...
No Matches
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
 
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.
 
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

◆ ack_rcvd

bool kw2xrf_t::ack_rcvd

Indicate if ACK was received for last transmission.

Definition at line 138 of file kw2xrf.h.

◆ ack_requested

bool kw2xrf_t::ack_requested

ACK was requested for last frame.

Definition at line 134 of file kw2xrf.h.

◆ buf

uint8_t kw2xrf_t::buf[KW2XRF_MAX_PKT_LENGTH]

Buffer for incoming or outgoing packets.

Definition at line 126 of file kw2xrf.h.

◆ cca_before_tx

bool kw2xrf_t::cca_before_tx

true if CCA shall be performed before TX

Definition at line 139 of file kw2xrf.h.

◆ ch_clear

bool kw2xrf_t::ch_clear

CCA indicated channel clear.

Definition at line 135 of file kw2xrf.h.

◆ idle_state

uint8_t kw2xrf_t::idle_state

state to return to after sending

Definition at line 129 of file kw2xrf.h.

◆ params

const kw2xrf_params_t* kw2xrf_t::params

parameters for initialization

Definition at line 125 of file kw2xrf.h.

◆ pending_tx

uint8_t kw2xrf_t::pending_tx

keep track of pending TX calls this is required to know when to return to kw2xrf_t::idle_state

Definition at line 130 of file kw2xrf.h.

◆ state

uint8_t kw2xrf_t::state

current state of the radio

Definition at line 127 of file kw2xrf.h.

◆ 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.

◆ tx_cca_pending

bool kw2xrf_t::tx_cca_pending

true a manual CCA was started and a TX should be triggered on channel clear indication

Definition at line 140 of file kw2xrf.h.

◆ tx_done

bool kw2xrf_t::tx_done

Indicate whether TX completed.

Definition at line 137 of file kw2xrf.h.

◆ tx_frame_len

uint8_t kw2xrf_t::tx_frame_len

length of the current TX frame

Definition at line 128 of file kw2xrf.h.

◆ tx_power

int16_t kw2xrf_t::tx_power

The current tx-power setting of the device.

Definition at line 133 of file kw2xrf.h.

◆ waiting_for_cca

bool kw2xrf_t::waiting_for_cca

Indicate whether CCA is still ongoing.

Definition at line 136 of file kw2xrf.h.


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