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... | |
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.
uint32_t nrf_802154_hp_timer_current_time_get | ( | void | ) |
Get value indicated by the timer right now.
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.
bool nrf_802154_hp_timer_sync_time_get | ( | uint32_t * | p_timestamp | ) |
Get timestamp of the synchronization event.
[out] | p_timestamp | Timestamp of the synchronization event. |
true | Synchronization was performed and p_timestamp is valid. |
false | Synchronization was not performed. p_timestamp was not modified. |
uint32_t nrf_802154_hp_timer_timestamp_get | ( | void | ) |
Get timestamp of last event.
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.