Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
{
40
ztimer_convert_t
super
;
47
unsigned
shift
;
48
}
ztimer_convert_shift_t
;
49
60
void
ztimer_convert_shift_up_init
(
ztimer_convert_shift_t
*clock,
61
ztimer_clock_t
*lower,
unsigned
shift);
62
63
#ifdef __cplusplus
64
}
65
#endif
66
convert.h
ztimer frequency conversion base module
ztimer_convert_shift_up_init
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_clock
ztimer device structure
Definition:
ztimer.h:367
ztimer_convert_shift_t
ztimer_convert_shift frequency conversion layer class
Definition:
convert_shift.h:36
ztimer_convert_shift_t::super
ztimer_convert_t super
Superclass instance.
Definition:
convert_shift.h:40
ztimer_convert_shift_t::shift
unsigned shift
Frequency conversion scaling constant from lower to self.
Definition:
convert_shift.h:47
ztimer_convert_t
base type for ztimer convert modules
Definition:
convert.h:41
ztimer.h
ztimer API
Generated on Mon Nov 24 2025 18:43:16 by
1.9.1