Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
33
extern
"C"
{
34
#endif
35
39
typedef
struct
{
43
ztimer_convert_t
super
;
50
unsigned
shift
;
51
}
ztimer_convert_shift_t
;
52
63
void
ztimer_convert_shift_up_init
(
ztimer_convert_shift_t
*clock,
64
ztimer_clock_t
*lower,
unsigned
shift);
65
66
#ifdef __cplusplus
67
}
68
#endif
69
70
#endif
/* ZTIMER_CONVERT_SHIFT_H */
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:369
ztimer_convert_shift_t
ztimer_convert_shift frequency conversion layer class
Definition
convert_shift.h:39
ztimer_convert_shift_t::super
ztimer_convert_t super
Superclass instance.
Definition
convert_shift.h:43
ztimer_convert_shift_t::shift
unsigned shift
Frequency conversion scaling constant from lower to self.
Definition
convert_shift.h:50
ztimer_convert_t
base type for ztimer convert modules
Definition
convert.h:45
ztimer.h
ztimer API
Generated on Fri Nov 22 2024 03:12:57 by
1.9.8