Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
SoC specific Timing Measurement APIs . More...
Functions | |
void | soc_timing_init (void) |
Initialize the timing subsystem on SoC. | |
void | soc_timing_start (void) |
Signal the start of the timing information gathering. | |
void | soc_timing_stop (void) |
Signal the end of the timing information gathering. | |
timing_t | soc_timing_counter_get (void) |
Return timing counter. | |
uint64_t | soc_timing_cycles_get (volatile timing_t *const start, volatile timing_t *const end) |
Get number of cycles between start and end . | |
uint64_t | soc_timing_freq_get (void) |
Get frequency of counter used (in Hz). | |
uint64_t | soc_timing_cycles_to_ns (uint64_t cycles) |
Convert number of cycles into nanoseconds. | |
uint64_t | soc_timing_cycles_to_ns_avg (uint64_t cycles, uint32_t count) |
Convert number of cycles into nanoseconds with averaging. | |
uint32_t | soc_timing_freq_get_mhz (void) |
Get frequency of counter used (in MHz). | |
SoC specific Timing Measurement APIs .
Implements the necessary bits to support timing measurement using SoC specific timing measurement mechanism.
timing_t soc_timing_counter_get | ( | void | ) |
#include <zephyr/timing/timing.h>
Return timing counter.
#include <zephyr/timing/timing.h>
Get number of cycles between start
and end
.
start | Pointer to counter at start of a measured execution. |
end | Pointer to counter at stop of a measured execution. |
#include <zephyr/timing/timing.h>
Convert number of cycles
into nanoseconds.
cycles | Number of cycles |
#include <zephyr/timing/timing.h>
Convert number of cycles
into nanoseconds with averaging.
cycles | Number of cycles |
count | Times of accumulated cycles to average over |
uint64_t soc_timing_freq_get | ( | void | ) |
#include <zephyr/timing/timing.h>
Get frequency of counter used (in Hz).
uint32_t soc_timing_freq_get_mhz | ( | void | ) |
#include <zephyr/timing/timing.h>
Get frequency of counter used (in MHz).
void soc_timing_init | ( | void | ) |
#include <zephyr/timing/timing.h>
Initialize the timing subsystem on SoC.
Perform the necessary steps to initialize the timing subsystem.
void soc_timing_start | ( | void | ) |
#include <zephyr/timing/timing.h>
Signal the start of the timing information gathering.
Signal to the timing subsystem that timing information will be gathered from this point forward.
void soc_timing_stop | ( | void | ) |
#include <zephyr/timing/timing.h>
Signal the end of the timing information gathering.
Signal to the timing subsystem that timing information is no longer being gathered from this point forward.