convert_shift.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2018 Kaspar Schleiser <kaspar@schleiser.de>
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
24 #include <stdint.h>
25 
26 #include "ztimer.h"
27 #include "ztimer/convert.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
36 typedef struct {
47  unsigned shift;
49 
61  ztimer_clock_t *lower, unsigned shift);
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
ztimer frequency conversion base module
void ztimer_convert_shift_up_init(ztimer_convert_shift_t *clock, ztimer_clock_t *lower, unsigned shift)
ztimer_convert_shift init() for (fake) increasing timer frequency
ztimer device structure
Definition: ztimer.h:367
ztimer_convert_shift frequency conversion layer class
Definition: convert_shift.h:36
ztimer_convert_t super
Superclass instance.
Definition: convert_shift.h:40
unsigned shift
Frequency conversion scaling constant from lower to self.
Definition: convert_shift.h:47
base type for ztimer convert modules
Definition: convert.h:41
ztimer API