convert.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 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 
9 #pragma once
10 
32 #include "ztimer.h"
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
44 typedef struct {
49 
62  ztimer_clock_t *lower, uint32_t max_value);
63 
72 
81 
90 
91 #ifdef __cplusplus
92 }
93 #endif
94 
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:370
base type for ztimer convert modules
Definition: convert.h:44
ztimer_clock_t * lower
lower clock device
Definition: convert.h:46
ztimer_t lower_entry
timer entry in parent clock
Definition: convert.h:47
ztimer_clock_t super
ztimer_clock super class
Definition: convert.h:45
ztimer structure
Definition: ztimer.h:319
ztimer API