Zephyr Project API 4.3.2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
devmux.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023, Meta
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef INCLUDE_ZEPHYR_DRIVERS_MISC_DEVMUX_H_
14#define INCLUDE_ZEPHYR_DRIVERS_MISC_DEVMUX_H_
15
16#include <stdint.h>
17
18#include <zephyr/device.h>
19#include <zephyr/kernel.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
56
60__subsystem struct devmux_driver_api {
62 int (*select_get)(const struct device *dev);
64 int (*select_set)(struct device *dev, size_t index);
65};
66
76__syscall int devmux_select_get(const struct device *dev);
77
89__syscall int devmux_select_set(struct device *dev, size_t index);
90
94
95#ifdef __cplusplus
96}
97#endif
98
99#include <zephyr/syscalls/devmux.h>
100
101#endif /* INCLUDE_ZEPHYR_DRIVERS_MISC_DEVMUX_H_ */
int devmux_select_set(struct device *dev, size_t index)
Set the selection of a devmux device.
int devmux_select_get(const struct device *dev)
Get the current selection of a devmux device.
Public kernel APIs.
Runtime device structure (in ROM) per driver instance.
Definition device.h:510
Devmux driver API.
Definition devmux.h:60
int(* select_get)(const struct device *dev)
Callback API to get the current selection of a devmux device.
Definition devmux.h:62
int(* select_set)(struct device *dev, size_t index)
Callback API to set the selection of a devmux device.
Definition devmux.h:64