API Reference Manual 1.51.0
Loading...
Searching...
No Matches
odp_timer_periodic_capability_t Struct Reference

Periodic timer capability. More...

#include <timer_types.h>

Collaboration diagram for odp_timer_periodic_capability_t:
[legend]

Data Fields

odp_timer_type_t type
 Periodic timer type for which to check the frequency support.
 
union { 
 
   struct { 
 
      odp_fract_u64_t   base_freq_hz 
 Periodic timer pool base frequency in hertz. More...
 
      uint64_t   max_multiplier 
 Maximum base frequency multiplier. More...
 
   }   base_mul 
 Capability for ODP_TIMER_TYPE_PERIODIC_BASE_MUL.
 
   struct { 
 
      odp_fract_u64_t *   freq_hz 
 Array of constraining periodic timer frequencies for timer pool in hertz in ascending order. More...
 
      uint32_t   num 
 Number of items in 'freq_hz' array. More...
 
   }   freq 
 Capability for ODP_TIMER_TYPE_PERIODIC_FREQ.
 
};  
 Type specific configuration.
 
uint64_t res_ns
 Timeout resolution in nanoseconds.
 

Detailed Description

Periodic timer capability.

Examples
odp_timer_accuracy.c, and odp_timer_stress.c.

Definition at line 106 of file api/spec/timer_types.h.

Field Documentation

◆ type

odp_timer_type_t odp_timer_periodic_capability_t::type

Periodic timer type for which to check the frequency support.

Allowed types are ODP_TIMER_TYPE_PERIODIC_BASE_MUL and ODP_TIMER_TYPE_PERIODIC_FREQ.

Examples
odp_timer_accuracy.c.

Definition at line 111 of file api/spec/timer_types.h.

◆ base_freq_hz

odp_fract_u64_t odp_timer_periodic_capability_t::base_freq_hz

Periodic timer pool base frequency in hertz.

Base frequency is represented as a fractional number where the fraction part is always less than one. In other words, the integer part specifies whole hertz whereas the fraction part specifies parts of a hertz (if any). The fraction part does not need to be reduced to its lowest terms - e.g. 100.5 Hz may be represented as 100 1/2 Hz, 100 5/10 Hz, or 100 Hz with some other equivalent fraction part.

Examples
odp_timer_accuracy.c.

Definition at line 126 of file api/spec/timer_types.h.

◆ max_multiplier

uint64_t odp_timer_periodic_capability_t::max_multiplier

Maximum base frequency multiplier.

Examples
odp_timer_accuracy.c.

Definition at line 129 of file api/spec/timer_types.h.

◆ freq_hz

odp_fract_u64_t* odp_timer_periodic_capability_t::freq_hz

Array of constraining periodic timer frequencies for timer pool in hertz in ascending order.

Definition at line 138 of file api/spec/timer_types.h.

◆ num

uint32_t odp_timer_periodic_capability_t::num

Number of items in 'freq_hz' array.

Definition at line 141 of file api/spec/timer_types.h.

◆ res_ns

uint64_t odp_timer_periodic_capability_t::res_ns

Timeout resolution in nanoseconds.

Examples
odp_timer_accuracy.c.

Definition at line 148 of file api/spec/timer_types.h.


The documentation for this struct was generated from the following file: