|
Zephyr Project API 4.2.99
A Scalable Open Source RTOS
|
Macros | |
| #define | DT_NVMEM_CELLS_HAS_IDX(node_id, idx) DT_PROP_HAS_IDX(node_id, nvmem_cells, idx) |
| Test if a node has an nvmem-cells phandle-array property at a given index. | |
| #define | DT_NVMEM_CELLS_HAS_NAME(node_id, name) DT_PROP_HAS_NAME(node_id, nvmem_cells, name) |
| Test if a node has an nvmem-cell-names array property hold a given name. | |
| #define | DT_NUM_NVMEM_CELLS(node_id) DT_PROP_LEN(node_id, nvmem_cells) |
| Get the number of elements in an nvmem-cells property. | |
| #define | DT_NVMEM_CELL_BY_IDX(node_id, idx) DT_PHANDLE_BY_IDX(node_id, nvmem_cells, idx) |
| Get the node identifier for the NVMEM cell from the nvmem-cells property by index. | |
| #define | DT_NVMEM_CELL(node_id) DT_NVMEM_CELL_BY_IDX(node_id, 0) |
| Equivalent to DT_NVMEM_CELL_BY_IDX(node_id, 0) | |
| #define | DT_NVMEM_CELL_BY_NAME(node_id, name) DT_PHANDLE_BY_NAME(node_id, nvmem_cells, name) |
| Get the node identifier for the NVMEM cell from the nvmem-cells property by name. | |
| #define | DT_INST_NVMEM_CELLS_HAS_IDX(inst, idx) DT_NVMEM_CELLS_HAS_IDX(DT_DRV_INST(inst), idx) |
| Equivalent to DT_NVMEM_CELLS_HAS_IDX(DT_DRV_INST(inst), idx) | |
| #define | DT_INST_NVMEM_CELLS_HAS_NAME(inst, name) DT_NVMEM_CELLS_HAS_NAME(DT_DRV_INST(inst), name) |
| Equivalent to DT_NVMEM_CELLS_HAS_NAME(DT_DRV_INST(inst), name) | |
| #define | DT_INST_NUM_NVMEM_CELLS(inst) DT_NUM_NVMEM_CELLS(DT_DRV_INST(inst)) |
| Equivalent to DT_NUM_NVMEM_CELLS(DT_DRV_INST(inst)) | |
| #define | DT_INST_NVMEM_CELL_BY_IDX(inst, idx) DT_NVMEM_CELL_BY_IDX(DT_DRV_INST(inst), idx) |
| Get the node identifier for the controller phandle from an nvmem-cells phandle-array property at an index. | |
| #define | DT_INST_NVMEM_CELL(inst) DT_INST_NVMEM_CELL_BY_IDX(inst, 0) |
| Equivalent to DT_INST_NVMEM_CELL_BY_IDX(inst, 0) | |
| #define | DT_INST_NVMEM_CELL_BY_NAME(inst, name) DT_NVMEM_CELL_BY_NAME(DT_DRV_INST(inst), name) |
| Get the node identifier for the controller phandle from an nvmem-cells phandle-array property by name. | |
| #define | DT_MTD_FROM_NVMEM_CELL(node_id) DT_GPARENT(node_id) |
| Get the node identifier of the memory controller for an nvmem cell. | |
| #define DT_INST_NUM_NVMEM_CELLS | ( | inst | ) | DT_NUM_NVMEM_CELLS(DT_DRV_INST(inst)) |
#include <include/zephyr/devicetree/nvmem.h>
Equivalent to DT_NUM_NVMEM_CELLS(DT_DRV_INST(inst))
| inst | instance number |
| #define DT_INST_NVMEM_CELL | ( | inst | ) | DT_INST_NVMEM_CELL_BY_IDX(inst, 0) |
#include <include/zephyr/devicetree/nvmem.h>
Equivalent to DT_INST_NVMEM_CELL_BY_IDX(inst, 0)
| inst | instance number |
| #define DT_INST_NVMEM_CELL_BY_IDX | ( | inst, | |
| idx | |||
| ) | DT_NVMEM_CELL_BY_IDX(DT_DRV_INST(inst), idx) |
#include <include/zephyr/devicetree/nvmem.h>
Get the node identifier for the controller phandle from an nvmem-cells phandle-array property at an index.
| inst | instance number |
| idx | logical index into nvmem-cells |
| #define DT_INST_NVMEM_CELL_BY_NAME | ( | inst, | |
| name | |||
| ) | DT_NVMEM_CELL_BY_NAME(DT_DRV_INST(inst), name) |
#include <include/zephyr/devicetree/nvmem.h>
Get the node identifier for the controller phandle from an nvmem-cells phandle-array property by name.
| inst | instance number |
| name | lowercase-and-underscores name of an nvmem-cells element as defined by the node's nvmem-cell-names property |
| #define DT_INST_NVMEM_CELLS_HAS_IDX | ( | inst, | |
| idx | |||
| ) | DT_NVMEM_CELLS_HAS_IDX(DT_DRV_INST(inst), idx) |
#include <include/zephyr/devicetree/nvmem.h>
Equivalent to DT_NVMEM_CELLS_HAS_IDX(DT_DRV_INST(inst), idx)
| inst | DT_DRV_COMPAT instance number; may or may not have any nvmem-cells property |
| idx | index of an nvmem-cells property phandle-array whose existence to check |
| #define DT_INST_NVMEM_CELLS_HAS_NAME | ( | inst, | |
| name | |||
| ) | DT_NVMEM_CELLS_HAS_NAME(DT_DRV_INST(inst), name) |
#include <include/zephyr/devicetree/nvmem.h>
Equivalent to DT_NVMEM_CELLS_HAS_NAME(DT_DRV_INST(inst), name)
| inst | DT_DRV_COMPAT instance number; may or may not have any nvmem-cell-names property. |
| name | lowercase-and-underscores nvmem-cell-names cell value name to check |
| #define DT_MTD_FROM_NVMEM_CELL | ( | node_id | ) | DT_GPARENT(node_id) |
#include <include/zephyr/devicetree/nvmem.h>
Get the node identifier of the memory controller for an nvmem cell.
Example devicetree fragment:
Example usage:
| node_id | node identifier for an nvmem cell node |
| #define DT_NUM_NVMEM_CELLS | ( | node_id | ) | DT_PROP_LEN(node_id, nvmem_cells) |
#include <include/zephyr/devicetree/nvmem.h>
Get the number of elements in an nvmem-cells property.
Example devicetree fragment:
Example usage:
| node_id | node identifier with an nvmem-cells property |
| #define DT_NVMEM_CELL | ( | node_id | ) | DT_NVMEM_CELL_BY_IDX(node_id, 0) |
#include <include/zephyr/devicetree/nvmem.h>
Equivalent to DT_NVMEM_CELL_BY_IDX(node_id, 0)
| node_id | node identifier |
| #define DT_NVMEM_CELL_BY_IDX | ( | node_id, | |
| idx | |||
| ) | DT_PHANDLE_BY_IDX(node_id, nvmem_cells, idx) |
#include <include/zephyr/devicetree/nvmem.h>
Get the node identifier for the NVMEM cell from the nvmem-cells property by index.
Example devicetree fragment:
Example usage:
| node_id | node identifier for a node with a nvmem-cells property |
| idx | index into the nvmem-cells property |
| #define DT_NVMEM_CELL_BY_NAME | ( | node_id, | |
| name | |||
| ) | DT_PHANDLE_BY_NAME(node_id, nvmem_cells, name) |
#include <include/zephyr/devicetree/nvmem.h>
Get the node identifier for the NVMEM cell from the nvmem-cells property by name.
Example devicetree fragment:
Example usage:
| node_id | node identifier for a node with a nvmem-cells property |
| name | lowercase-and-underscores name of an nvmem-cells element as defined by the node's nvmem-cell-names property |
| #define DT_NVMEM_CELLS_HAS_IDX | ( | node_id, | |
| idx | |||
| ) | DT_PROP_HAS_IDX(node_id, nvmem_cells, idx) |
#include <include/zephyr/devicetree/nvmem.h>
Test if a node has an nvmem-cells phandle-array property at a given index.
This expands to 1 if the given index is a valid nvmem-cells property phandle-array index. Otherwise, it expands to 0.
Example devicetree fragment:
Example usage:
| node_id | node identifier; may or may not have any nvmem-cells property |
| idx | index of a nvmem-cells property phandle-array whose existence to check |
| #define DT_NVMEM_CELLS_HAS_NAME | ( | node_id, | |
| name | |||
| ) | DT_PROP_HAS_NAME(node_id, nvmem_cells, name) |
#include <include/zephyr/devicetree/nvmem.h>
Test if a node has an nvmem-cell-names array property hold a given name.
This expands to 1 if the name is available as nvmem-cells-name array property cell. Otherwise, it expands to 0.
Example devicetree fragment:
Example usage:
| node_id | node identifier; may or may not have any nvmem-cell-names property |
| name | lowercase-and-underscores nvmem-cell-names cell value name to check |