|
Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
|
Macros | |
| #define | DT_NODE_HAS_MAP(node_id, prop) |
| Returns the existence of map property. | |
| #define | DT_MAP_LEN(node_id, prop) |
| Returns the number of maps for the given property. | |
| #define | DT_MAP_HAS_ENTRY_BY_IDX(node_id, prop, entry_idx) |
Is index idx valid for an array type property? | |
| #define | DT_MAP_HAS_ENTRY(node_id, prop) |
| Checks if the map property has any entries. | |
| #define | DT_MAP_ENTRY_CHILD_ADDRESS_LEN(node_id, prop, entry_idx) |
| Get the number of child addresses. | |
| #define | DT_MAP_ENTRY_HAS_CHILD_ADDRESS_BY_IDX(node_id, prop, entry_idx, param_idx) |
| Checks if the child address has the specified index. | |
| #define | DT_MAP_ENTRY_HAS_CHILD_ADDRESS(node_id, prop, entry_idx) |
| Checks if the mapping entry has any child addresses. | |
| #define | DT_MAP_ENTRY_CHILD_ADDRESS_BY_IDX(node_id, prop, entry_idx, param_idx) |
| Get the child address element from a mapping entry, by index. | |
| #define | DT_MAP_ENTRY_CHILD_ADDRESS(node_id, prop, entry_idx) |
| Get the first child address element from a mapping entry. | |
| #define | DT_MAP_ENTRY_CHILD_SPECIFIER_LEN(node_id, prop, entry_idx) |
| Get the number of child specifiers. | |
| #define | DT_MAP_ENTRY_HAS_CHILD_SPECIFIER_BY_IDX(node_id, prop, entry_idx, param_idx) |
| Checks if the child specifier has the specified index. | |
| #define | DT_MAP_ENTRY_HAS_CHILD_SPECIFIER(node_id, prop, entry_idx) |
| Checks if the mapping entry has any child specifiers. | |
| #define | DT_MAP_ENTRY_CHILD_SPECIFIER_BY_IDX(node_id, prop, entry_idx, param_idx) |
| Get the child specifier element from a mapping entry, by index. | |
| #define | DT_MAP_ENTRY_CHILD_SPECIFIER(node_id, prop, entry_idx) |
| Get the first child specifier element from a mapping entry. | |
| #define | DT_MAP_ENTRY_PARENT_BY_IDX(node_id, prop, entry_idx) |
| Extracts the parent node from a mapping entry. | |
| #define | DT_MAP_ENTRY_PARENT(node_id, prop) |
| Extracts the parent node from the first mapping entry. | |
| #define | DT_MAP_ENTRY_PARENT_ADDRESS_LEN(node_id, prop, entry_idx) |
| Get the number of parent addresses. | |
| #define | DT_MAP_ENTRY_HAS_PARENT_ADDRESS_BY_IDX(node_id, prop, entry_idx, param_idx) |
| Checks if the parent address has the specified index. | |
| #define | DT_MAP_ENTRY_HAS_PARENT_ADDRESS(node_id, prop, entry_idx) |
| Checks if the mapping entry has any parent addresses. | |
| #define | DT_MAP_ENTRY_PARENT_ADDRESS_BY_IDX(node_id, prop, entry_idx, param_idx) |
| Get the parent address element from a mapping entry, by index. | |
| #define | DT_MAP_ENTRY_PARENT_ADDRESS(node_id, prop, entry_idx) |
| Get the first parent address element from a mapping entry. | |
| #define | DT_MAP_ENTRY_PARENT_SPECIFIER_LEN(node_id, prop, entry_idx) |
| Get the number of parent specifiers. | |
| #define | DT_MAP_ENTRY_HAS_PARENT_SPECIFIER_BY_IDX(node_id, prop, entry_idx, param_idx) |
| Checks if the parent specifier has the specified index. | |
| #define | DT_MAP_ENTRY_HAS_PARENT_SPECIFIER(node_id, prop, entry_idx) |
| Checks if the mapping entry has any parent specifiers. | |
| #define | DT_MAP_ENTRY_PARENT_SPECIFIER_BY_IDX(node_id, prop, entry_idx, param_idx) |
| Get the parent specifier element from a mapping entry, by index. | |
| #define | DT_MAP_ENTRY_PARENT_SPECIFIER(node_id, prop, entry_idx) |
| Get the first parent specifier element from a mapping entry. | |
| #define | DT_FOREACH_MAP_ENTRY(node_id, prop, fn) |
Invokes fn for each map entry in the map. | |
| #define | DT_FOREACH_MAP_ENTRY_SEP(node_id, prop, fn, sep) |
Invokes fn for each map entry in the map with separator. | |
| #define | DT_FOREACH_MAP_ENTRY_VARGS(node_id, prop, fn, ...) |
Invokes fn for each map entry in the map with separator. | |
| #define | DT_FOREACH_MAP_ENTRY_SEP_VARGS(node_id, prop, fn, sep, ...) |
Invokes fn for each map entry in the map with separator. | |
| #define DT_FOREACH_MAP_ENTRY | ( | node_id, | |
| prop, | |||
| fn ) |
#include <zephyr/devicetree/map.h>
Invokes fn for each map entry in the map.
| node_id | node identifier |
| prop | The map property name. i.e. "gpio_map" |
| fn | macro to invoke |
| #define DT_FOREACH_MAP_ENTRY_SEP | ( | node_id, | |
| prop, | |||
| fn, | |||
| sep ) |
#include <zephyr/devicetree/map.h>
Invokes fn for each map entry in the map with separator.
| node_id | node identifier |
| prop | The map property name. i.e. "gpio_map" |
| fn | macro to invoke |
| sep | Separator (e.g. comma or semicolon). Must be in parentheses; this is required to enable providing a comma as separator. |
| #define DT_FOREACH_MAP_ENTRY_SEP_VARGS | ( | node_id, | |
| prop, | |||
| fn, | |||
| sep, | |||
| ... ) |
#include <zephyr/devicetree/map.h>
Invokes fn for each map entry in the map with separator.
| node_id | node identifier |
| prop | The map property name. i.e. "gpio_map" |
| fn | macro to invoke |
| sep | Separator (e.g. comma or semicolon). Must be in parentheses; this is required to enable providing a comma as separator. |
| ... | variable number of arguments to pass to fn |
| #define DT_FOREACH_MAP_ENTRY_VARGS | ( | node_id, | |
| prop, | |||
| fn, | |||
| ... ) |
#include <zephyr/devicetree/map.h>
Invokes fn for each map entry in the map with separator.
| node_id | node identifier |
| prop | The map property name. i.e. "gpio_map" |
| fn | macro to invoke |
| ... | variable number of arguments to pass to fn |
| #define DT_MAP_ENTRY_CHILD_ADDRESS | ( | node_id, | |
| prop, | |||
| entry_idx ) |
#include <zephyr/devicetree/map.h>
Get the first child address element from a mapping entry.
Equivalent to calling DT_MAP_ENTRY_CHILD_ADDRESS_BY_IDX with param_idx set to zero.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| #define DT_MAP_ENTRY_CHILD_ADDRESS_BY_IDX | ( | node_id, | |
| prop, | |||
| entry_idx, | |||
| param_idx ) |
#include <zephyr/devicetree/map.h>
Get the child address element from a mapping entry, by index.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| param_idx | The index in the child addresses. |
| #define DT_MAP_ENTRY_CHILD_ADDRESS_LEN | ( | node_id, | |
| prop, | |||
| entry_idx ) |
#include <zephyr/devicetree/map.h>
Get the number of child addresses.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| #define DT_MAP_ENTRY_CHILD_SPECIFIER | ( | node_id, | |
| prop, | |||
| entry_idx ) |
#include <zephyr/devicetree/map.h>
Get the first child specifier element from a mapping entry.
Equivalent to calling DT_MAP_ENTRY_CHILD_SPECIFIER_BY_IDX with param_idx set to zero.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| #define DT_MAP_ENTRY_CHILD_SPECIFIER_BY_IDX | ( | node_id, | |
| prop, | |||
| entry_idx, | |||
| param_idx ) |
#include <zephyr/devicetree/map.h>
Get the child specifier element from a mapping entry, by index.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| param_idx | The index in the child specifiers. |
| #define DT_MAP_ENTRY_CHILD_SPECIFIER_LEN | ( | node_id, | |
| prop, | |||
| entry_idx ) |
#include <zephyr/devicetree/map.h>
Get the number of child specifiers.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| #define DT_MAP_ENTRY_HAS_CHILD_ADDRESS | ( | node_id, | |
| prop, | |||
| entry_idx ) |
#include <zephyr/devicetree/map.h>
Checks if the mapping entry has any child addresses.
Equivalent to calling DT_MAP_ENTRY_HAS_CHILD_ADDRESS_BY_IDX with param_idx set to zero.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| True | if the child address has the index, otherwise 0. |
| #define DT_MAP_ENTRY_HAS_CHILD_ADDRESS_BY_IDX | ( | node_id, | |
| prop, | |||
| entry_idx, | |||
| param_idx ) |
#include <zephyr/devicetree/map.h>
Checks if the child address has the specified index.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| param_idx | The index in the child addresses. |
| True | if the child address has the index, otherwise 0. |
| #define DT_MAP_ENTRY_HAS_CHILD_SPECIFIER | ( | node_id, | |
| prop, | |||
| entry_idx ) |
#include <zephyr/devicetree/map.h>
Checks if the mapping entry has any child specifiers.
Equivalent to calling DT_MAP_ENTRY_HAS_CHILD_SPECIFIER_BY_IDX with param_idx set to zero.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| True | if the child specifier has the index, otherwise 0. |
| #define DT_MAP_ENTRY_HAS_CHILD_SPECIFIER_BY_IDX | ( | node_id, | |
| prop, | |||
| entry_idx, | |||
| param_idx ) |
#include <zephyr/devicetree/map.h>
Checks if the child specifier has the specified index.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| param_idx | The index in the child specifiers. |
| True | if the child specifier has the index, otherwise 0. |
| #define DT_MAP_ENTRY_HAS_PARENT_ADDRESS | ( | node_id, | |
| prop, | |||
| entry_idx ) |
#include <zephyr/devicetree/map.h>
Checks if the mapping entry has any parent addresses.
Equivalent to calling DT_MAP_ENTRY_HAS_PARENT_ADDRESS_BY_IDX with param_idx set to zero.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| True | if the parent address has the index, otherwise 0. |
| #define DT_MAP_ENTRY_HAS_PARENT_ADDRESS_BY_IDX | ( | node_id, | |
| prop, | |||
| entry_idx, | |||
| param_idx ) |
#include <zephyr/devicetree/map.h>
Checks if the parent address has the specified index.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| param_idx | The index in the parent addresses. |
| True | if the parent address has the index, otherwise 0. |
| #define DT_MAP_ENTRY_HAS_PARENT_SPECIFIER | ( | node_id, | |
| prop, | |||
| entry_idx ) |
#include <zephyr/devicetree/map.h>
Checks if the mapping entry has any parent specifiers.
Equivalent to calling DT_MAP_ENTRY_HAS_PARENT_SPECIFIER_BY_IDX with param_idx set to zero.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| True | if the parent specifier has the index, otherwise 0. |
| #define DT_MAP_ENTRY_HAS_PARENT_SPECIFIER_BY_IDX | ( | node_id, | |
| prop, | |||
| entry_idx, | |||
| param_idx ) |
#include <zephyr/devicetree/map.h>
Checks if the parent specifier has the specified index.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| param_idx | The index in the parent specifiers. |
| True | if the parent specifier has the index, otherwise 0. |
| #define DT_MAP_ENTRY_PARENT | ( | node_id, | |
| prop ) |
#include <zephyr/devicetree/map.h>
Extracts the parent node from the first mapping entry.
Equivalent to calling DT_MAP_ENTRY_PARENT_BY_IDX with entry_idx set to zero.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| #define DT_MAP_ENTRY_PARENT_ADDRESS | ( | node_id, | |
| prop, | |||
| entry_idx ) |
#include <zephyr/devicetree/map.h>
Get the first parent address element from a mapping entry.
Equivalent to calling DT_MAP_ENTRY_PARENT_ADDRESS_BY_IDX with param_idx set to zero.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| The | element of the specified position of the parent addresses. |
| #define DT_MAP_ENTRY_PARENT_ADDRESS_BY_IDX | ( | node_id, | |
| prop, | |||
| entry_idx, | |||
| param_idx ) |
#include <zephyr/devicetree/map.h>
Get the parent address element from a mapping entry, by index.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| param_idx | The index in the parent addresses. |
| The | element of the specified position of the parent addresses. |
| #define DT_MAP_ENTRY_PARENT_ADDRESS_LEN | ( | node_id, | |
| prop, | |||
| entry_idx ) |
#include <zephyr/devicetree/map.h>
Get the number of parent addresses.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| #define DT_MAP_ENTRY_PARENT_BY_IDX | ( | node_id, | |
| prop, | |||
| entry_idx ) |
#include <zephyr/devicetree/map.h>
Extracts the parent node from a mapping entry.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| #define DT_MAP_ENTRY_PARENT_SPECIFIER | ( | node_id, | |
| prop, | |||
| entry_idx ) |
#include <zephyr/devicetree/map.h>
Get the first parent specifier element from a mapping entry.
Equivalent to calling DT_MAP_ENTRY_PARENT_SPECIFIER_BY_IDX with param_idx set to zero.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| The | element of the specified position of the parent specifiers. |
| #define DT_MAP_ENTRY_PARENT_SPECIFIER_BY_IDX | ( | node_id, | |
| prop, | |||
| entry_idx, | |||
| param_idx ) |
#include <zephyr/devicetree/map.h>
Get the parent specifier element from a mapping entry, by index.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| param_idx | The index in the parent specifiers. |
| The | element of the specified position of the parent specifiers. |
| #define DT_MAP_ENTRY_PARENT_SPECIFIER_LEN | ( | node_id, | |
| prop, | |||
| entry_idx ) |
#include <zephyr/devicetree/map.h>
Get the number of parent specifiers.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | The mapping entry index. |
| The | number of parent specifiers. |
| #define DT_MAP_HAS_ENTRY | ( | node_id, | |
| prop ) |
#include <zephyr/devicetree/map.h>
Checks if the map property has any entries.
Equivalent to calling DT_MAP_HAS_ENTRY_BY_IDX with entry_idx set to zero.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
idx is a valid index into the given property, and 0 otherwise. | #define DT_MAP_HAS_ENTRY_BY_IDX | ( | node_id, | |
| prop, | |||
| entry_idx ) |
#include <zephyr/devicetree/map.h>
Is index idx valid for an array type property?
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| entry_idx | index to check |
idx is a valid index into the given property, and 0 otherwise. | #define DT_MAP_LEN | ( | node_id, | |
| prop ) |
#include <zephyr/devicetree/map.h>
Returns the number of maps for the given property.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| #define DT_NODE_HAS_MAP | ( | node_id, | |
| prop ) |
#include <zephyr/devicetree/map.h>
Returns the existence of map property.
| node_id | The node identifier. |
| prop | The map property name. i.e. "gpio_map" |
| True | if the map exists, otherwise 0. |