Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
counter_capture_emul.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Meta Platforms
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
11
12#ifndef ZEPHYR_INCLUDE_DRIVERS_COUNTER_COUNTER_CAPTURE_EMUL_H_
13#define ZEPHYR_INCLUDE_DRIVERS_COUNTER_COUNTER_CAPTURE_EMUL_H_
14
15#include <zephyr/device.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
40
56int counter_capture_emul_input_set(const struct device *dev, uint8_t chan_id, int level);
57
71 int level)
72{
73 return counter_capture_emul_input_set(spec->dev, spec->chan_id, level);
74}
75
85int counter_capture_emul_input_get(const struct device *dev, uint8_t chan_id);
86
99{
100 return counter_capture_emul_input_get(spec->dev, spec->chan_id);
101}
102
104
105#ifdef __cplusplus
106}
107#endif
108
109#endif /* ZEPHYR_INCLUDE_DRIVERS_COUNTER_COUNTER_CAPTURE_EMUL_H_ */
Main header file for counter driver API.
int counter_capture_emul_input_set(const struct device *dev, uint8_t chan_id, int level)
Set the emulated capture input level on a channel.
static int counter_capture_emul_input_set_dt(const struct counter_capture_dt_spec *spec, int level)
Set the emulated capture input level on a channel from a DT spec.
Definition counter_capture_emul.h:70
int counter_capture_emul_input_get(const struct device *dev, uint8_t chan_id)
Get the emulated capture input level on a channel.
static int counter_capture_emul_input_get_dt(const struct counter_capture_dt_spec *spec)
Get the emulated capture input level on a channel from a DT spec.
Definition counter_capture_emul.h:98
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Container for counter capture information specified in devicetree.
Definition counter.h:171
const struct device * dev
Counter device instance.
Definition counter.h:173
uint8_t chan_id
Channel ID.
Definition counter.h:177
Runtime device structure (in ROM) per driver instance.
Definition device.h:513