Zephyr API Documentation 4.2.99
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
66__syscall int devmux_select_get(const struct device *dev);
67
79__syscall int devmux_select_set(struct device *dev, size_t index);
80
84
85#ifdef __cplusplus
86}
87#endif
88
89#include <zephyr/syscalls/devmux.h>
90
91#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