nRF5 SDK for Thread and Zigbee v4.0.0
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Type definitions used in the 802.15.4 driver

Definitions of types used in the 802.15.4 driver. More...

Data Structures

struct  nrf_802154_cca_cfg_t
 Structure for configuring CCA. More...
 

Macros

#define NRF_802154_STATE_INVALID   0x01
 
#define NRF_802154_STATE_SLEEP   0x02
 
#define NRF_802154_STATE_RECEIVE   0x03
 
#define NRF_802154_STATE_TRANSMIT   0x04
 
#define NRF_802154_STATE_ENERGY_DETECTION   0x05
 
#define NRF_802154_STATE_CCA   0x06
 
#define NRF_802154_STATE_CONTINUOUS_CARRIER   0x07
 
#define NRF_802154_TX_ERROR_NONE   0x00
 
#define NRF_802154_TX_ERROR_BUSY_CHANNEL   0x01
 
#define NRF_802154_TX_ERROR_INVALID_ACK   0x02
 
#define NRF_802154_TX_ERROR_NO_MEM   0x03
 
#define NRF_802154_TX_ERROR_TIMESLOT_ENDED   0x04
 
#define NRF_802154_TX_ERROR_NO_ACK   0x05
 
#define NRF_802154_TX_ERROR_ABORTED   0x06
 
#define NRF_802154_TX_ERROR_TIMESLOT_DENIED   0x07
 
#define NRF_802154_RX_ERROR_NONE   0x00
 
#define NRF_802154_RX_ERROR_INVALID_FRAME   0x01
 
#define NRF_802154_RX_ERROR_INVALID_FCS   0x02
 
#define NRF_802154_RX_ERROR_INVALID_DEST_ADDR   0x03
 
#define NRF_802154_RX_ERROR_RUNTIME   0x04
 
#define NRF_802154_RX_ERROR_TIMESLOT_ENDED   0x05
 
#define NRF_802154_RX_ERROR_ABORTED   0x06
 
#define NRF_802154_RX_ERROR_DELAYED_TIMESLOT_DENIED   0x07
 
#define NRF_802154_RX_ERROR_DELAYED_TIMEOUT   0x08
 
#define NRF_802154_RX_ERROR_INVALID_LENGTH   0x09
 
#define NRF_802154_RX_ERROR_DELAYED_ABORTED   0x0A
 
#define NRF_802154_ED_ERROR_ABORTED   0x01
 
#define NRF_802154_CCA_ERROR_ABORTED   0x01
 
#define NRF_802154_SLEEP_ERROR_NONE   0x00
 
#define NRF_802154_SLEEP_ERROR_BUSY   0x01
 
#define NRF_802154_TERM_NONE   0x00
 
#define NRF_802154_TERM_802154   0x01
 
#define NRF_802154_ACK_DATA_PENDING_BIT   0x00
 
#define NRF_802154_ACK_DATA_IE   0x01
 
#define NRF_802154_SRC_ADDR_MATCH_THREAD   0x00
 
#define NRF_802154_SRC_ADDR_MATCH_ZIGBEE   0x01
 
#define NRF_802154_SRC_ADDR_MATCH_ALWAYS_1   0x02
 
#define NRF_802154_RSSI_INVALID   INT8_MAX
 RSSI measurement results.
 

Typedefs

typedef uint8_t nrf_802154_state_t
 States of the driver.
 
typedef uint8_t nrf_802154_tx_error_t
 Errors reported during the frame transmission.
 
typedef uint8_t nrf_802154_rx_error_t
 Possible errors during the frame reception.
 
typedef uint8_t nrf_802154_ed_error_t
 Possible errors during the energy detection.
 
typedef uint8_t nrf_802154_cca_error_t
 Possible errors during the CCA procedure.
 
typedef uint8_t nrf_802154_sleep_error_t
 Possible errors during sleep procedure call.
 
typedef uint8_t nrf_802154_term_t
 Termination level selected for a particular request. More...
 
typedef uint8_t nrf_802154_ack_data_t
 Types of data that can be set in an ACK message.
 
typedef uint8_t nrf_802154_src_addr_match_t
 Methods of source address matching. More...
 

Detailed Description

Definitions of types used in the 802.15.4 driver.

Typedef Documentation

typedef uint8_t nrf_802154_src_addr_match_t

Methods of source address matching.

You can use one of the following methods that can be set during the initialization phase by calling nrf_802154_src_matching_method:

  • For Thread: NRF_802154_SRC_ADDR_MATCH_THREAD – The pending bit is set only for the addresses found in the list.
  • For Zigbee: NRF_802154_SRC_ADDR_MATCH_ZIGBEE – The pending bit is cleared only for the short addresses found in the list.
    This method does not set pending bit in non-command and non-data-request frames.
  • For standard-compliant implementation: NRF_802154_SRC_ADDR_MATCH_ALWAYS_1 – The pending bit is always set to 1.
    This requires an empty data frame with AR set to 0 to be transmitted immediately afterwards.
typedef uint8_t nrf_802154_term_t

Termination level selected for a particular request.

Each request can terminate an ongoing operation. This type selects which operation should be aborted by a given request.