Go to the documentation of this file.
28 #ifndef ZTIMER_CONVERT_FRAC_H
29 #define ZTIMER_CONVERT_FRAC_H
75 uint32_t freq_self, uint32_t freq_lower);
85 uint32_t freq_self, uint32_t freq_lower);
frac descriptor for fraction consisting of two 32 bit integers
void ztimer_convert_frac_change_rate(ztimer_convert_frac_t *self, uint32_t freq_self, uint32_t freq_lower)
Change the scaling without affecting the current count.
ztimer_convert_frac interface definitions
void ztimer_convert_frac_init(ztimer_convert_frac_t *self, ztimer_clock_t *lower, uint32_t freq_self, uint32_t freq_lower)
ztimer_convert_frac_t constructor
ztimer_convert_t super
Superclass instance.
base type for ztimer convert modules
ztimer frequency conversion base module
ztimer_convert_frac frequency conversion layer class
uint32_t round
Rounding value, will be added to all lower set().
frac_t scale_set
Frequency conversion scaling constant from self to lower.
frac_t scale_now
Frequency conversion scaling constant from lower to self.