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 radio_task) |
|
Function for activating a specific RADIO task.
More...
|
|
| __STATIC_INLINE uint32_t | nrf_radio_task_address_get ( nrf_radio_task_t radio_task) |
|
Function for getting the address of a specific RADIO task register.
More...
|
|
| __STATIC_INLINE void | nrf_radio_event_clear ( nrf_radio_event_t radio_event) |
|
Function for clearing a specific RADIO event.
More...
|
|
| __STATIC_INLINE bool | nrf_radio_event_check ( nrf_radio_event_t radio_event) |
|
Function for checking the state of a specific RADIO event.
More...
|
|
| __STATIC_INLINE uint32_t | nrf_radio_event_address_get ( nrf_radio_event_t radio_event) |
|
Function for getting the address of a specific RADIO event register.
More...
|
|
| __STATIC_INLINE void | nrf_radio_shorts_enable (uint32_t radio_shorts_mask) |
|
Function for enabling specified RADIO shortcuts.
More...
|
|
| __STATIC_INLINE void | nrf_radio_shorts_disable (uint32_t radio_shorts_mask) |
|
Function for disabling specified RADIO shortcuts.
More...
|
|
| __STATIC_INLINE void | nrf_radio_shorts_set (uint32_t radio_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 radio_int_mask) |
|
Function for enabling specified RADIO interrupts.
More...
|
|
| __STATIC_INLINE void | nrf_radio_int_disable (uint32_t radio_int_mask) |
|
Function for disabling specified RADIO interrupts.
More...
|
|
| __STATIC_INLINE bool | nrf_radio_int_enable_check ( nrf_radio_int_mask_t radio_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
| enum nrf_radio_cca_mode_t |
RADIO Clear Channel Assessment modes.
| enum nrf_radio_crc_addr_t |
| enum nrf_radio_event_t |
RADIO events.
| enum nrf_radio_int_mask_t |
RADIO interrupts.
| enum nrf_radio_mode_t |
Types of RADIO modes (data rate and modulation).
RADIO shortcuts.
| enum nrf_radio_state_t |
Types of RADIO States.
| enum nrf_radio_task_t |
RADIO tasks.
| enum nrf_radio_txpower_t |
Types of RADIO TX power.
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 If the frame is received at 125kbps. 1 If 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 If the packet was received without CRC error . false If 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 | radio_event | ) |
Function for getting the address of a specific RADIO event register.
This function can be used by the PPI module.
- Parameters
-
[in] radio_event Requested Event.
- Returns
- Address of the specified event register.
| __STATIC_INLINE bool nrf_radio_event_check | ( | nrf_radio_event_t | radio_event | ) |
Function for checking the state of a specific RADIO event.
- Parameters
-
[in] radio_event Event to check.
- Return values
-
true If the event is set. false If the event is not set.
| __STATIC_INLINE void nrf_radio_event_clear | ( | nrf_radio_event_t | radio_event | ) |
Function for clearing a specific RADIO event.
- Parameters
-
[in] radio_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 | radio_int_mask | ) |
Function for disabling specified RADIO interrupts.
- Parameters
-
[in] radio_int_mask Mask of interrupts.
| __STATIC_INLINE void nrf_radio_int_enable | ( | uint32_t | radio_int_mask | ) |
Function for enabling specified RADIO interrupts.
- Parameters
-
[in] radio_int_mask Mask of interrupts.
| __STATIC_INLINE bool nrf_radio_int_enable_check | ( | nrf_radio_int_mask_t | radio_int_mask | ) |
Function for getting the state of a specific interrupt.
- Parameters
-
[in] radio_int_mask Interrupt to check.
- Return values
-
true If the interrupt is enabled. false If 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 If the payload is lesser than PCNF1.MAXLEN. 1 If 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 | radio_shorts_mask | ) |
Function for disabling specified RADIO shortcuts.
- Parameters
-
[in] radio_shorts_mask Mask of shortcuts.
| __STATIC_INLINE void nrf_radio_shorts_enable | ( | uint32_t | radio_shorts_mask | ) |
Function for enabling specified RADIO shortcuts.
- Parameters
-
[in] radio_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 | radio_shorts_mask | ) |
Function for setting the configuration of RADIO shortcuts.
- Parameters
-
[in] radio_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 | radio_task | ) |
Function for getting the address of a specific RADIO task register.
This function can be used by the PPI module.
- Parameters
-
[in] radio_task Requested task.
- Returns
- Address of the specified task register.
| __STATIC_INLINE void nrf_radio_task_trigger | ( | nrf_radio_task_t | radio_task | ) |
Function for activating a specific RADIO task.
- Parameters
-
[in] radio_task Task to activate.
| __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].