Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
devmux_driver_api Struct Reference

Driver Operations DEVMUX driver operations More...

#include <zephyr/drivers/misc/devmux/devmux.h>

Data Fields

int(* select_get )(const struct device *dev)
  REQ Callback API to get the current selection of a devmux device.
int(* select_set )(struct device *dev, size_t index)
  REQ Callback API to set the selection of a devmux device.

Detailed Description

Driver Operations DEVMUX driver operations

This is the driver API structure any DEVMUX driver needs to define. It contains function pointers to the operations the driver implements, as well as any other driver-specific constant data.

Members marked with REQ MUST be set by the driver, whereas those marked with OPT are optional.

See also
DEVICE_DT_INST_DEFINE()
DEVICE_DT_DEFINE()
DEVICE_API()

Field Documentation

◆ select_get

int(* devmux_driver_api::select_get) (const struct device *dev)

REQ Callback API to get the current selection of a devmux device.

◆ select_set

int(* devmux_driver_api::select_set) (struct device *dev, size_t index)

REQ Callback API to set the selection of a devmux device.


The documentation for this struct was generated from the following file: