nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_802154_notification_queue_flush()

void nrf_802154_notification_queue_flush ( void )

#include <nrf_802154/driver/src/nrf_802154_notification.h>

Flushes the notification queue.

The function drains the queue without calling nrf_802154_co_* functions. For NTF_TYPE_RECEIVED, it frees the RX frame buffer via nrf_802154_buffer_free_raw. For NTF_TYPE_TRANSMITTED, it frees the ACK buffer when one is present, also through nrf_802154_buffer_free_raw. Other notification types are discarded from the notification queue. Call this function after nrf_802154_notification_block_all_notifications to avoid enqueuing new notifications in parallel with the flush.

Note
The function should be called when the driver is being reinitialized or deinitialized. Typically after sleep succeeds, before nrf_802154_rx_buffer_init.