convert.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 
29 #include "ztimer.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
41 typedef struct {
46 
59  ztimer_clock_t *lower, uint32_t max_value);
60 
69 
78 
87 
88 #ifdef __cplusplus
89 }
90 #endif
91 
void ztimer_convert_init(ztimer_convert_t *ztimer_convert, ztimer_clock_t *lower, uint32_t max_value)
Initialization function for ztimer_convert_t.
void ztimer_convert_start(ztimer_clock_t *clock)
ztimer_convert common start() op
void ztimer_convert_cancel(ztimer_clock_t *clock)
ztimer_convert common cancel() op
void ztimer_convert_stop(ztimer_clock_t *clock)
ztimer_convert common stop() op
ztimer device structure
Definition: ztimer.h:367
base type for ztimer convert modules
Definition: convert.h:41
ztimer_clock_t * lower
lower clock device
Definition: convert.h:43
ztimer_t lower_entry
timer entry in parent clock
Definition: convert.h:44
ztimer_clock_t super
ztimer_clock super class
Definition: convert.h:42
ztimer structure
Definition: ztimer.h:316
ztimer API