nrfxlib API 0.1.0
Loading...
Searching...
No Matches
nrf_802154_trx.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include "nrf_802154_config.h"
#include "nrf_802154_sl_types.h"
#include "nrf_802154_types_internal.h"

Go to the source code of this file.

Enumerations

enum  trx_state_t {
  TRX_STATE_DISABLED = 0 , TRX_STATE_IDLE , TRX_STATE_GOING_IDLE , TRX_STATE_RXFRAME ,
  TRX_STATE_RXFRAME_FINISHED , TRX_STATE_RXACK , TRX_STATE_TXFRAME , TRX_STATE_TXACK ,
  TRX_STATE_STANDALONE_CCA , TRX_STATE_CONTINUOUS_CARRIER , TRX_STATE_MODULATED_CARRIER , TRX_STATE_ENERGY_DETECTION ,
  TRX_STATE_FINISHED
}
 Module that contains radio hardware-related functions of the nRF IEEE 802.15.4 radio driver. More...
 
enum  nrf_802154_trx_ramp_up_trigger_mode_t { TRX_RAMP_UP_SW_TRIGGER , TRX_RAMP_UP_HW_TRIGGER }
 Radio ramp up procedure triggering modes. More...
 
enum  nrf_802154_trx_receive_notifications_t { TRX_RECEIVE_NOTIFICATION_NONE = 0U , TRX_RECEIVE_NOTIFICATION_PRESTARTED = (1U << 0) , TRX_RECEIVE_NOTIFICATION_STARTED = (1U << 1) }
 Notifications that can be enabled for nrf_802154_trx_receive_frame operation. More...
 
enum  nrf_802154_trx_transmit_notifications_t { TRX_TRANSMIT_NOTIFICATION_NONE = 0U , TRX_TRANSMIT_NOTIFICATION_CCAIDLE = (1U << 1) , TRX_TRANSMIT_NOTIFICATION_CCASTARTED = (1U << 2) }
 Notifications that can be enabled for nrf_802154_trx_transmit_frame operation. More...
 

Functions

void nrf_802154_trx_init (void)
 Initializes trx module.
 
void nrf_802154_trx_enable (void)
 Enables trx module.
 
void nrf_802154_trx_disable (void)
 Disables trx module.
 
void nrf_802154_trx_antenna_update (void)
 Updates currently used antenna.
 
void nrf_802154_trx_channel_set (uint8_t channel)
 Sets radio channel to use.
 
void nrf_802154_trx_cca_configuration_update (void)
 Updates CCA configuration in the RADIO peripheral according to PIB.
 
void nrf_802154_trx_receive_frame (uint8_t bcc, nrf_802154_trx_ramp_up_trigger_mode_t rampup_trigg_mode, nrf_802154_trx_receive_notifications_t notifications_mask, const nrf_802154_fal_tx_power_split_t *p_ack_tx_power)
 Puts the trx module into receive frame mode.
 
void nrf_802154_trx_receive_ack (void)
 Puts the trx module into receive ACK mode.
 
bool nrf_802154_trx_rssi_measure (void)
 Starts RSSI measurement.
 
bool nrf_802154_trx_rssi_measure_is_started (void)
 Checks if RSSI measurement is currently started.
 
bool nrf_802154_trx_rssi_sample_is_available (void)
 Checks if RSSI sample is available.
 
uint8_t nrf_802154_trx_rssi_last_sample_get (void)
 Returns last measured RSSI sample.
 
bool nrf_802154_trx_psdu_is_being_received (void)
 Check if PSDU is currently being received.
 
bool nrf_802154_trx_receive_is_buffer_missing (void)
 Checks if current receive operation was started without providing receive buffer.
 
bool nrf_802154_trx_receive_buffer_set (void *p_receive_buffer)
 Sets pointer to a receive buffer.
 
void nrf_802154_trx_transmit_frame (const void *p_transmit_buffer, nrf_802154_trx_ramp_up_trigger_mode_t rampup_trigg_mode, uint8_t cca_attempts, const nrf_802154_fal_tx_power_split_t *p_tx_power, nrf_802154_trx_transmit_notifications_t notifications_mask)
 Begins frame transmit operation.
 
bool nrf_802154_trx_transmit_ack (const void *p_transmit_buffer, uint32_t delay_us)
 Puts the trx module into transmit ACK mode.
 
bool nrf_802154_trx_go_idle (void)
 Puts trx module into IDLE mode.
 
void nrf_802154_trx_standalone_cca (void)
 Starts standalone cca operation.
 
void nrf_802154_trx_energy_detection (uint32_t ed_count)
 Puts trx module into energy detection mode.
 
void nrf_802154_trx_abort (void)
 Aborts currently performed operation.
 
trx_state_t nrf_802154_trx_state_get (void)
 Gets current state of the TRX module.
 
uint32_t nrf_802154_trx_ramp_up_ppi_channel_get (void)
 Gets (D)PPI channel used to trigger ramp up procedure start.
 
void nrf_802154_trx_receive_ack_started (void)
 Handler called at the beginning of a ACK reception.
 
void nrf_802154_trx_receive_frame_prestarted (void)
 Handler called at the beginning of frame reception (earliest possible moment).
 
void nrf_802154_trx_receive_frame_started (void)
 Handler called at the beginning of frame reception.
 
uint8_t nrf_802154_trx_receive_frame_bcmatched (uint8_t bcc)
 Handler called during reception of a frame, when given number of bytes is received.
 
void nrf_802154_trx_receive_frame_received (void)
 Handler called when a frame is received with correct crc.
 
void nrf_802154_trx_receive_frame_crcerror (void)
 Handler called when a frame is received with incorrect crc.
 
void nrf_802154_trx_receive_ack_received (void)
 Handler called when an ack is received with correct crc.
 
void nrf_802154_trx_receive_ack_crcerror (void)
 Handler called when an ack is received with incorrect crc.
 
void nrf_802154_trx_transmit_frame_ccastarted (void)
 Handler called when a cca operation during transmit attempt started.
 
void nrf_802154_trx_transmit_frame_ccaidle (void)
 Handler called when a cca operation during transmit attempt was successful.
 
void nrf_802154_trx_transmit_frame_ccabusy (void)
 Handler called when a cca operation during transmit attempt failed.
 
void nrf_802154_trx_transmit_frame_started (void)
 Handler called when frame transmission has just started.
 
void nrf_802154_trx_transmit_frame_transmitted (void)
 Handler called when frame transmission has just been finished.
 
void nrf_802154_trx_transmit_ack_started (void)
 Handler called when ack transmission has just been started.
 
void nrf_802154_trx_transmit_ack_transmitted (void)
 Handler called when ack transmission has just been finished.
 
void nrf_802154_trx_go_idle_finished (void)
 Handler called when trx module reached IDLE state.
 
void nrf_802154_trx_standalone_cca_finished (bool channel_was_idle)
 Handler called when standalone cca operaion has been just finished.
 
void nrf_802154_trx_energy_detection_finished (uint8_t ed_sample)
 Handler called when energy detection operation has been just finished.
 
const nrf_802154_sl_event_handle_t * nrf_802154_trx_radio_end_event_handle_get (void)
 Returns RADIO->EVENTS_END handle that hardware can subscribe to.
 
const nrf_802154_sl_event_handle_t * nrf_802154_trx_radio_ready_event_handle_get (void)
 Returns RADIO->EVENTS_READY handle that hardware can subscribe to.
 
const nrf_802154_sl_event_handle_t * nrf_802154_trx_radio_crcok_event_handle_get (void)
 Returns RADIO->EVENTS_CRCOK handle that hardware can subscribe to.
 
const nrf_802154_sl_event_handle_t * nrf_802154_trx_radio_phyend_event_handle_get (void)
 Returns RADIO->EVENTS_PHYEND handle that hardware can subscribe to.