RADIO HAL

nRF5 SDK v16.0.0

Hardware access layer for managing the RADIO peripheral. More...

Data Structures

struct nrf_radio_packet_conf_t
Packet configuration. More...

Enumerations

enum nrf_radio_task_t {
NRF_RADIO_TASK_TXEN = offsetof(NRF_RADIO_Type, TASKS_TXEN),
NRF_RADIO_TASK_RXEN = offsetof(NRF_RADIO_Type, TASKS_RXEN),
NRF_RADIO_TASK_START = offsetof(NRF_RADIO_Type, TASKS_START),
NRF_RADIO_TASK_STOP = offsetof(NRF_RADIO_Type, TASKS_STOP),
NRF_RADIO_TASK_DISABLE = offsetof(NRF_RADIO_Type, TASKS_DISABLE),
NRF_RADIO_TASK_RSSISTART = offsetof(NRF_RADIO_Type, TASKS_RSSISTART),
NRF_RADIO_TASK_RSSISTOP = offsetof(NRF_RADIO_Type, TASKS_RSSISTOP),
NRF_RADIO_TASK_BCSTART = offsetof(NRF_RADIO_Type, TASKS_BCSTART),
NRF_RADIO_TASK_BCSTOP = offsetof(NRF_RADIO_Type, TASKS_BCSTOP),
NRF_RADIO_TASK_EDSTART = offsetof(NRF_RADIO_Type, TASKS_EDSTART),
NRF_RADIO_TASK_EDSTOP = offsetof(NRF_RADIO_Type, TASKS_EDSTOP),
NRF_RADIO_TASK_CCASTART = offsetof(NRF_RADIO_Type, TASKS_CCASTART),
NRF_RADIO_TASK_CCASTOP = offsetof(NRF_RADIO_Type, TASKS_CCASTOP)
}
RADIO tasks. More...
enum nrf_radio_event_t {
NRF_RADIO_EVENT_READY = offsetof(NRF_RADIO_Type, EVENTS_READY),
NRF_RADIO_EVENT_ADDRESS = offsetof(NRF_RADIO_Type, EVENTS_ADDRESS),
NRF_RADIO_EVENT_PAYLOAD = offsetof(NRF_RADIO_Type, EVENTS_PAYLOAD),
NRF_RADIO_EVENT_END = offsetof(NRF_RADIO_Type, EVENTS_END),
NRF_RADIO_EVENT_DISABLED = offsetof(NRF_RADIO_Type, EVENTS_DISABLED),
NRF_RADIO_EVENT_DEVMATCH = offsetof(NRF_RADIO_Type, EVENTS_DEVMATCH),
NRF_RADIO_EVENT_DEVMISS = offsetof(NRF_RADIO_Type, EVENTS_DEVMISS),
NRF_RADIO_EVENT_RSSIEND = offsetof(NRF_RADIO_Type, EVENTS_RSSIEND),
NRF_RADIO_EVENT_BCMATCH = offsetof(NRF_RADIO_Type, EVENTS_BCMATCH),
NRF_RADIO_EVENT_CRCOK = offsetof(NRF_RADIO_Type, EVENTS_CRCOK),
NRF_RADIO_EVENT_CRCERROR = offsetof(NRF_RADIO_Type, EVENTS_CRCERROR),
NRF_RADIO_EVENT_FRAMESTART = offsetof(NRF_RADIO_Type, EVENTS_FRAMESTART),
NRF_RADIO_EVENT_EDEND = offsetof(NRF_RADIO_Type, EVENTS_EDEND),
NRF_RADIO_EVENT_EDSTOPPED = offsetof(NRF_RADIO_Type, EVENTS_EDSTOPPED),
NRF_RADIO_EVENT_CCAIDLE = offsetof(NRF_RADIO_Type, EVENTS_CCAIDLE),
NRF_RADIO_EVENT_CCABUSY = offsetof(NRF_RADIO_Type, EVENTS_CCABUSY),
NRF_RADIO_EVENT_CCASTOPPED = offsetof(NRF_RADIO_Type, EVENTS_CCASTOPPED),
NRF_RADIO_EVENT_RATEBOOST = offsetof(NRF_RADIO_Type, EVENTS_RATEBOOST),
NRF_RADIO_EVENT_TXREADY = offsetof(NRF_RADIO_Type, EVENTS_TXREADY),
NRF_RADIO_EVENT_RXREADY = offsetof(NRF_RADIO_Type, EVENTS_RXREADY),
NRF_RADIO_EVENT_MHRMATCH = offsetof(NRF_RADIO_Type, EVENTS_MHRMATCH),
NRF_RADIO_EVENT_PHYEND = offsetof(NRF_RADIO_Type, EVENTS_PHYEND)
}
RADIO events. More...
enum nrf_radio_int_mask_t {
NRF_RADIO_INT_READY_MASK = RADIO_INTENSET_READY_Msk,
NRF_RADIO_INT_ADDRESS_MASK = RADIO_INTENSET_ADDRESS_Msk,
NRF_RADIO_INT_PAYLOAD_MASK = RADIO_INTENSET_PAYLOAD_Msk,
NRF_RADIO_INT_END_MASK = RADIO_INTENSET_END_Msk,
NRF_RADIO_INT_DISABLED_MASK = RADIO_INTENSET_DISABLED_Msk,
NRF_RADIO_INT_DEVMATCH_MASK = RADIO_INTENSET_DEVMATCH_Msk,
NRF_RADIO_INT_DEVMISS_MASK = RADIO_INTENSET_DEVMISS_Msk,
NRF_RADIO_INT_RSSIEND_MASK = RADIO_INTENSET_RSSIEND_Msk,
NRF_RADIO_INT_BCMATCH_MASK = RADIO_INTENSET_BCMATCH_Msk,
NRF_RADIO_INT_CRCOK_MASK = RADIO_INTENSET_CRCOK_Msk,
NRF_RADIO_INT_CRCERROR_MASK = RADIO_INTENSET_CRCERROR_Msk,
NRF_RADIO_INT_FRAMESTART_MASK = RADIO_INTENSET_FRAMESTART_Msk,
NRF_RADIO_INT_EDEND_MASK = RADIO_INTENSET_EDEND_Msk,
NRF_RADIO_INT_EDSTOPPED_MASK = RADIO_INTENSET_EDSTOPPED_Msk,
NRF_RADIO_INT_CCAIDLE_MASK = RADIO_INTENSET_CCAIDLE_Msk,
NRF_RADIO_INT_CCABUSY_MASK = RADIO_INTENSET_CCABUSY_Msk,
NRF_RADIO_INT_CCASTOPPED_MASK = RADIO_INTENSET_CCASTOPPED_Msk,
NRF_RADIO_INT_RATEBOOST_MASK = RADIO_INTENSET_RATEBOOST_Msk,
NRF_RADIO_INT_TXREADY_MASK = RADIO_INTENSET_TXREADY_Msk,
NRF_RADIO_INT_RXREADY_MASK = RADIO_INTENSET_RXREADY_Msk,
NRF_RADIO_INT_MHRMATCH_MASK = RADIO_INTENSET_MHRMATCH_Msk,
NRF_RADIO_INT_PHYEND_MASK = RADIO_INTENSET_PHYEND_Msk
}
RADIO interrupts. More...
enum nrf_radio_short_mask_t {
NRF_RADIO_SHORT_READY_START_MASK = RADIO_SHORTS_READY_START_Msk,
NRF_RADIO_SHORT_END_DISABLE_MASK = RADIO_SHORTS_END_DISABLE_Msk,
NRF_RADIO_SHORT_DISABLED_TXEN_MASK = RADIO_SHORTS_DISABLED_TXEN_Msk,
NRF_RADIO_SHORT_DISABLED_RXEN_MASK = RADIO_SHORTS_DISABLED_RXEN_Msk,
NRF_RADIO_SHORT_ADDRESS_RSSISTART_MASK = RADIO_SHORTS_ADDRESS_RSSISTART_Msk,
NRF_RADIO_SHORT_END_START_MASK = RADIO_SHORTS_END_START_Msk,
NRF_RADIO_SHORT_ADDRESS_BCSTART_MASK = RADIO_SHORTS_ADDRESS_BCSTART_Msk,
NRF_RADIO_SHORT_DISABLED_RSSISTOP_MASK = RADIO_SHORTS_DISABLED_RSSISTOP_Msk,
NRF_RADIO_SHORT_RXREADY_CCASTART_MASK = RADIO_SHORTS_RXREADY_CCASTART_Msk,
NRF_RADIO_SHORT_CCAIDLE_TXEN_MASK = RADIO_SHORTS_CCAIDLE_TXEN_Msk,
NRF_RADIO_SHORT_CCABUSY_DISABLE_MASK = RADIO_SHORTS_CCABUSY_DISABLE_Msk,
NRF_RADIO_SHORT_FRAMESTART_BCSTART_MASK = RADIO_SHORTS_FRAMESTART_BCSTART_Msk,
NRF_RADIO_SHORT_READY_EDSTART_MASK = RADIO_SHORTS_READY_EDSTART_Msk,
NRF_RADIO_SHORT_EDEND_DISABLE_MASK = RADIO_SHORTS_EDEND_DISABLE_Msk,
NRF_RADIO_SHORT_CCAIDLE_STOP_MASK = RADIO_SHORTS_CCAIDLE_STOP_Msk,
NRF_RADIO_SHORT_TXREADY_START_MASK = RADIO_SHORTS_TXREADY_START_Msk,
NRF_RADIO_SHORT_RXREADY_START_MASK = RADIO_SHORTS_RXREADY_START_Msk,
NRF_RADIO_SHORT_PHYEND_DISABLE_MASK = RADIO_SHORTS_PHYEND_DISABLE_Msk,
NRF_RADIO_SHORT_PHYEND_START_MASK = RADIO_SHORTS_PHYEND_START_Msk
}
RADIO shortcuts. More...
enum nrf_radio_cca_mode_t {
NRF_RADIO_CCA_MODE_ED = RADIO_CCACTRL_CCAMODE_EdMode,
NRF_RADIO_CCA_MODE_CARRIER = RADIO_CCACTRL_CCAMODE_CarrierMode,
NRF_RADIO_CCA_MODE_CARRIER_AND_ED = RADIO_CCACTRL_CCAMODE_CarrierAndEdMode,
NRF_RADIO_CCA_MODE_CARRIER_OR_ED = RADIO_CCACTRL_CCAMODE_CarrierOrEdMode,
NRF_RADIO_CCA_MODE_ED_TEST1 = RADIO_CCACTRL_CCAMODE_EdModeTest1
}
RADIO Clear Channel Assessment modes. More...
enum nrf_radio_state_t {
NRF_RADIO_STATE_DISABLED = RADIO_STATE_STATE_Disabled,
NRF_RADIO_STATE_RXRU = RADIO_STATE_STATE_RxRu,
NRF_RADIO_STATE_RXIDLE = RADIO_STATE_STATE_RxIdle,
NRF_RADIO_STATE_RX = RADIO_STATE_STATE_Rx,
NRF_RADIO_STATE_RXDISABLE = RADIO_STATE_STATE_RxDisable,
NRF_RADIO_STATE_TXRU = RADIO_STATE_STATE_TxRu,
NRF_RADIO_STATE_TXIDLE = RADIO_STATE_STATE_TxIdle,
NRF_RADIO_STATE_TX = RADIO_STATE_STATE_Tx,
NRF_RADIO_STATE_TXDISABLE = RADIO_STATE_STATE_TxDisable
}
Types of RADIO states. More...
enum nrf_radio_txpower_t {
NRF_RADIO_TXPOWER_POS8DBM = RADIO_TXPOWER_TXPOWER_Pos8dBm,
NRF_RADIO_TXPOWER_POS7DBM = RADIO_TXPOWER_TXPOWER_Pos7dBm,
NRF_RADIO_TXPOWER_POS6DBM = RADIO_TXPOWER_TXPOWER_Pos6dBm,
NRF_RADIO_TXPOWER_POS5DBM = RADIO_TXPOWER_TXPOWER_Pos5dBm,
NRF_RADIO_TXPOWER_POS4DBM = RADIO_TXPOWER_TXPOWER_Pos4dBm,
NRF_RADIO_TXPOWER_POS3DBM = RADIO_TXPOWER_TXPOWER_Pos3dBm,
NRF_RADIO_TXPOWER_POS2DBM = RADIO_TXPOWER_TXPOWER_Pos2dBm,
NRF_RADIO_TXPOWER_0DBM = RADIO_TXPOWER_TXPOWER_0dBm,
NRF_RADIO_TXPOWER_NEG4DBM = RADIO_TXPOWER_TXPOWER_Neg4dBm,
NRF_RADIO_TXPOWER_NEG8DBM = RADIO_TXPOWER_TXPOWER_Neg8dBm,
NRF_RADIO_TXPOWER_NEG12DBM = RADIO_TXPOWER_TXPOWER_Neg12dBm,
NRF_RADIO_TXPOWER_NEG16DBM = RADIO_TXPOWER_TXPOWER_Neg16dBm,
NRF_RADIO_TXPOWER_NEG20DBM = RADIO_TXPOWER_TXPOWER_Neg20dBm,
NRF_RADIO_TXPOWER_NEG30DBM = RADIO_TXPOWER_TXPOWER_Neg30dBm,
NRF_RADIO_TXPOWER_NEG40DBM = RADIO_TXPOWER_TXPOWER_Neg40dBm
}
Types of RADIO TX power. More...
enum nrf_radio_mode_t {
NRF_RADIO_MODE_NRF_1MBIT = RADIO_MODE_MODE_Nrf_1Mbit,
NRF_RADIO_MODE_NRF_2MBIT = RADIO_MODE_MODE_Nrf_2Mbit,
NRF_RADIO_MODE_NRF_250KBIT = RADIO_MODE_MODE_Nrf_250Kbit,
NRF_RADIO_MODE_BLE_1MBIT = RADIO_MODE_MODE_Ble_1Mbit,
NRF_RADIO_MODE_BLE_2MBIT = RADIO_MODE_MODE_Ble_2Mbit,
NRF_RADIO_MODE_BLE_LR125KBIT = RADIO_MODE_MODE_Ble_LR125Kbit,
NRF_RADIO_MODE_BLE_LR500KBIT = RADIO_MODE_MODE_Ble_LR500Kbit,
NRF_RADIO_MODE_IEEE802154_250KBIT = RADIO_MODE_MODE_Ieee802154_250Kbit
}
Types of RADIO modes (data rate and modulation). More...
enum nrf_radio_preamble_length_t {
NRF_RADIO_PREAMBLE_LENGTH_8BIT = RADIO_PCNF0_PLEN_8bit,
NRF_RADIO_PREAMBLE_LENGTH_16BIT = RADIO_PCNF0_PLEN_16bit,
NRF_RADIO_PREAMBLE_LENGTH_32BIT_ZERO = RADIO_PCNF0_PLEN_32bitZero,
NRF_RADIO_PREAMBLE_LENGTH_LONG_RANGE = RADIO_PCNF0_PLEN_LongRange
}
Types of preamble length. More...
enum nrf_radio_crc_addr_t {
NRF_RADIO_CRC_ADDR_INCLUDE = RADIO_CRCCNF_SKIPADDR_Include,
NRF_RADIO_CRC_ADDR_SKIP = RADIO_CRCCNF_SKIPADDR_Skip,
NRF_RADIO_CRC_ADDR_IEEE802154 = RADIO_CRCCNF_SKIPADDR_Ieee802154
}
Types of CRC calculatons regarding address. More...

Functions

__STATIC_INLINE void nrf_radio_task_trigger ( nrf_radio_task_t task)
Function for activating a specific RADIO task. More...
__STATIC_INLINE uint32_t nrf_radio_task_address_get ( nrf_radio_task_t task)
Function for getting the address of a specific RADIO task register. More...
__STATIC_INLINE void nrf_radio_event_clear ( nrf_radio_event_t event)
Function for clearing a specific RADIO event. More...
__STATIC_INLINE bool nrf_radio_event_check ( nrf_radio_event_t event)
Function for retrieving the state of the RADIO event. More...
__STATIC_INLINE uint32_t nrf_radio_event_address_get ( nrf_radio_event_t event)
Function for getting the address of a specific RADIO event register. More...
__STATIC_INLINE void nrf_radio_shorts_enable (uint32_t shorts_mask)
Function for enabling specified RADIO shortcuts. More...
__STATIC_INLINE void nrf_radio_shorts_disable (uint32_t shorts_mask)
Function for disabling specified RADIO shortcuts. More...
__STATIC_INLINE void nrf_radio_shorts_set (uint32_t shorts_mask)
Function for setting the configuration of RADIO shortcuts. More...
__STATIC_INLINE uint32_t nrf_radio_shorts_get (void)
Function for getting the configuration of RADIO shortcuts. More...
__STATIC_INLINE void nrf_radio_int_enable (uint32_t int_mask)
Function for enabling specified RADIO interrupts. More...
__STATIC_INLINE void nrf_radio_int_disable (uint32_t int_mask)
Function for disabling specified RADIO interrupts. More...
__STATIC_INLINE bool nrf_radio_int_enable_check ( nrf_radio_int_mask_t int_mask)
Function for getting the state of a specific interrupt. More...
__STATIC_INLINE bool nrf_radio_crc_status_check (void)
Function for getting CRC status of last received packet. More...
__STATIC_INLINE uint8_t nrf_radio_rxmatch_get (void)
Function for getting the received address. More...
__STATIC_INLINE uint32_t nrf_radio_rxcrc_get (void)
Function for getting CRC field of the last received packet. More...
__STATIC_INLINE uint8_t nrf_radio_dai_get (void)
Function for getting the device address match index. More...
__STATIC_INLINE uint8_t nrf_radio_pdustat_get (void)
Function for getting status on payload length. More...
__STATIC_INLINE uint8_t nrf_radio_cistat_get (void)
Function for getting status on what rate packet is received with in Long Range. More...
__STATIC_INLINE void nrf_radio_packetptr_set (const void *p_packet)
Function for setting packet pointer to given location in memory. More...
__STATIC_INLINE void * nrf_radio_packetptr_get (void)
Function for getting packet pointer. More...
__STATIC_INLINE void nrf_radio_frequency_set (uint16_t radio_frequency)
Function for setting the radio frequency. More...
__STATIC_INLINE uint16_t nrf_radio_frequency_get (void)
Function for getting the radio frequency. More...
__STATIC_INLINE void nrf_radio_txpower_set ( nrf_radio_txpower_t tx_power)
Function for setting the radio transmit power. More...
__STATIC_INLINE nrf_radio_txpower_t nrf_radio_txpower_get (void)
Function for getting the radio transmit power. More...
__STATIC_INLINE void nrf_radio_mode_set ( nrf_radio_mode_t radio_mode)
Function for setting the radio data rate and modulation settings. More...
__STATIC_INLINE nrf_radio_mode_t nrf_radio_mode_get (void)
Function for getting Radio data rate and modulation settings. More...
__STATIC_INLINE void nrf_radio_packet_configure (const nrf_radio_packet_conf_t *p_config)
Function for setting the packet configuration. More...
__STATIC_INLINE void nrf_radio_base0_set (uint32_t address)
Function for setting the base address 0. More...
__STATIC_INLINE uint32_t nrf_radio_base0_get (void)
Function for getting the base address 0. More...
__STATIC_INLINE void nrf_radio_base1_set (uint32_t address)
Function for setting Base address 1. More...
__STATIC_INLINE uint32_t nrf_radio_base1_get (void)
Function for getting base address 1. More...
__STATIC_INLINE void nrf_radio_prefix0_set (uint32_t prefixes)
Function for setting prefixes bytes for logical addresses 0-3. More...
__STATIC_INLINE uint32_t nrf_radio_prefix0_get (void)
Function for getting prefixes bytes for logical addresses 0-3. More...
__STATIC_INLINE void nrf_radio_prefix1_set (uint32_t prefixes)
Function for setting prefixes bytes for logical addresses 4-7. More...
__STATIC_INLINE uint32_t nrf_radio_prefix1_get (void)
Function for getting prefixes bytes for logical addresses 4-7. More...
__STATIC_INLINE void nrf_radio_txaddress_set (uint8_t txaddress)
Function for setting the transmit address. More...
__STATIC_INLINE uint8_t nrf_radio_txaddress_get (void)
Function for getting the transmit address select. More...
__STATIC_INLINE void nrf_radio_rxaddresses_set (uint8_t rxaddresses)
Function for for selecting the receive addresses. More...
__STATIC_INLINE uint8_t nrf_radio_rxaddresses_get (void)
Function for getting receive address select. More...
__STATIC_INLINE void nrf_radio_crc_configure (uint8_t crc_length, nrf_radio_crc_addr_t crc_address, uint32_t crc_polynominal)
Function for configure CRC. More...
__STATIC_INLINE void nrf_radio_crcinit_set (uint32_t crc_init_value)
Function for setting CRC initial value. More...
__STATIC_INLINE uint32_t nrf_radio_crcinit_get (void)
Function for getting CRC initial value. More...
__STATIC_INLINE void nrf_radio_ifs_set (uint32_t radio_ifs)
Function for setting Inter Frame Spacing interval. More...
__STATIC_INLINE uint32_t nrf_radio_ifs_get (void)
Function for getting Inter Frame Spacing interval. More...
__STATIC_INLINE uint8_t nrf_radio_rssi_sample_get (void)
Function for getting RSSI sample result. More...
__STATIC_INLINE nrf_radio_state_t nrf_radio_state_get (void)
Function for getting the current state of the radio module. More...
__STATIC_INLINE void nrf_radio_datawhiteiv_set (uint8_t datawhiteiv)
Function for setting the data whitening initial value. More...
__STATIC_INLINE uint8_t nrf_radio_datawhiteiv_get (void)
Function for getting the data whitening initial value. More...
__STATIC_INLINE void nrf_radio_bcc_set (uint32_t radio_bcc)
Function for setting Bit counter compare. More...
__STATIC_INLINE uint32_t nrf_radio_bcc_get (void)
Function for getting Bit counter compare. More...
__STATIC_INLINE void nrf_radio_dab_set (uint32_t dab_value, uint8_t segment)
Function for setting Device address base segment. More...
__STATIC_INLINE uint32_t nrf_radio_dab_get (uint8_t segment)
Function for getting Device address base segment. More...
__STATIC_INLINE void nrf_radio_dap_set (uint16_t dap_value, uint8_t prefix_index)
Function for setting device address prefix. More...
__STATIC_INLINE uint32_t nrf_radio_dap_get (uint8_t prefix_index)
Function for getting Device address prefix. More...
__STATIC_INLINE void nrf_radio_dacnf_set (uint8_t ena, uint8_t txadd)
Function for setting device address match configuration. More...
__STATIC_INLINE uint8_t nrf_radio_dacnf_ena_get (void)
Function for getting ENA field of the Device address match configuration register. More...
__STATIC_INLINE uint8_t nrf_radio_dacnf_txadd_get (void)
Function for getting TXADD field of the Device address match configuration register. More...
__STATIC_INLINE void nrf_radio_mhmu_search_pattern_set (uint32_t radio_mhmu_search_pattern)
Function for setting MAC Header Match Unit search pattern configuration. More...
__STATIC_INLINE uint32_t nrf_radio_mhmu_search_pattern_get (void)
Function for getting MAC Header Match Unit search pattern configuration. More...
__STATIC_INLINE void nrf_radio_mhmu_pattern_mask_set (uint32_t radio_mhmu_pattern_mask)
Function for setting MAC Header Match Unit pattern mask configuration. More...
__STATIC_INLINE uint32_t nrf_radio_mhmu_pattern_mask_get (void)
Function for getting MAC Header Match Unit pattern mask configuration. More...
__STATIC_INLINE void nrf_radio_modecnf0_set (bool fast_ramp_up, uint8_t default_tx)
Function for setting Radio mode configuration register 0. More...
__STATIC_INLINE bool nrf_radio_modecnf0_ru_get (void)
Function for getting ramp-up time configuration of the Radio mode configuration register 0. More...
__STATIC_INLINE uint8_t nrf_radio_modecnf0_dtx_get (void)
Function for getting default TX value of the Radio mode configuration register 0. More...
__STATIC_INLINE void nrf_radio_sfd_set (uint8_t sfd)
Function for setting IEEE 802.15.4 start of frame delimiter. More...
__STATIC_INLINE uint8_t nrf_radio_sfd_get (void)
Function for getting IEEE 802.15.4 start of frame delimiter. More...
__STATIC_INLINE void nrf_radio_ed_loop_count_set (uint32_t ed_loop_count)
Function for setting number of iterations to perform ED scan. More...
__STATIC_INLINE uint8_t nrf_radio_ed_sample_get (void)
Function for getting Energy Detection level. More...
__STATIC_INLINE void nrf_radio_cca_configure ( nrf_radio_cca_mode_t cca_mode, uint8_t cca_ed_threshold, uint8_t cca_corr_threshold, uint8_t cca_corr_cnt)
Function for configuring the IEEE 802.15.4 clear channel assessment. More...
__STATIC_INLINE void nrf_radio_power_set (bool radio_power)
Function for setting power mode of the radio peripheral. More...

Detailed Description

Hardware access layer for managing the RADIO peripheral.

Enumeration Type Documentation

RADIO Clear Channel Assessment modes.

Enumerator
NRF_RADIO_CCA_MODE_ED

Energy Above Threshold. Will report busy whenever energy is detected above set threshold.

NRF_RADIO_CCA_MODE_CARRIER

Carrier Seen. Will report busy whenever compliant IEEE 802.15.4 signal is seen.

NRF_RADIO_CCA_MODE_CARRIER_AND_ED

Energy Above Threshold AND Carrier Seen.

NRF_RADIO_CCA_MODE_CARRIER_OR_ED

Energy Above Threshold OR Carrier Seen.

NRF_RADIO_CCA_MODE_ED_TEST1

Energy Above Threshold test mode that will abort when first ED measurement over threshold is seen. No averaging.

Types of CRC calculatons regarding address.

Enumerator
NRF_RADIO_CRC_ADDR_INCLUDE

CRC calculation includes address field.

NRF_RADIO_CRC_ADDR_SKIP

CRC calculation does not include address field.

NRF_RADIO_CRC_ADDR_IEEE802154

CRC calculation as per 802.15.4 standard.

RADIO events.

Enumerator
NRF_RADIO_EVENT_READY

Radio has ramped up and is ready to be started.

NRF_RADIO_EVENT_ADDRESS

Address sent or received.

NRF_RADIO_EVENT_PAYLOAD

Packet payload sent or received.

NRF_RADIO_EVENT_END

Packet transmitted or received.

NRF_RADIO_EVENT_DISABLED

RADIO has been disabled.

NRF_RADIO_EVENT_DEVMATCH

A device address match occurred on the last received packet.

NRF_RADIO_EVENT_DEVMISS

No device address match occurred on the last received packet.

NRF_RADIO_EVENT_RSSIEND

Sampling of receive signal strength complete.

NRF_RADIO_EVENT_BCMATCH

Bit counter reached bit count value.

NRF_RADIO_EVENT_CRCOK

Packet received with correct CRC.

NRF_RADIO_EVENT_CRCERROR

Packet received with incorrect CRC.

NRF_RADIO_EVENT_FRAMESTART

IEEE 802.15.4 length field received.

NRF_RADIO_EVENT_EDEND

Energy Detection procedure ended.

NRF_RADIO_EVENT_EDSTOPPED

The sampling of Energy Detection has stopped.

NRF_RADIO_EVENT_CCAIDLE

Wireless medium in idle - clear to send.

NRF_RADIO_EVENT_CCABUSY

Wireless medium busy - do not send.

NRF_RADIO_EVENT_CCASTOPPED

The CCA has stopped.

NRF_RADIO_EVENT_RATEBOOST

Ble_LR CI field received, receive mode is changed from Ble_LR125Kbit to Ble_LR500Kbit.

NRF_RADIO_EVENT_TXREADY

RADIO has ramped up and is ready to be started TX path.

NRF_RADIO_EVENT_RXREADY

RADIO has ramped up and is ready to be started RX path.

NRF_RADIO_EVENT_MHRMATCH

MAC Header match found.

NRF_RADIO_EVENT_PHYEND

Generated in Ble_LR125Kbit, Ble_LR500Kbit and BleIeee802154_250Kbit modes when last bit is sent on the air.

RADIO interrupts.

Enumerator
NRF_RADIO_INT_READY_MASK

Interrupt on READY event.

NRF_RADIO_INT_ADDRESS_MASK

Interrupt on ADDRESS event.

NRF_RADIO_INT_PAYLOAD_MASK

Interrupt on PAYLOAD event.

NRF_RADIO_INT_END_MASK

Interrupt on END event.

NRF_RADIO_INT_DISABLED_MASK

Interrupt on DISABLED event.

NRF_RADIO_INT_DEVMATCH_MASK

Interrupt on DEVMATCH event.

NRF_RADIO_INT_DEVMISS_MASK

Interrupt on DEVMISS event.

NRF_RADIO_INT_RSSIEND_MASK

Interrupt on RSSIEND event.

NRF_RADIO_INT_BCMATCH_MASK

Interrupt on BCMATCH event.

NRF_RADIO_INT_CRCOK_MASK

Interrupt on CRCOK event.

NRF_RADIO_INT_CRCERROR_MASK

Interrupt on CRCERROR event.

NRF_RADIO_INT_FRAMESTART_MASK

Interrupt on FRAMESTART event.

NRF_RADIO_INT_EDEND_MASK

Interrupt on EDEND event.

NRF_RADIO_INT_EDSTOPPED_MASK

Interrupt on EDSTOPPED event.

NRF_RADIO_INT_CCAIDLE_MASK

Interrupt on CCAIDLE event.

NRF_RADIO_INT_CCABUSY_MASK

Interrupt on CCABUSY event.

NRF_RADIO_INT_CCASTOPPED_MASK

Interrupt on CCASTOPPED event.

NRF_RADIO_INT_RATEBOOST_MASK

Interrupt on RATEBOOST event.

NRF_RADIO_INT_TXREADY_MASK

Interrupt on TXREADY event.

NRF_RADIO_INT_RXREADY_MASK

Interrupt on RXREADY event.

NRF_RADIO_INT_MHRMATCH_MASK

Interrupt on MHRMATCH event.

NRF_RADIO_INT_PHYEND_MASK

Interrupt on PHYEND event.

Types of RADIO modes (data rate and modulation).

Enumerator
NRF_RADIO_MODE_NRF_1MBIT

1Mbit/s Nordic proprietary radio mode.

NRF_RADIO_MODE_NRF_2MBIT

2Mbit/s Nordic proprietary radio mode.

NRF_RADIO_MODE_NRF_250KBIT

250Kbit/s Nordic proprietary radio mode.

NRF_RADIO_MODE_BLE_1MBIT

1 Mbit/s Bluetooth Low Energy.

NRF_RADIO_MODE_BLE_2MBIT

2 Mbit/s Bluetooth Low Energy.

NRF_RADIO_MODE_BLE_LR125KBIT

Bluetooth Low Energy Long range 125 kbit/s TX, 125 kbit/s and 500 kbit/s RX

NRF_RADIO_MODE_BLE_LR500KBIT

Bluetooth Low Energy Long range 500 kbit/s TX, 125 kbit/s and 500 kbit/s RX

NRF_RADIO_MODE_IEEE802154_250KBIT

IEEE 802.15.4-2006 250 kbit/s.

Types of preamble length.

Enumerator
NRF_RADIO_PREAMBLE_LENGTH_8BIT

8-bit preamble.

NRF_RADIO_PREAMBLE_LENGTH_16BIT

16-bit preamble.

NRF_RADIO_PREAMBLE_LENGTH_32BIT_ZERO

32-bit zero preamble used for IEEE 802.15.4.

NRF_RADIO_PREAMBLE_LENGTH_LONG_RANGE

Preamble - used for BTLE Long Range.

RADIO shortcuts.

Enumerator
NRF_RADIO_SHORT_READY_START_MASK

Shortcut between READY event and START task.

NRF_RADIO_SHORT_END_DISABLE_MASK

Shortcut between END event and DISABLE task.

NRF_RADIO_SHORT_DISABLED_TXEN_MASK

Shortcut between DISABLED event and TXEN task.

NRF_RADIO_SHORT_DISABLED_RXEN_MASK

Shortcut between DISABLED event and RXEN task.

NRF_RADIO_SHORT_ADDRESS_RSSISTART_MASK

Shortcut between ADDRESS event and RSSISTART task.

NRF_RADIO_SHORT_END_START_MASK

Shortcut between END event and START task.

NRF_RADIO_SHORT_ADDRESS_BCSTART_MASK

Shortcut between ADDRESS event and BCSTART task.

NRF_RADIO_SHORT_DISABLED_RSSISTOP_MASK

Shortcut between DISABLED event and RSSISTOP task.

NRF_RADIO_SHORT_RXREADY_CCASTART_MASK

Shortcut between RXREADY event and CCASTART task.

NRF_RADIO_SHORT_CCAIDLE_TXEN_MASK

Shortcut between CCAIDLE event and TXEN task.

NRF_RADIO_SHORT_CCABUSY_DISABLE_MASK

Shortcut between CCABUSY event and DISABLE task.

NRF_RADIO_SHORT_FRAMESTART_BCSTART_MASK

Shortcut between FRAMESTART event and BCSTART task.

NRF_RADIO_SHORT_READY_EDSTART_MASK

Shortcut between READY event and EDSTART task.

NRF_RADIO_SHORT_EDEND_DISABLE_MASK

Shortcut between EDEND event and DISABLE task.

NRF_RADIO_SHORT_CCAIDLE_STOP_MASK

Shortcut between CCAIDLE event and STOP task.

NRF_RADIO_SHORT_TXREADY_START_MASK

Shortcut between TXREADY event and START task.

NRF_RADIO_SHORT_RXREADY_START_MASK

Shortcut between RXREADY event and START task.

NRF_RADIO_SHORT_PHYEND_DISABLE_MASK

Shortcut between PHYEND event and DISABLE task.

NRF_RADIO_SHORT_PHYEND_START_MASK

Shortcut between PHYEND event and START task.

Types of RADIO states.

Enumerator
NRF_RADIO_STATE_DISABLED

No operations are going on inside the radio and the power consumption is at a minimum.

NRF_RADIO_STATE_RXRU

The radio is ramping up and preparing for reception.

NRF_RADIO_STATE_RXIDLE

The radio is ready for reception to start.

NRF_RADIO_STATE_RX

Reception has been started.

NRF_RADIO_STATE_RXDISABLE

The radio is disabling the receiver.

NRF_RADIO_STATE_TXRU

The radio is ramping up and preparing for transmission.

NRF_RADIO_STATE_TXIDLE

The radio is ready for transmission to start.

NRF_RADIO_STATE_TX

The radio is transmitting a packet.

NRF_RADIO_STATE_TXDISABLE

The radio is disabling the transmitter.

RADIO tasks.

Enumerator
NRF_RADIO_TASK_TXEN

Enable RADIO in TX mode.

NRF_RADIO_TASK_RXEN

Enable RADIO in RX mode.

NRF_RADIO_TASK_START

Start RADIO.

NRF_RADIO_TASK_STOP

Stop RADIO.

NRF_RADIO_TASK_DISABLE

Disable RADIO.

NRF_RADIO_TASK_RSSISTART

Start the RSSI and take one single sample of the receive signal strength.

NRF_RADIO_TASK_RSSISTOP

Stop the RSSI measurement.

NRF_RADIO_TASK_BCSTART

Start the bit counter.

NRF_RADIO_TASK_BCSTOP

Stop the bit counter.

NRF_RADIO_TASK_EDSTART

Start the Energy Detect measurement used in IEEE 802.15.4 mode.

NRF_RADIO_TASK_EDSTOP

Stop the Energy Detect measurement.

NRF_RADIO_TASK_CCASTART

Start the Clear Channel Assessment used in IEEE 802.15.4 mode.

NRF_RADIO_TASK_CCASTOP

Stop the Clear Channel Assessment.

Types of RADIO TX power.

Enumerator
NRF_RADIO_TXPOWER_POS8DBM

8 dBm.

NRF_RADIO_TXPOWER_POS7DBM

7 dBm.

NRF_RADIO_TXPOWER_POS6DBM

6 dBm.

NRF_RADIO_TXPOWER_POS5DBM

5 dBm.

NRF_RADIO_TXPOWER_POS4DBM

4 dBm.

NRF_RADIO_TXPOWER_POS3DBM

3 dBm.

NRF_RADIO_TXPOWER_POS2DBM

2 dBm.

NRF_RADIO_TXPOWER_0DBM

0 dBm.

NRF_RADIO_TXPOWER_NEG4DBM

-4 dBm.

NRF_RADIO_TXPOWER_NEG8DBM

-8 dBm.

NRF_RADIO_TXPOWER_NEG12DBM

-12 dBm.

NRF_RADIO_TXPOWER_NEG16DBM

-16 dBm.

NRF_RADIO_TXPOWER_NEG20DBM

-20 dBm.

NRF_RADIO_TXPOWER_NEG30DBM

-30 dBm.

NRF_RADIO_TXPOWER_NEG40DBM

-40 dBm.

Function Documentation

__STATIC_INLINE uint32_t nrf_radio_base0_get ( void )

Function for getting the base address 0.

Returns
Base address 0.
__STATIC_INLINE void nrf_radio_base0_set ( uint32_t address )

Function for setting the base address 0.

Parameters
address Base address 0 value.
__STATIC_INLINE uint32_t nrf_radio_base1_get ( void )

Function for getting base address 1.

Returns
Base address 1.
__STATIC_INLINE void nrf_radio_base1_set ( uint32_t address )

Function for setting Base address 1.

Parameters
address Base address 1 value.
__STATIC_INLINE uint32_t nrf_radio_bcc_get ( void )

Function for getting Bit counter compare.

Returns
Bit counter compare.
__STATIC_INLINE void nrf_radio_bcc_set ( uint32_t radio_bcc )

Function for setting Bit counter compare.

Parameters
[in] radio_bcc Bit counter compare [bits].
__STATIC_INLINE void nrf_radio_cca_configure ( nrf_radio_cca_mode_t cca_mode ,
uint8_t cca_ed_threshold ,
uint8_t cca_corr_threshold ,
uint8_t cca_corr_cnt
)

Function for configuring the IEEE 802.15.4 clear channel assessment.

Parameters
cca_mode Mode of CCA.
cca_ed_threshold Energy Detection threshold value.
cca_corr_threshold Correlator Busy Threshold.
cca_corr_cnt Limit of occurances above Correlator Threshold. When not equal to zero the correlator based signal detect is enabled.
__STATIC_INLINE uint8_t nrf_radio_cistat_get ( void )

Function for getting status on what rate packet is received with in Long Range.

Return values
0 The frame is received at 125kbps.
1 The frame is received at 500kbps.
__STATIC_INLINE void nrf_radio_crc_configure ( uint8_t crc_length ,
nrf_radio_crc_addr_t crc_address ,
uint32_t crc_polynominal
)

Function for configure CRC.

Parameters
[in] crc_length CRC length in number of bytes [0-3].
[in] crc_address Include or exclude packet address field out of CRC.
[in] crc_polynominal CRC polynominal to set.
__STATIC_INLINE bool nrf_radio_crc_status_check ( void )

Function for getting CRC status of last received packet.

Return values
true The packet was received without CRC error.
false The packet was received with CRC error.
__STATIC_INLINE uint32_t nrf_radio_crcinit_get ( void )

Function for getting CRC initial value.

Returns
CRC initial value.
__STATIC_INLINE void nrf_radio_crcinit_set ( uint32_t crc_init_value )

Function for setting CRC initial value.

Parameters
crc_init_value CRC initial value
__STATIC_INLINE uint32_t nrf_radio_dab_get ( uint8_t segment )

Function for getting Device address base segment.

Parameters
segment Number of the Device address base segment.
Returns
Particular segment of the Device address base.
__STATIC_INLINE void nrf_radio_dab_set ( uint32_t dab_value ,
uint8_t segment
)

Function for setting Device address base segment.

Parameters
dab_value Particular base segment value.
segment Index of the particular Device address base segment register.
__STATIC_INLINE uint8_t nrf_radio_dacnf_ena_get ( void )

Function for getting ENA field of the Device address match configuration register.

Returns
ENA field of the Device address match configuration register.
__STATIC_INLINE void nrf_radio_dacnf_set ( uint8_t ena ,
uint8_t txadd
)

Function for setting device address match configuration.

Note
Read more about configuring device address match in the Product Specification.
Parameters
ena Device address matching bitmask.
txadd TxAdd bitmask.
__STATIC_INLINE uint8_t nrf_radio_dacnf_txadd_get ( void )

Function for getting TXADD field of the Device address match configuration register.

Returns
TXADD field of the Device address match configuration register.
__STATIC_INLINE uint8_t nrf_radio_dai_get ( void )

Function for getting the device address match index.

Returns
Device adress match index.
__STATIC_INLINE uint32_t nrf_radio_dap_get ( uint8_t prefix_index )

Function for getting Device address prefix.

Parameters
prefix_index Number of the Device address prefix segment.
Returns
Particular segment of the Device address prefix.
__STATIC_INLINE void nrf_radio_dap_set ( uint16_t dap_value ,
uint8_t prefix_index
)

Function for setting device address prefix.

Parameters
dap_value Particular device address prefix value.
prefix_index Index of the particular device address prefix register.
__STATIC_INLINE uint8_t nrf_radio_datawhiteiv_get ( void )

Function for getting the data whitening initial value.

Returns
Data whitening initial value.
__STATIC_INLINE void nrf_radio_datawhiteiv_set ( uint8_t datawhiteiv )

Function for setting the data whitening initial value.

Parameters
datawhiteiv Data whitening initial value.
__STATIC_INLINE void nrf_radio_ed_loop_count_set ( uint32_t ed_loop_count )

Function for setting number of iterations to perform ED scan.

Parameters
[in] ed_loop_count Number of iterations during ED procedure.
__STATIC_INLINE uint8_t nrf_radio_ed_sample_get ( void )

Function for getting Energy Detection level.

Returns
IEEE 802.15.4 energy detect level.
__STATIC_INLINE uint32_t nrf_radio_event_address_get ( nrf_radio_event_t event )

Function for getting the address of a specific RADIO event register.

This function can be used by the PPI module.

Parameters
[in] event Requested Event.
Returns
Address of the specified event register.
__STATIC_INLINE bool nrf_radio_event_check ( nrf_radio_event_t event )

Function for retrieving the state of the RADIO event.

Parameters
[in] event Event to be checked.
Return values
true The event has been generated.
false The event has not been generated.
__STATIC_INLINE void nrf_radio_event_clear ( nrf_radio_event_t event )

Function for clearing a specific RADIO event.

Parameters
[in] event Event to clean.
__STATIC_INLINE uint16_t nrf_radio_frequency_get ( void )

Function for getting the radio frequency.

Returns
Frequency in MHz.
__STATIC_INLINE void nrf_radio_frequency_set ( uint16_t radio_frequency )

Function for setting the radio frequency.

Parameters
[in] radio_frequency Frequency in MHz.
__STATIC_INLINE uint32_t nrf_radio_ifs_get ( void )

Function for getting Inter Frame Spacing interval.

Returns
Inter frame spacing interval [us].
__STATIC_INLINE void nrf_radio_ifs_set ( uint32_t radio_ifs )

Function for setting Inter Frame Spacing interval.

Parameters
[in] radio_ifs Inter frame spacing interval [us].
__STATIC_INLINE void nrf_radio_int_disable ( uint32_t int_mask )

Function for disabling specified RADIO interrupts.

Parameters
[in] int_mask Mask of interrupts.
__STATIC_INLINE void nrf_radio_int_enable ( uint32_t int_mask )

Function for enabling specified RADIO interrupts.

Parameters
[in] int_mask Mask of interrupts.
__STATIC_INLINE bool nrf_radio_int_enable_check ( nrf_radio_int_mask_t int_mask )

Function for getting the state of a specific interrupt.

Parameters
[in] int_mask Interrupt to be checked.
Return values
true The interrupt is enabled.
false The interrupt is not enabled.
__STATIC_INLINE uint32_t nrf_radio_mhmu_pattern_mask_get ( void )

Function for getting MAC Header Match Unit pattern mask configuration.

Returns
Pattern mask.
__STATIC_INLINE void nrf_radio_mhmu_pattern_mask_set ( uint32_t radio_mhmu_pattern_mask )

Function for setting MAC Header Match Unit pattern mask configuration.

Parameters
[in] radio_mhmu_pattern_mask Pattern mask.
__STATIC_INLINE uint32_t nrf_radio_mhmu_search_pattern_get ( void )

Function for getting MAC Header Match Unit search pattern configuration.

Returns
Search Pattern Configuration.
__STATIC_INLINE void nrf_radio_mhmu_search_pattern_set ( uint32_t radio_mhmu_search_pattern )

Function for setting MAC Header Match Unit search pattern configuration.

Parameters
[in] radio_mhmu_search_pattern Search Pattern Configuration.
__STATIC_INLINE nrf_radio_mode_t nrf_radio_mode_get ( void )

Function for getting Radio data rate and modulation settings.

Returns
Radio data rate and modulation.
__STATIC_INLINE void nrf_radio_mode_set ( nrf_radio_mode_t radio_mode )

Function for setting the radio data rate and modulation settings.

Parameters
[in] radio_mode Radio data rate and modulation.
__STATIC_INLINE uint8_t nrf_radio_modecnf0_dtx_get ( void )

Function for getting default TX value of the Radio mode configuration register 0.

Returns
Default TX value.
__STATIC_INLINE bool nrf_radio_modecnf0_ru_get ( void )

Function for getting ramp-up time configuration of the Radio mode configuration register 0.

Return values
true If the ramp-up time is set to fast.
false If the ramp-up time is set to default.
__STATIC_INLINE void nrf_radio_modecnf0_set ( bool fast_ramp_up ,
uint8_t default_tx
)

Function for setting Radio mode configuration register 0.

Parameters
fast_ramp_up Use fast radio ramp-up time
default_tx Default TX value during inactivity.
__STATIC_INLINE void nrf_radio_packet_configure ( const nrf_radio_packet_conf_t * p_config )

Function for setting the packet configuration.

Parameters
[in] p_config Pointer to the structure with packet configuration.
__STATIC_INLINE void* nrf_radio_packetptr_get ( void )

Function for getting packet pointer.

Returns
Pointer to tx or rx packet buffer.
__STATIC_INLINE void nrf_radio_packetptr_set ( const void * p_packet )

Function for setting packet pointer to given location in memory.

Parameters
[in] p_packet Packet pointer.
__STATIC_INLINE uint8_t nrf_radio_pdustat_get ( void )

Function for getting status on payload length.

Return values
0 The payload is lesser than PCNF1.MAXLEN.
1 The payload is greater than PCNF1.MAXLEN.
__STATIC_INLINE void nrf_radio_power_set ( bool radio_power )

Function for setting power mode of the radio peripheral.

Parameters
[in] radio_power If radio should be powered on.
__STATIC_INLINE uint32_t nrf_radio_prefix0_get ( void )

Function for getting prefixes bytes for logical addresses 0-3.

Returns
Prefixes bytes for logical addresses 0-3
__STATIC_INLINE void nrf_radio_prefix0_set ( uint32_t prefixes )

Function for setting prefixes bytes for logical addresses 0-3.

Parameters
prefixes Prefixes bytes for logical addresses 0-3.
__STATIC_INLINE uint32_t nrf_radio_prefix1_get ( void )

Function for getting prefixes bytes for logical addresses 4-7.

Returns
Prefixes bytes for logical addresses 4-7
__STATIC_INLINE void nrf_radio_prefix1_set ( uint32_t prefixes )

Function for setting prefixes bytes for logical addresses 4-7.

Parameters
prefixes Prefixes bytes for logical addresses 4-7.
__STATIC_INLINE uint8_t nrf_radio_rssi_sample_get ( void )

Function for getting RSSI sample result.

Note
The read value is a positive value while the actual received signal is a negative value. Actual received signal strength is therefore as follows: received signal strength = - read_value dBm .
Returns
RSSI sample result.
__STATIC_INLINE uint8_t nrf_radio_rxaddresses_get ( void )

Function for getting receive address select.

Returns
Receive address select.
__STATIC_INLINE void nrf_radio_rxaddresses_set ( uint8_t rxaddresses )

Function for for selecting the receive addresses.

Parameters
rxaddresses Enable or disable reception on logical address i. Read more in the Product Specification.
__STATIC_INLINE uint32_t nrf_radio_rxcrc_get ( void )

Function for getting CRC field of the last received packet.

Returns
CRC field of previously received packet.
__STATIC_INLINE uint8_t nrf_radio_rxmatch_get ( void )

Function for getting the received address.

Returns
Received address.
__STATIC_INLINE uint8_t nrf_radio_sfd_get ( void )

Function for getting IEEE 802.15.4 start of frame delimiter.

Returns
IEEE 802.15.4 start of frame delimiter.
__STATIC_INLINE void nrf_radio_sfd_set ( uint8_t sfd )

Function for setting IEEE 802.15.4 start of frame delimiter.

Parameters
sfd IEEE 802.15.4 start of frame delimiter.
__STATIC_INLINE void nrf_radio_shorts_disable ( uint32_t shorts_mask )

Function for disabling specified RADIO shortcuts.

Parameters
[in] shorts_mask Mask of shortcuts.
__STATIC_INLINE void nrf_radio_shorts_enable ( uint32_t shorts_mask )

Function for enabling specified RADIO shortcuts.

Parameters
[in] shorts_mask Mask of shortcuts.
__STATIC_INLINE uint32_t nrf_radio_shorts_get ( void )

Function for getting the configuration of RADIO shortcuts.

Returns
Mask of currently enabled shortcuts.
__STATIC_INLINE void nrf_radio_shorts_set ( uint32_t shorts_mask )

Function for setting the configuration of RADIO shortcuts.

Parameters
[in] shorts_mask Shortcuts configuration to set.
__STATIC_INLINE nrf_radio_state_t nrf_radio_state_get ( void )

Function for getting the current state of the radio module.

Returns
Current radio state.
__STATIC_INLINE uint32_t nrf_radio_task_address_get ( nrf_radio_task_t task )

Function for getting the address of a specific RADIO task register.

This function can be used by the PPI module.

Parameters
[in] task Requested task.
Returns
Address of the specified task register.
__STATIC_INLINE void nrf_radio_task_trigger ( nrf_radio_task_t task )

Function for activating a specific RADIO task.

Parameters
[in] task Task to be activated.
__STATIC_INLINE uint8_t nrf_radio_txaddress_get ( void )

Function for getting the transmit address select.

Returns
Logical address to be used when transmitting a packet.
__STATIC_INLINE void nrf_radio_txaddress_set ( uint8_t txaddress )

Function for setting the transmit address.

Parameters
txaddress Logical address to be used when transmitting a packet.
__STATIC_INLINE nrf_radio_txpower_t nrf_radio_txpower_get ( void )

Function for getting the radio transmit power.

Returns
Transmit power of the radio.
__STATIC_INLINE void nrf_radio_txpower_set ( nrf_radio_txpower_t tx_power )

Function for setting the radio transmit power.

Parameters
[in] tx_power Transmit power of the radio [dBm].