Zephyr API Documentation 4.0.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#ifndef INCLUDE_ZEPHYR_DRIVERS_MISC_DEVMUX_H_
13#define INCLUDE_ZEPHYR_DRIVERS_MISC_DEVMUX_H_
14
15#include <stdint.h>
16
17#include <zephyr/device.h>
18#include <zephyr/kernel.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
65__syscall int devmux_select_get(const struct device *dev);
66
78__syscall int devmux_select_set(struct device *dev, size_t index);
79
84#ifdef __cplusplus
85}
86#endif
87
88#include <zephyr/syscalls/devmux.h>
89
90#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:411