Loading...
Searching...
No Matches
convert_shift.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Kaspar Schleiser <kaspar@schleiser.de>
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser General
5 * Public License v2.1. See the file LICENSE in the top level directory for more
6 * details.
7 */
8
24#ifndef ZTIMER_CONVERT_SHIFT_H
25#define ZTIMER_CONVERT_SHIFT_H
26
27#include <stdint.h>
28
29#include "ztimer.h"
30#include "ztimer/convert.h"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
52
64 ztimer_clock_t *lower, unsigned shift);
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif /* ZTIMER_CONVERT_SHIFT_H */
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:369
ztimer_convert_shift frequency conversion layer class
ztimer_convert_t super
Superclass instance.
unsigned shift
Frequency conversion scaling constant from lower to self.
base type for ztimer convert modules
Definition convert.h:45
ztimer API