nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_802154_received()

void nrf_802154_received ( uint8_t *  p_data,
uint8_t  length,
int8_t  power,
uint8_t  lqi 
)

#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_dataPointer to a buffer that contains only the payload of the received frame (PSDU without FCS).
[in]lengthLength of the received payload.
[in]powerRSSI of the received frame.
[in]lqiLQI of the received frame.