Loading...
Searching...
No Matches
convert_muldiv64.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
50
51#include "ztimer.h"
52#include "ztimer/convert.h"
53
54#ifdef __cplusplus
55extern "C" {
56#endif
57
61typedef struct {
63 uint16_t mul;
64 uint16_t div;
66
76 ztimer_convert_muldiv64_t *ztimer_convert_muldiv64, ztimer_clock_t *lower,
77 unsigned div, unsigned mul);
78
79#ifdef __cplusplus
80}
81#endif
82
ztimer frequency conversion base module
void ztimer_convert_muldiv64_init(ztimer_convert_muldiv64_t *ztimer_convert_muldiv64, ztimer_clock_t *lower, unsigned div, unsigned mul)
ztimer_convert_muldiv64 initialization function
struct ztimer_clock ztimer_clock_t
ztimer_clock_t forward declaration
Definition ztimer.h:290
ztimer_convert_muldiv64 structure
ztimer_convert_t super
super class
uint16_t div
module docs
uint16_t mul
please read
base type for ztimer convert modules
Definition convert.h:44
ztimer API