nRF5 SDK for Thread and Zigbee v3.2.0
Functions
High Precision Timer for the 802.15.4 driver

This module defines API or High Precision Timer for the 802.15.4 driver. More...

Functions

void nrf_802154_hp_timer_init (void)
 Initialize the timer.
 
void nrf_802154_hp_timer_deinit (void)
 Uninitialize the timer.
 
void nrf_802154_hp_timer_start (void)
 Start the timer. More...
 
void nrf_802154_hp_timer_stop (void)
 Stop the timer. More...
 
uint32_t nrf_802154_hp_timer_current_time_get (void)
 Get value indicated by the timer right now. More...
 
uint32_t nrf_802154_hp_timer_sync_task_get (void)
 Get task used to synchronize this timer with the LP timer. More...
 
void nrf_802154_hp_timer_sync_prepare (void)
 Configure the timer to detect if sync task was triggered.
 
bool nrf_802154_hp_timer_sync_time_get (uint32_t *p_timestamp)
 Get timestamp of the synchronization event. More...
 
uint32_t nrf_802154_hp_timer_timestamp_task_get (void)
 Get task used to make timestamp of an event. More...
 
uint32_t nrf_802154_hp_timer_timestamp_get (void)
 Get timestamp of last event. More...
 

Detailed Description

This module defines API or High Precision Timer for the 802.15.4 driver.

High Precision Timer for the 802.15.4 driver.

High Precision Timer is a timer that is used only when the radio is in use. This timer is not used when the radio is in the sleep mode or out of RAAL timeslots. This timer should provide at least 1us precision. It is intended to be used for precise frame timestamps or synchronous radio operations.

Note
High Precision Timer is a relative timer. To use it as absolute timer it must be synchronized with the Low Power Timer.

Function Documentation

uint32_t nrf_802154_hp_timer_current_time_get ( void  )

Get value indicated by the timer right now.

Note
Returned value is relative to the nrf_802154_hp_timer_start call time. It is not synchronized with the lp timer.
Returns
Current timer value [us].
void nrf_802154_hp_timer_start ( void  )

Start the timer.

The timer starts counting when this command is called.

void nrf_802154_hp_timer_stop ( void  )

Stop the timer.

The timer stops counting and enters low power mode.

uint32_t nrf_802154_hp_timer_sync_task_get ( void  )

Get task used to synchronize this timer with the LP timer.

Returns
Address of the task.
bool nrf_802154_hp_timer_sync_time_get ( uint32_t *  p_timestamp)

Get timestamp of the synchronization event.

Parameters
[out]p_timestampTimestamp of the synchronization event.
Return values
trueSynchronization was performed and p_timestamp is valid.
falseSynchronization was not performed. p_timestamp was not modified.
uint32_t nrf_802154_hp_timer_timestamp_get ( void  )

Get timestamp of last event.

Returns
Timestamp of last event that triggered the nrf_802154_hp_timer_timestamp_task_get task.
uint32_t nrf_802154_hp_timer_timestamp_task_get ( void  )

Get task used to make timestamp of an event.

This function should be used to configure PPI. This function configures the timer in order to detect if returned task was triggered to return valid value by the nrf_802154_hp_timer_timestamp_get.

Returns
Address of the task.

Documentation feedback | Developer Zone | Subscribe | Updated