Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
Devmux Driver APIs. More...
Functions | |
ssize_t | devmux_select_get (const struct device *dev) |
Get the current selection of a devmux device. | |
int | devmux_select_set (struct device *dev, size_t index) |
Set the selection of a devmux device. | |
Devmux Driver APIs.
Devmux operates as a device multiplexer, forwarding the characteristics of the selected device.
#include <zephyr/drivers/misc/devmux/devmux.h>
Get the current selection of a devmux device.
Return the index of the currently selected device.
dev | the devmux device |
-EINVAL | If dev is invalid |
#include <zephyr/drivers/misc/devmux/devmux.h>
Set the selection of a devmux device.
Select the device at index
.
[in] | dev | the devmux device |
index | the index representing the desired selection |
0 | On success |
-EINVAL | If dev is invalid |
-ENODEV | If the multiplexed device at index is not ready |