nrfxlib API 0.1.0
|
void nrf_802154_received_raw | ( | uint8_t * | p_data, |
int8_t | power, | ||
uint8_t | lqi | ||
) |
#include <nrf_802154/common/include/nrf_802154_callouts.h>
Notifies that a frame was received.
p_data
is not modified by the radio driver (and cannot be used to receive a frame) until nrf_802154_buffer_free_raw is called. p_data
may be modified by the function handler (and other modules) until nrf_802154_buffer_free_raw is called. * p_data * v * +-----+-----------------------------------------------------------+------------+ * | PHR | MAC Header and payload | FCS | * +-----+-----------------------------------------------------------+------------+ * | | * | <---------------------------- PHR -----------------------------------> | *
[in] | p_data | Pointer to a buffer that contains PHR and PSDU of the received frame. The first byte in the buffer is the length of the frame (PHR). The following bytes contain the frame itself (PSDU). The length byte (PHR) includes FCS. FCS is already verified by the hardware and may be modified by the hardware. |
[in] | power | RSSI of the received frame. |
[in] | lqi | LQI of the received frame. |