nrfxlib API 3.3.99
Loading...
Searching...
No Matches
nrf_802154_core.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include "nrf_802154_config.h"
#include "nrf_802154_notification.h"
#include "nrf_802154_rx_buffer.h"
#include "nrf_802154_types_internal.h"

Go to the source code of this file.

Enumerations

enum  radio_state_t {
  RADIO_STATE_SLEEP , RADIO_STATE_FALLING_ASLEEP , RADIO_STATE_RX , RADIO_STATE_TX_ACK ,
  RADIO_STATE_CCA_TX , RADIO_STATE_TX , RADIO_STATE_RX_ACK , RADIO_STATE_ED ,
  RADIO_STATE_CCA , RADIO_STATE_CONTINUOUS_CARRIER , RADIO_STATE_MODULATED_CARRIER
}
 Module that contains core of the nRF IEEE 802.15.4 radio driver. More...
 

Functions

void nrf_802154_core_init (void)
 Initialize the 802.15.4 driver core.
 
void nrf_802154_core_deinit (void)
 Deinitialize the 802.15.4 driver core.
 
radio_state_t nrf_802154_core_state_get (void)
 Get the current state of the nRF 802.15.4 driver.
 
bool nrf_802154_core_sleep (nrf_802154_term_t term_lvl)
 Request the transition to the RADIO_STATE_SLEEP state.
 
bool nrf_802154_core_sleep_with_cancel_csma_ca (nrf_802154_term_t term_lvl)
 Request the transition to the RADIO_STATE_SLEEP state with the CSMA-CA procedure cancelled.
 
bool nrf_802154_core_receive (nrf_802154_term_t term_lvl, req_originator_t req_orig, nrf_802154_notification_func_t notify_function, bool notify_abort, uint32_t id)
 Request the transition to the RADIO_STATE_RX state.
 
nrf_802154_tx_error_t nrf_802154_core_transmit (nrf_802154_term_t term_lvl, req_originator_t req_orig, nrf_802154_transmit_params_t *p_params)
 Request the transition to the RADIO_STATE_TX state.
 
bool nrf_802154_core_ack_timeout_handle (const nrf_802154_ack_timeout_handle_params_t *p_param)
 Request end of waiting for an ACK by the core.
 
bool nrf_802154_core_energy_detection (nrf_802154_term_t term_lvl, uint32_t time_us)
 Request the transition to the RADIO_STATE_ED state.
 
bool nrf_802154_core_cca (nrf_802154_term_t term_lvl)
 Request the transition to the RADIO_STATE_CCA state.
 
bool nrf_802154_core_continuous_carrier (nrf_802154_term_t term_lvl)
 Request the transition to the RADIO_STATE_CONTINUOUS_CARRIER state.
 
bool nrf_802154_core_modulated_carrier (nrf_802154_term_t term_lvl, const uint8_t *p_data)
 Request the transition to the RADIO_STATE_MODULATED_CARRIER state.
 
bool nrf_802154_core_notify_buffer_free (uint8_t *p_data)
 Notify the core module that a higher layer freed a frame buffer.
 
bool nrf_802154_core_channel_update (req_originator_t req_orig)
 Notify the core module that the next higher layer requested the change of the channel.
 
bool nrf_802154_core_cca_cfg_update (void)
 Notify the core module that the next higher layer requested the change of the CCA configuration.
 
bool nrf_802154_core_rssi_measure (void)
 Notify the core module that the next higher layer requested the RSSI measurement.
 
bool nrf_802154_core_last_rssi_measurement_get (int8_t *p_rssi)
 Get the last RSSI measurement.
 
int8_t nrf_802154_core_last_frame_rssi_get (void)
 Get RSSI of the last received non-ACK frame.
 
uint8_t nrf_802154_core_last_frame_lqi_get (void)
 Get LQI of the last received non-ACK frame.
 
bool nrf_802154_core_antenna_update (void)
 Notify the core module that the next higher layer requested the change of the antenna.
 
void nrf_802154_core_irq_handler (void)
 Notify the core module that there is a pending IRQ to be handled.