Zephyr Project API
3.7.0
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
ssize_t
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_ */
index
ZTEST_BMEM int index[(3)]
Definition
main.c:32
device.h
devmux_select_get
ssize_t devmux_select_get(const struct device *dev)
Get the current selection of a devmux device.
devmux_select_set
int devmux_select_set(struct device *dev, size_t index)
Set the selection of a devmux device.
kernel.h
Public kernel APIs.
ssize_t
__SIZE_TYPE__ ssize_t
Definition
types.h:28
stdint.h
device
Runtime device structure (in ROM) per driver instance.
Definition
device.h:403
include
zephyr
drivers
misc
devmux
devmux.h
Generated on Sun Sep 15 2024 17:01:30 for Zephyr Project API by
1.9.8