|
#define | DEVICE_HANDLE_NULL 0 |
| Flag value used to identify an unknown device.
|
|
#define | DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id) |
| Expands to the name of a global device object.
|
|
#define | DEVICE_DEINIT_DEFINE(dev_id, name, init_fn, deinit_fn, pm, data, config, level, prio, api) |
| Create a device object and set it up for boot time initialization, with de-init capabilities.
|
|
#define | DEVICE_DEFINE(dev_id, name, init_fn, pm, data, config, level, prio, api) |
| Create a device object and set it up for boot time initialization.
|
|
#define | DEVICE_DT_NAME(node_id) DT_PROP_OR(node_id, label, DT_NODE_FULL_NAME(node_id)) |
| Return a string name for a devicetree node.
|
|
#define | DEVICE_DT_DEINIT_DEFINE(node_id, init_fn, deinit_fn, pm, data, config, level, prio, api, ...) |
| Create a device object from a devicetree node identifier and set it up for boot time initialization.
|
|
#define | DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, prio, api, ...) |
| Create a device object from a devicetree node identifier and set it up for boot time initialization.
|
|
#define | DEVICE_DT_INST_DEINIT_DEFINE(inst, ...) DEVICE_DT_DEINIT_DEFINE(DT_DRV_INST(inst), __VA_ARGS__) |
| Like DEVICE_DT_DEINIT_DEFINE(), but uses an instance of a DT_DRV_COMPAT compatible instead of a node identifier.
|
|
#define | DEVICE_DT_INST_DEFINE(inst, ...) DEVICE_DT_DEFINE(DT_DRV_INST(inst), __VA_ARGS__) |
| Like DEVICE_DT_DEFINE(), but uses an instance of a DT_DRV_COMPAT compatible instead of a node identifier.
|
|
#define | DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id)) |
| The name of the global device object for node_id .
|
|
#define | DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id)) |
| Get a device reference from a devicetree node identifier.
|
|
#define | DEVICE_DT_INST_GET(inst) DEVICE_DT_GET(DT_DRV_INST(inst)) |
| Get a device reference for an instance of a DT_DRV_COMPAT compatible.
|
|
#define | DEVICE_DT_GET_ANY(compat) |
| Get a device reference from a devicetree compatible.
|
|
#define | DEVICE_DT_GET_ONE(compat) |
| Get a device reference from a devicetree compatible.
|
|
#define | DEVICE_DT_GET_OR_NULL(node_id) |
| Utility macro to obtain an optional reference to a device.
|
|
#define | DEVICE_DT_GET_BY_IDX(node_id, prop, idx) DEVICE_DT_GET(DT_PHANDLE_BY_IDX(node_id, prop, idx)) |
| Get a device reference from a devicetree phandles by idx.
|
|
#define | DEVICE_GET(dev_id) (&DEVICE_NAME_GET(dev_id)) |
| Obtain a pointer to a device object by name.
|
|
#define | DEVICE_DECLARE(dev_id) static const struct device DEVICE_NAME_GET(dev_id) |
| Declare a static device object.
|
|
#define | DEVICE_INIT_DT_GET(node_id) (&Z_INIT_ENTRY_NAME(DEVICE_DT_NAME_GET(node_id))) |
| Get a init_entry reference from a devicetree node.
|
|
#define | DEVICE_INIT_GET(dev_id) (&Z_INIT_ENTRY_NAME(DEVICE_NAME_GET(dev_id))) |
| Get a init_entry reference from a device identifier.
|
|
#define | DEVICE_API(_class, _name) const STRUCT_SECTION_ITERABLE(Z_DEVICE_API_TYPE(_class), _name) |
| Wrapper macro for declaring device API structs inside iterable sections.
|
|
#define | DEVICE_API_GET(_class, _dev) ((const struct Z_DEVICE_API_TYPE(_class) *)_dev->api) |
| Expands to the pointer of a device's API for a given class.
|
|
#define | DEVICE_API_IS(_class, _dev) |
| Macro that evaluates to a boolean that can be used to check if a device is of a particular class.
|
|
|
#define | DEVICE_FLAG_INIT_DEFERRED BIT(0) |
| Device initialization is deferred.
|
|