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 
30 #ifndef ZTIMER_CONVERT_H
31 #define ZTIMER_CONVERT_H
32 
33 #include "ztimer.h"
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
45 typedef struct {
50 
62 void ztimer_convert_init(ztimer_convert_t *ztimer_convert,
63  ztimer_clock_t *lower, uint32_t max_value);
64 
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 #endif /* ZTIMER_CONVERT_H */
79 
ztimer.h
ztimer API
ztimer_t
ztimer structure
Definition: ztimer.h:279
ztimer_convert_init
void ztimer_convert_init(ztimer_convert_t *ztimer_convert, ztimer_clock_t *lower, uint32_t max_value)
Initialization function for ztimer_convert_t.
ztimer_convert_t::lower_entry
ztimer_t lower_entry
timer entry in parent clock
Definition: convert.h:48
ztimer_clock
ztimer device structure
Definition: ztimer.h:312
ztimer_convert_t
base type for ztimer convert modules
Definition: convert.h:45
ztimer_convert_t::lower
ztimer_clock_t * lower
lower clock device
Definition: convert.h:47
ztimer_convert_t::super
ztimer_clock_t super
ztimer_clock super class
Definition: convert.h:46
ztimer_convert_cancel
void ztimer_convert_cancel(ztimer_clock_t *clock)
ztimer_convert common cancel() op