|
#define | DEVICE_HANDLE_SEP INT16_MIN |
| Flag value used in lists of device handles to separate distinct groups. More...
|
|
#define | DEVICE_HANDLE_ENDS INT16_MAX |
| Flag value used in lists of device handles to indicate the end of the list. More...
|
|
#define | DEVICE_HANDLE_NULL 0 |
| Flag value used to identify an unknown device. More...
|
|
#define | DEVICE_NAME_GET(name) _CONCAT(__device_, name) |
| Expands to the name of a global device object. More...
|
|
#define | DEVICE_DEFINE(dev_name, drv_name, init_fn, pm_device, data_ptr, cfg_ptr, level, prio, api_ptr) |
| Create a device object and set it up for boot time initialization. More...
|
|
#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. More...
|
|
#define | DEVICE_DT_DEFINE(node_id, init_fn, pm_device, data_ptr, cfg_ptr, level, prio, api_ptr, ...) |
| Create a device object from a devicetree node identifier and set it up for boot time initialization. More...
|
|
#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. More...
|
|
#define | DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_NAME(node_id)) |
| The name of the global device object for node_id . More...
|
|
#define | DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id)) |
| Get a const struct device* from a devicetree node identifier. More...
|
|
#define | DEVICE_DT_INST_GET(inst) DEVICE_DT_GET(DT_DRV_INST(inst)) |
| Get a const struct device* for an instance of a DT_DRV_COMPAT compatible. More...
|
|
#define | DEVICE_DT_GET_ANY(compat) |
| Get a const struct device* from a devicetree compatible. More...
|
|
#define | DEVICE_DT_GET_ONE(compat) |
| Get a const struct device* from a devicetree compatible. More...
|
|
#define | DEVICE_DT_GET_OR_NULL(node_id) |
| Utility macro to obtain an optional reference to a device. More...
|
|
#define | DEVICE_GET(name) (&DEVICE_NAME_GET(name)) |
| Obtain a pointer to a device object by name. More...
|
|
#define | DEVICE_DECLARE(name) static const struct device DEVICE_NAME_GET(name) |
| Declare a static device object. More...
|
|
#define | DEVICE_INIT_DT_GET(node_id) (&Z_INIT_ENTRY_NAME(DEVICE_DT_NAME_GET(node_id))) |
| Get a const struct init_entry* from a devicetree node. More...
|
|
#define | DEVICE_INIT_GET(name) (&Z_INIT_ENTRY_NAME(DEVICE_NAME_GET(name))) |
| Get a const struct init_entry* from a device by name. More...
|
|