nRF5 SDK for Thread and Zigbee v1.0.0
Choose documentation:
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
 Radio in an invalid state.
 
#define NRF_802154_STATE_SLEEP   0x02
 Radio in sleep state.
 
#define NRF_802154_STATE_RECEIVE   0x03
 Radio in receive state.
 
#define NRF_802154_STATE_TRANSMIT   0x04
 Radio in transmit state.
 
#define NRF_802154_STATE_ENERGY_DETECTION   0x05
 Radio in energy detection state.
 
#define NRF_802154_STATE_CCA   0x06
 Radio in CCA state.
 
#define NRF_802154_STATE_CONTINUOUS_CARRIER   0x07
 Radio in continuous carrier state.
 
#define NRF_802154_TX_ERROR_NONE   0x00
 There is no transmit error.
 
#define NRF_802154_TX_ERROR_BUSY_CHANNEL   0x01
 CCA reported busy channel prior to transmission.
 
#define NRF_802154_TX_ERROR_INVALID_ACK   0x02
 Received ACK frame is other than expected.
 
#define NRF_802154_TX_ERROR_NO_MEM   0x03
 No receive buffer is available to receive an ACK.
 
#define NRF_802154_TX_ERROR_TIMESLOT_ENDED   0x04
 Radio timeslot ended during transmission procedure.
 
#define NRF_802154_TX_ERROR_NO_ACK   0x05
 ACK frame was not received during time-out period.
 
#define NRF_802154_TX_ERROR_ABORTED   0x06
 Procedure was aborted by another driver operation with FORCE priority.
 
#define NRF_802154_TX_ERROR_TIMESLOT_DENIED   0x07
 Transmission did not start due to denied timeslot request.
 
#define NRF_802154_RX_ERROR_NONE   0x00
 There is no receive error.
 
#define NRF_802154_RX_ERROR_INVALID_FRAME   0x01
 Received a malformed frame.
 
#define NRF_802154_RX_ERROR_INVALID_FCS   0x02
 Received a frame with invalid checksum.
 
#define NRF_802154_RX_ERROR_INVALID_DEST_ADDR   0x03
 Received a frame with mismatched destination address.
 
#define NRF_802154_RX_ERROR_RUNTIME   0x04
 A runtime error occurred (for example, CPU was held for too long).
 
#define NRF_802154_RX_ERROR_TIMESLOT_ENDED   0x05
 Radio timeslot ended during frame reception.
 
#define NRF_802154_RX_ERROR_ABORTED   0x06
 Procedure was aborted by another driver operation with FORCE priority.
 
#define NRF_802154_ED_ERROR_ABORTED   0x01
 Procedure was aborted by another driver operation with FORCE priority.
 
#define NRF_802154_CCA_ERROR_ABORTED   0x01
 Procedure was aborted by another driver operation with FORCE priority.
 
#define NRF_802154_TERM_NONE   0x00
 Request is skipped if another operation is ongoing.
 
#define NRF_802154_TERM_802154   0x01
 Request terminates ongoing 802.15.4 operation.
 

Typedefs

typedef uint8_t nrf_802154_state_t
 States of the driver.
 
typedef uint8_t nrf_802154_tx_error_t
 Errors reported during frame transmission.
 
typedef uint8_t nrf_802154_rx_error_t
 Possible errors during frame reception.
 
typedef uint8_t nrf_802154_ed_error_t
 Possible errors during energy detection.
 
typedef uint8_t nrf_802154_cca_error_t
 Possible errors during CCA procedure.
 
typedef uint8_t nrf_802154_term_t
 Termination level selected for a particular request. More...
 

Detailed Description

Definitions of types used in the 802.15.4 driver.

Typedef Documentation

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.