#include <nrf_802154/common/include/nrf_802154_callouts.h>
Notifies that a frame was received.
- Note
- The buffer pointed to by
p_data
is not modified by the radio driver (and cannot be used to receive a frame) until nrf_802154_buffer_free is called.
-
The buffer pointed to by
p_data
can be modified by the function handler (and other modules) until nrf_802154_buffer_free is called.
-
This callout is called by the nRF 802.15.4 Radio Driver if NRF_802154_USE_RAW_API is disabled. Default implementation of this function provided by the nRF 802.15.4 Radio Driver calls nrf_802154_received_timestamp .
* p_data
* v
* +-----+-----------------------------------------------------------+------------+
* | PHR | MAC Header and payload | FCS |
* +-----+-----------------------------------------------------------+------------+
* | |
* | <------------------ length -----------------------------> |
*
- Parameters
-
[in] | p_data | Pointer to a buffer that contains only the payload of the received frame (PSDU without FCS). |
[in] | length | Length of the received payload. |
[in] | power | RSSI of the received frame. |
[in] | lqi | LQI of the received frame. |