|
Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
|
Macros | |
| #define | DT_NODE_BY_PARTITION_LABEL(label) |
| Get a node identifier for a partition with a given label property. | |
| #define | DT_HAS_PARTITION_LABEL(label) |
| Test if a partition with a given label property exists. | |
| #define | DT_PARTITION_EXISTS(node_id) |
| Test if zephyr,mapped-partition, fixed-partitions or fixed-subpartitions compatible node exists. | |
| #define | DT_PARTITION_ID(node_id) |
| Get a numeric identifier for a partition. | |
| #define | DT_MEM_FROM_PARTITION(node_id) |
| Get the node identifier of the NVM memory for a partition. | |
| #define | DT_MTD_FROM_PARTITION(node_id) |
| Get the node identifier of the NVM controller for a partition. | |
| #define | DT_PARTITION_ADDR(node_id) |
| Get the absolute address of a partition This macro can only be used with partitions of internal memory addressable by the CPU. | |
| #define DT_HAS_PARTITION_LABEL | ( | label | ) |
#include <zephyr/devicetree/partitions.h>
Test if a partition with a given label property exists.
| label | lowercase-and-underscores label property value |
| #define DT_MEM_FROM_PARTITION | ( | node_id | ) |
#include <zephyr/devicetree/partitions.h>
Get the node identifier of the NVM memory for a partition.
| node_id | node identifier for a partition node |
| #define DT_MTD_FROM_PARTITION | ( | node_id | ) |
#include <zephyr/devicetree/partitions.h>
Get the node identifier of the NVM controller for a partition.
| node_id | node identifier for a partition node |
| #define DT_NODE_BY_PARTITION_LABEL | ( | label | ) |
#include <zephyr/devicetree/partitions.h>
Get a node identifier for a partition with a given label property.
| label | lowercase-and-underscores label property value |
| #define DT_PARTITION_ADDR | ( | node_id | ) |
#include <zephyr/devicetree/partitions.h>
Get the absolute address of a partition This macro can only be used with partitions of internal memory addressable by the CPU.
Otherwise, it may produce a compile-time error, such as: '__REG_IDX_0_VAL_ADDRESS' undeclared.
| node_id | node identifier for a partition node |
| #define DT_PARTITION_EXISTS | ( | node_id | ) |
#include <zephyr/devicetree/partitions.h>
Test if zephyr,mapped-partition, fixed-partitions or fixed-subpartitions compatible node exists.
| node_id | DTS node to test |
| #define DT_PARTITION_ID | ( | node_id | ) |
#include <zephyr/devicetree/partitions.h>
Get a numeric identifier for a partition.
| node_id | node identifier for a partition node |