convert_muldiv64.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2019 Kaspar Schleiser <kaspar@schleiser.de>
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
48 #include "ztimer.h"
49 #include "ztimer/convert.h"
50 
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54 
58 typedef struct {
60  uint16_t mul;
61  uint16_t div;
63 
73  ztimer_convert_muldiv64_t *ztimer_convert_muldiv64, ztimer_clock_t *lower,
74  unsigned div, unsigned mul);
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
ztimer frequency conversion base module
void ztimer_convert_muldiv64_init(ztimer_convert_muldiv64_t *ztimer_convert_muldiv64, ztimer_clock_t *lower, unsigned div, unsigned mul)
ztimer_convert_muldiv64 initialization function
ztimer device structure
Definition: ztimer.h:367
ztimer_convert_muldiv64 structure
ztimer_convert_t super
super class
uint16_t div
module docs
uint16_t mul
please read
base type for ztimer convert modules
Definition: convert.h:41
ztimer API