nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ nrf_802154_mhr_timestamp_get()

uint64_t nrf_802154_mhr_timestamp_get ( uint64_t  end_timestamp,
uint8_t  psdu_length 
)

#include <nrf_802154/common/include/nrf_802154_common_utils.h>

Calculates the timestamp of the MAC Header in a received frame.

Deprecated:
This function is deprecated. Use nrf_802154_timestamp_end_to_phr_convert instead and adjust the code that calls this function to rely on the timestamp of the first symbol of the PHR, not the MAC Header timestamp.
Parameters
[in]end_timestampTimestamp of the end of the last symbol in the frame, in microseconds.
[in]psdu_lengthNumber of bytes in the frame PSDU.
Returns
Timestamp of the MHR of a given frame, in microseconds.