Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
timing.h File Reference
#include <sys/arch_interface.h>
#include <timing/types.h>

Go to the source code of this file.

Functions

void soc_timing_init (void)
 
void soc_timing_start (void)
 
void soc_timing_stop (void)
 
timing_t soc_timing_counter_get (void)
 
uint64_t soc_timing_cycles_get (volatile timing_t *const start, volatile timing_t *const end)
 
uint64_t soc_timing_freq_get (void)
 
uint64_t soc_timing_cycles_to_ns (uint64_t cycles)
 
uint64_t soc_timing_cycles_to_ns_avg (uint64_t cycles, uint32_t count)
 
uint32_t soc_timing_freq_get_mhz (void)
 
void board_timing_init (void)
 
void board_timing_start (void)
 
void board_timing_stop (void)
 
timing_t board_timing_counter_get (void)
 
uint64_t board_timing_cycles_get (volatile timing_t *const start, volatile timing_t *const end)
 
uint64_t board_timing_freq_get (void)
 
uint64_t board_timing_cycles_to_ns (uint64_t cycles)
 
uint64_t board_timing_cycles_to_ns_avg (uint64_t cycles, uint32_t count)
 
uint32_t board_timing_freq_get_mhz (void)
 
void timing_init (void)
 Initialize the timing subsystem. More...
 
void timing_start (void)
 Signal the start of the timing information gathering. More...
 
void timing_stop (void)
 Signal the end of the timing information gathering. More...
 
static timing_t timing_counter_get (void)
 Return timing counter. More...
 
static uint64_t timing_cycles_get (volatile timing_t *const start, volatile timing_t *const end)
 Get number of cycles between start and end. More...
 
static uint64_t timing_freq_get (void)
 Get frequency of counter used (in Hz). More...
 
static uint64_t timing_cycles_to_ns (uint64_t cycles)
 Convert number of cycles into nanoseconds. More...
 
static uint64_t timing_cycles_to_ns_avg (uint64_t cycles, uint32_t count)
 Convert number of cycles into nanoseconds with averaging. More...
 
static uint32_t timing_freq_get_mhz (void)
 Get frequency of counter used (in MHz). More...
 

Function Documentation

◆ board_timing_counter_get()

timing_t board_timing_counter_get ( void  )

◆ board_timing_cycles_get()

uint64_t board_timing_cycles_get ( volatile timing_t *const  start,
volatile timing_t *const  end 
)

◆ board_timing_cycles_to_ns()

uint64_t board_timing_cycles_to_ns ( uint64_t  cycles)

◆ board_timing_cycles_to_ns_avg()

uint64_t board_timing_cycles_to_ns_avg ( uint64_t  cycles,
uint32_t  count 
)

◆ board_timing_freq_get()

uint64_t board_timing_freq_get ( void  )

◆ board_timing_freq_get_mhz()

uint32_t board_timing_freq_get_mhz ( void  )

◆ board_timing_init()

void board_timing_init ( void  )

◆ board_timing_start()

void board_timing_start ( void  )

◆ board_timing_stop()

void board_timing_stop ( void  )

◆ soc_timing_counter_get()

timing_t soc_timing_counter_get ( void  )

◆ soc_timing_cycles_get()

uint64_t soc_timing_cycles_get ( volatile timing_t *const  start,
volatile timing_t *const  end 
)

◆ soc_timing_cycles_to_ns()

uint64_t soc_timing_cycles_to_ns ( uint64_t  cycles)

◆ soc_timing_cycles_to_ns_avg()

uint64_t soc_timing_cycles_to_ns_avg ( uint64_t  cycles,
uint32_t  count 
)

◆ soc_timing_freq_get()

uint64_t soc_timing_freq_get ( void  )

◆ soc_timing_freq_get_mhz()

uint32_t soc_timing_freq_get_mhz ( void  )

◆ soc_timing_init()

void soc_timing_init ( void  )

◆ soc_timing_start()

void soc_timing_start ( void  )

◆ soc_timing_stop()

void soc_timing_stop ( void  )