Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
|
MSPI Devicetree related macros . More...
Macros | |
#define | MSPI_DEVICE_CONFIG_DT(mspi_dev) |
Structure initializer for struct mspi_dev_cfg from devicetree. | |
#define | MSPI_DEVICE_CONFIG_DT_INST(inst) |
Structure initializer for struct mspi_dev_cfg from devicetree instance. | |
#define | MSPI_XIP_CONFIG_DT_NO_CHECK(mspi_dev) |
Structure initializer for struct mspi_xip_cfg from devicetree. | |
#define | MSPI_XIP_CONFIG_DT(mspi_dev) |
Structure initializer for struct mspi_xip_cfg from devicetree. | |
#define | MSPI_XIP_CONFIG_DT_INST(inst) |
Structure initializer for struct mspi_xip_cfg from devicetree instance. | |
#define | MSPI_SCRAMBLE_CONFIG_DT_NO_CHECK(mspi_dev) |
Structure initializer for struct mspi_scramble_cfg from devicetree. | |
#define | MSPI_SCRAMBLE_CONFIG_DT(mspi_dev) |
Structure initializer for struct mspi_scramble_cfg from devicetree. | |
#define | MSPI_SCRAMBLE_CONFIG_DT_INST(inst) |
Structure initializer for struct mspi_scramble_cfg from devicetree instance. | |
#define | MSPI_DEVICE_ID_DT(mspi_dev) |
Structure initializer for struct mspi_dev_id from devicetree. | |
#define | MSPI_DEVICE_ID_DT_INST(inst) |
Structure initializer for struct mspi_dev_id from devicetree instance. | |
#define | MSPI_DEV_CE_GPIOS_DT_SPEC_GET(mspi_dev) |
Get a struct gpio_dt_spec for a MSPI device's chip enable pin. | |
#define | MSPI_DEV_CE_GPIOS_DT_SPEC_INST_GET(inst) |
Get a struct gpio_dt_spec for a MSPI device's chip enable pin. | |
#define | MSPI_CE_GPIOS_DT_SPEC_GET(node_id) |
Get an array of struct gpio_dt_spec from devicetree for a MSPI controller. | |
#define | MSPI_CE_GPIOS_DT_SPEC_INST_GET(inst) |
Get an array of struct gpio_dt_spec for a MSPI controller. | |
#define | MSPI_CE_CONTROL_INIT(node_id, delay_) |
Initialize and get a pointer to a mspi_ce_control from a devicetree node identifier. | |
#define | MSPI_CE_CONTROL_INIT_INST(inst, delay_) |
Get a pointer to a mspi_ce_control from a devicetree node. | |
MSPI Devicetree related macros .
#define MSPI_CE_CONTROL_INIT | ( | node_id, | |
delay_ ) |
#include <zephyr/drivers/mspi/devicetree.h>
Initialize and get a pointer to a mspi_ce_control
from a devicetree node identifier.
This helper is useful for initializing a device on a MSPI bus. It initializes a struct mspi_ce_control and returns a pointer to it. Here, node_id
is a node identifier for a MSPI device, not a MSPI controller.
Example devicetree fragment:
Example usage:
This example is equivalent to:
node_id | Devicetree node identifier for a device on a MSPI bus |
delay_ | The delay field to set in the mspi_ce_control |
mspi_ce_control
structure #define MSPI_CE_CONTROL_INIT_INST | ( | inst, | |
delay_ ) |
#include <zephyr/drivers/mspi/devicetree.h>
Get a pointer to a mspi_ce_control
from a devicetree node.
This is equivalent to MSPI_CE_CONTROL_INIT(DT_DRV_INST(inst), delay)
.
Therefore, DT_DRV_COMPAT
must already be defined before using this macro.
inst | Devicetree node instance number |
delay_ | The delay field to set in the mspi_ce_control |
mspi_ce_control
structure #define MSPI_CE_GPIOS_DT_SPEC_GET | ( | node_id | ) |
#include <zephyr/drivers/mspi/devicetree.h>
Get an array of struct gpio_dt_spec
from devicetree for a MSPI controller.
This helper macro check whether ce_gpios
binding exist first before calling GPIO_DT_SPEC_GET_BY_IDX
and expand to an array of gpio_dt_spec.
node_id | Devicetree node identifier for the MSPI controller |
#define MSPI_CE_GPIOS_DT_SPEC_INST_GET | ( | inst | ) |
#include <zephyr/drivers/mspi/devicetree.h>
Get an array of struct gpio_dt_spec
for a MSPI controller.
This is equivalent to MSPI_CE_GPIOS_DT_SPEC_GET(DT_DRV_INST(inst))
.
inst | Devicetree instance number |
#define MSPI_DEV_CE_GPIOS_DT_SPEC_GET | ( | mspi_dev | ) |
#include <zephyr/drivers/mspi/devicetree.h>
Get a struct gpio_dt_spec
for a MSPI device's chip enable pin.
Example devicetree fragment:
Example usage:
mspi_dev | a MSPI device node identifier |
#define MSPI_DEV_CE_GPIOS_DT_SPEC_INST_GET | ( | inst | ) |
#include <zephyr/drivers/mspi/devicetree.h>
Get a struct gpio_dt_spec
for a MSPI device's chip enable pin.
This is equivalent to MSPI_DEV_CE_GPIOS_DT_SPEC_GET(DT_DRV_INST(inst))
.
inst | Devicetree instance number |
#define MSPI_DEVICE_CONFIG_DT | ( | mspi_dev | ) |
#include <zephyr/drivers/mspi/devicetree.h>
Structure initializer for struct mspi_dev_cfg
from devicetree.
This helper macro expands to a static initializer for a struct mspi_dev_cfg
by reading the relevant data from the devicetree.
mspi_dev | Devicetree node identifier for the MSPI device whose struct mspi_dev_cfg to create an initializer for |
#define MSPI_DEVICE_CONFIG_DT_INST | ( | inst | ) |
#include <zephyr/drivers/mspi/devicetree.h>
Structure initializer for struct mspi_dev_cfg
from devicetree instance.
This is equivalent to MSPI_DEVICE_CONFIG_DT(DT_DRV_INST(inst))
.
inst | Devicetree instance number |
#define MSPI_DEVICE_ID_DT | ( | mspi_dev | ) |
#include <zephyr/drivers/mspi/devicetree.h>
Structure initializer for struct mspi_dev_id
from devicetree.
This helper macro expands to a static initializer for a struct mspi_dev_id
by reading the relevant data from the devicetree.
mspi_dev | Devicetree node identifier for the MSPI device whose struct mspi_dev_id to create an initializer for |
#define MSPI_DEVICE_ID_DT_INST | ( | inst | ) |
#include <zephyr/drivers/mspi/devicetree.h>
Structure initializer for struct mspi_dev_id
from devicetree instance.
This is equivalent to MSPI_DEVICE_ID_DT(DT_DRV_INST(inst))
.
inst | Devicetree instance number |
#define MSPI_SCRAMBLE_CONFIG_DT | ( | mspi_dev | ) |
#include <zephyr/drivers/mspi/devicetree.h>
Structure initializer for struct mspi_scramble_cfg
from devicetree.
This helper macro check whether scramble_config
binding exist first before calling MSPI_SCRAMBLE_CONFIG_DT_NO_CHECK
.
mspi_dev | Devicetree node identifier for the MSPI device whose struct mspi_scramble_cfg to create an initializer for |
#define MSPI_SCRAMBLE_CONFIG_DT_INST | ( | inst | ) |
#include <zephyr/drivers/mspi/devicetree.h>
Structure initializer for struct mspi_scramble_cfg
from devicetree instance.
This is equivalent to MSPI_SCRAMBLE_CONFIG_DT(DT_DRV_INST(inst))
.
inst | Devicetree instance number |
#define MSPI_SCRAMBLE_CONFIG_DT_NO_CHECK | ( | mspi_dev | ) |
#include <zephyr/drivers/mspi/devicetree.h>
Structure initializer for struct mspi_scramble_cfg
from devicetree.
This helper macro expands to a static initializer for a struct mspi_scramble_cfg
by reading the relevant data from the devicetree.
mspi_dev | Devicetree node identifier for the MSPI device whose struct mspi_scramble_cfg to create an initializer for |
#define MSPI_XIP_CONFIG_DT | ( | mspi_dev | ) |
#include <zephyr/drivers/mspi/devicetree.h>
Structure initializer for struct mspi_xip_cfg
from devicetree.
This helper macro check whether xip_config
binding exist first before calling MSPI_XIP_CONFIG_DT_NO_CHECK
.
mspi_dev | Devicetree node identifier for the MSPI device whose struct mspi_xip_cfg to create an initializer for |
#define MSPI_XIP_CONFIG_DT_INST | ( | inst | ) |
#include <zephyr/drivers/mspi/devicetree.h>
Structure initializer for struct mspi_xip_cfg
from devicetree instance.
This is equivalent to MSPI_XIP_CONFIG_DT(DT_DRV_INST(inst))
.
inst | Devicetree instance number |
#define MSPI_XIP_CONFIG_DT_NO_CHECK | ( | mspi_dev | ) |
#include <zephyr/drivers/mspi/devicetree.h>
Structure initializer for struct mspi_xip_cfg
from devicetree.
This helper macro expands to a static initializer for a struct mspi_xip_cfg
by reading the relevant data from the devicetree.
mspi_dev | Devicetree node identifier for the MSPI device whose struct mspi_xip_cfg to create an initializer for |