Zephyr API Documentation
4.1.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
21
extern
"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_ */
device.h
devmux_select_set
int devmux_select_set(struct device *dev, size_t index)
Set the selection of a devmux device.
devmux_select_get
int devmux_select_get(const struct device *dev)
Get the current selection of a devmux device.
index
ZTEST_BMEM int index[(3)]
Definition
main.c:32
kernel.h
Public kernel APIs.
stdint.h
device
Runtime device structure (in ROM) per driver instance.
Definition
device.h:504
zephyr
drivers
misc
devmux
devmux.h
Generated on Mon Apr 21 2025 11:55:48 for Zephyr API Documentation by
1.12.0