High Resolution Timer

High Resolution Timer Platform interface

HR Timer Overview

High-resolution timers operate using high-frequency clock signals derived from system clocks or dedicated oscillators. The timer counts clock cycles to measure time or trigger actions, with its precision determined by the clock frequency.

Application Interface

Users can directly call the API’s though most of them will be called by device drivers.

The below table captures the functions that are to be called from the application layer.

API Functions

Function

Description

rs_hr_timer_open

To open the hr timer interface.

rs_hr_timer_start

To start the timer for the given channel

rs_hr_timer_stop

To stops the timer for the given channel

rs_hr_timer_get_count

To get count from hr timer.

rs_hr_timer_close

To close the timer unit

Error Code

  • Every API’s for the HR Timer returns some success or failure values. Please refer below section,

Documentation from the relevant header as follows:

Warning

doxygenfile: Cannot find file “rs_hr_timer.h