nRF5 SDK for Thread and Zigbee v4.0.0
Functions
Driver memory management

Functions

void nrf_802154_buffer_free (uint8_t *p_data)
 Notifies the driver that the buffer containing the received frame is not used anymore. More...
 
bool nrf_802154_buffer_free_immediately (uint8_t *p_data)
 Notifies the driver that the buffer containing the received frame is not used anymore. More...
 

Detailed Description

Function Documentation

void nrf_802154_buffer_free ( uint8_t *  p_data)

Notifies the driver that the buffer containing the received frame is not used anymore.

Note
The buffer pointed to by p_data may be modified by this function.
This function can be safely called only from the main context. To free the buffer from a callback or IRQ context, use nrf_802154_buffer_free_immediately.
Parameters
[in]p_dataPointer to the buffer containing the received data that is no longer needed by the higher layer.
bool nrf_802154_buffer_free_immediately ( uint8_t *  p_data)

Notifies the driver that the buffer containing the received frame is not used anymore.

Note
The buffer pointed to by p_data may be modified by this function.
This function can be safely called from any context. If the driver is busy processing a request called from a context with lower priority, this function returns false and the caller should free the buffer later.
Parameters
[in]p_dataPointer to the buffer containing the received data that is no longer needed by the higher layer.
Return values
trueBuffer was freed successfully.
falseBuffer cannot be freed right now due to ongoing operation.

Documentation feedback | Developer Zone | Subscribe | Updated