Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mux.h File Reference

MUX Devicetree macro public API header file. More...

#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/sys/util.h>

Go to the source code of this file.

Macros

#define MUX_CONTROL_DT_GET_BY_IDX(node_id, idx)
 Get a pointer to the mux_control object defined by MUX_CONTROL_DT_SPEC_DEFINE_BY_IDX().
#define MUX_CONTROL_DT_GET(node_id)
 Equivalent to MUX_CONTROL_DT_GET_BY_IDX(node_id, 0).
#define MUX_CONTROL_DT_GET_BY_NAME(node_id, name)
 Get a pointer to the mux_control object defined by MUX_CONTROL_DT_SPEC_DEFINE_BY_NAME().
#define MUX_STATE_DT_GET_BY_IDX(node_id, idx)
 Get a pointer to the mux_state object defined by MUX_STATE_DT_SPEC_DEFINE_BY_IDX().
#define MUX_STATE_DT_GET(node_id)
 Equivalent to MUX_STATE_DT_GET_BY_IDX(node_id, 0).
#define MUX_STATE_DT_GET_BY_NAME(node_id, name)
 Get a pointer to the mux_state object defined by MUX_STATE_DT_SPEC_DEFINE_BY_NAME().
#define MUX_CONTROL_DT_DEV_GET_BY_IDX(node_id, idx)
 Get the MUX controller device pointer for a mux-controls entry.
#define MUX_CONTROL_DT_DEV_GET(node_id)
 Equivalent to MUX_CONTROL_DT_DEV_GET_BY_IDX(node_id, 0).
#define MUX_STATE_DT_DEV_GET_BY_IDX(node_id, idx)
 Get the MUX controller device pointer for a mux-states entry.
#define MUX_STATE_DT_DEV_GET(node_id)
 Equivalent to MUX_STATE_DT_DEV_GET_BY_IDX(node_id, 0).
#define MUX_STATE_DT_SPEC_DEFINE_ALL(node_id)
 Define a mux_state object for every entry in a node's mux-states property.
#define MUX_STATE_DT_INST_SPEC_DEFINE_ALL(inst)
 Equivalent to MUX_STATE_DT_SPEC_DEFINE_ALL() for DT_DRV_INST(inst).

Detailed Description

MUX Devicetree macro public API header file.

Pure devicetree helpers for the MUX subsystem: macros that resolve to preprocessor tokens (identifiers, cell values, node identifiers, struct device pointers via DEVICE_DT_GET).

Helpers that emit struct mux_control or struct mux_state initializers live in <zephyr/drivers/mux.h> because they require the full struct definitions at expansion site.