Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mspi.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025, Ambiq Micro Inc. <www.ambiq.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
13#ifndef ZEPHYR_INCLUDE_MSPI_H_
14#define ZEPHYR_INCLUDE_MSPI_H_
15
16#include <errno.h>
17
18#include <zephyr/sys/__assert.h>
19#include <zephyr/types.h>
20#include <zephyr/kernel.h>
21#include <zephyr/device.h>
22#include <zephyr/drivers/gpio.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
45
53
76
93
103
111
119
131
143
151
161
169
193
201
214
219#ifdef __cplusplus
220 /* For C++ compatibility. */
221 uint8_t dummy;
222#endif
223};
224
236
262
268 const struct device *bus;
271};
272
314
330
344
375
393
425
449
459
469
477typedef void (*mspi_callback_handler_t)(struct mspi_callback_context *mspi_cb_ctx, ...);
478
484typedef int (*mspi_api_config)(const struct mspi_dt_spec *spec);
485
486typedef int (*mspi_api_dev_config)(const struct device *controller,
487 const struct mspi_dev_id *dev_id,
488 const enum mspi_dev_cfg_mask param_mask,
489 const struct mspi_dev_cfg *cfg);
490
491typedef int (*mspi_api_get_channel_status)(const struct device *controller, uint8_t ch);
492
493typedef int (*mspi_api_transceive)(const struct device *controller,
494 const struct mspi_dev_id *dev_id,
495 const struct mspi_xfer *req);
496
497typedef int (*mspi_api_register_callback)(const struct device *controller,
498 const struct mspi_dev_id *dev_id,
499 const enum mspi_bus_event evt_type,
501 struct mspi_callback_context *ctx);
502
503typedef int (*mspi_api_xip_config)(const struct device *controller,
504 const struct mspi_dev_id *dev_id,
505 const struct mspi_xip_cfg *xip_cfg);
506
507typedef int (*mspi_api_scramble_config)(const struct device *controller,
508 const struct mspi_dev_id *dev_id,
509 const struct mspi_scramble_cfg *scramble_cfg);
510
511typedef int (*mspi_api_timing_config)(const struct device *controller,
512 const struct mspi_dev_id *dev_id, const uint32_t param_mask,
513 void *timing_cfg);
514
525
552__syscall int mspi_config(const struct mspi_dt_spec *spec);
553
554static inline int z_impl_mspi_config(const struct mspi_dt_spec *spec)
555{
556 const struct mspi_driver_api *api = (const struct mspi_driver_api *)spec->bus->api;
557
558 return api->config(spec);
559}
560
588__syscall int mspi_dev_config(const struct device *controller,
589 const struct mspi_dev_id *dev_id,
590 const enum mspi_dev_cfg_mask param_mask,
591 const struct mspi_dev_cfg *cfg);
592
593static inline int z_impl_mspi_dev_config(const struct device *controller,
594 const struct mspi_dev_id *dev_id,
595 const enum mspi_dev_cfg_mask param_mask,
596 const struct mspi_dev_cfg *cfg)
597{
598 const struct mspi_driver_api *api = (const struct mspi_driver_api *)controller->api;
599
600 return api->dev_config(controller, dev_id, param_mask, cfg);
601}
602
614__syscall int mspi_get_channel_status(const struct device *controller, uint8_t ch);
615
616static inline int z_impl_mspi_get_channel_status(const struct device *controller, uint8_t ch)
617{
618 const struct mspi_driver_api *api = (const struct mspi_driver_api *)controller->api;
619
620 return api->get_channel_status(controller, ch);
621}
622
654__syscall int mspi_transceive(const struct device *controller,
655 const struct mspi_dev_id *dev_id,
656 const struct mspi_xfer *req);
657
658static inline int z_impl_mspi_transceive(const struct device *controller,
659 const struct mspi_dev_id *dev_id,
660 const struct mspi_xfer *req)
661{
662 const struct mspi_driver_api *api = (const struct mspi_driver_api *)controller->api;
663
664 if (!api->transceive) {
665 return -ENOTSUP;
666 }
667
668 return api->transceive(controller, dev_id, req);
669}
670
692__syscall int mspi_xip_config(const struct device *controller,
693 const struct mspi_dev_id *dev_id,
694 const struct mspi_xip_cfg *cfg);
695
696static inline int z_impl_mspi_xip_config(const struct device *controller,
697 const struct mspi_dev_id *dev_id,
698 const struct mspi_xip_cfg *cfg)
699{
700 const struct mspi_driver_api *api = (const struct mspi_driver_api *)controller->api;
701
702 if (!api->xip_config) {
703 return -ENOTSUP;
704 }
705
706 return api->xip_config(controller, dev_id, cfg);
707}
708
724__syscall int mspi_scramble_config(const struct device *controller,
725 const struct mspi_dev_id *dev_id,
726 const struct mspi_scramble_cfg *cfg);
727
728static inline int z_impl_mspi_scramble_config(const struct device *controller,
729 const struct mspi_dev_id *dev_id,
730 const struct mspi_scramble_cfg *cfg)
731{
732 const struct mspi_driver_api *api = (const struct mspi_driver_api *)controller->api;
733
734 if (!api->scramble_config) {
735 return -ENOTSUP;
736 }
737
738 return api->scramble_config(controller, dev_id, cfg);
739}
740
757__syscall int mspi_timing_config(const struct device *controller,
758 const struct mspi_dev_id *dev_id,
759 const uint32_t param_mask, void *cfg);
760
761static inline int z_impl_mspi_timing_config(const struct device *controller,
762 const struct mspi_dev_id *dev_id,
763 const uint32_t param_mask, void *cfg)
764{
765 const struct mspi_driver_api *api = (const struct mspi_driver_api *)controller->api;
766
767 if (!api->timing_config) {
768 return -ENOTSUP;
769 }
770
771 return api->timing_config(controller, dev_id, param_mask, cfg);
772}
773
796static inline int mspi_register_callback(const struct device *controller,
797 const struct mspi_dev_id *dev_id,
798 const enum mspi_bus_event evt_type,
800 struct mspi_callback_context *ctx)
801{
802 const struct mspi_driver_api *api = (const struct mspi_driver_api *)controller->api;
803
804 if (!api->register_callback) {
805 return -ENOTSUP;
806 }
807
808 return api->register_callback(controller, dev_id, evt_type, cb, ctx);
809}
810
813#ifdef __cplusplus
814}
815#endif
816
818
824
828#define MSPI_XIP_CFG_STRUCT_DECLARE(_name) \
829 IF_ENABLED(CONFIG_MSPI_XIP, (struct mspi_xip_cfg _name;))
830
834#define MSPI_XIP_BASE_ADDR_DECLARE(_name) \
835 IF_ENABLED(CONFIG_MSPI_XIP, (uint32_t _name;))
836
840#define MSPI_SCRAMBLE_CFG_STRUCT_DECLARE(_name) \
841 IF_ENABLED(CONFIG_MSPI_SCRAMBLE, (struct mspi_scramble_cfg _name;))
842
846#define MSPI_TIMING_CFG_STRUCT_DECLARE(_name) \
847 IF_ENABLED(CONFIG_MSPI_TIMING, (mspi_timing_cfg _name;))
848
852#define MSPI_TIMING_PARAM_DECLARE(_name) \
853 IF_ENABLED(CONFIG_MSPI_TIMING, (mspi_timing_param _name;))
854
858#define MSPI_OPTIONAL_CFG_STRUCT_INIT(code, _name, _object) \
859 IF_ENABLED(code, (._name = _object,))
860
864#define MSPI_XIP_BASE_ADDR_INIT(_name, _bus) \
865 IF_ENABLED(CONFIG_MSPI_XIP, (._name = DT_REG_ADDR_BY_IDX(_bus, 1),))
866
872#include <zephyr/syscalls/mspi.h>
873#endif /* ZEPHYR_INCLUDE_MSPI_H_ */
Main header file for GPIO driver API.
System error numbers.
void(* mspi_callback_handler_t)(struct mspi_callback_context *mspi_cb_ctx,...)
Define the application callback handler function signature.
Definition mspi.h:477
static int mspi_register_callback(const struct device *controller, const struct mspi_dev_id *dev_id, const enum mspi_bus_event evt_type, mspi_callback_handler_t cb, struct mspi_callback_context *ctx)
Register the mspi callback functions.
Definition mspi.h:796
int mspi_config(const struct mspi_dt_spec *spec)
Configure a MSPI controller.
int mspi_get_channel_status(const struct device *controller, uint8_t ch)
Query to see if it a channel is ready.
mspi_timing_param
Stub for timing parameter.
Definition mspi.h:211
int mspi_dev_config(const struct device *controller, const struct mspi_dev_id *dev_id, const enum mspi_dev_cfg_mask param_mask, const struct mspi_dev_cfg *cfg)
Configure a MSPI controller with device specific parameters.
int mspi_xip_config(const struct device *controller, const struct mspi_dev_id *dev_id, const struct mspi_xip_cfg *cfg)
Configure a MSPI XIP settings.
int mspi_scramble_config(const struct device *controller, const struct mspi_dev_id *dev_id, const struct mspi_scramble_cfg *cfg)
Configure a MSPI scrambling settings.
int mspi_timing_config(const struct device *controller, const struct mspi_dev_id *dev_id, const uint32_t param_mask, void *cfg)
Configure a MSPI timing settings.
@ MSPI_TIMING_PARAM_DUMMY
Definition mspi.h:212
mspi_xip_permit
MSPI XIP access permissions.
Definition mspi.h:197
int(* mspi_api_scramble_config)(const struct device *controller, const struct mspi_dev_id *dev_id, const struct mspi_scramble_cfg *scramble_cfg)
Definition mspi.h:507
mspi_xfer_mode
MSPI transfer modes.
Definition mspi.h:147
int(* mspi_api_transceive)(const struct device *controller, const struct mspi_dev_id *dev_id, const struct mspi_xfer *req)
Definition mspi.h:493
mspi_duplex
MSPI duplex mode.
Definition mspi.h:49
mspi_ce_polarity
MSPI chip enable polarity.
Definition mspi.h:115
int(* mspi_api_config)(const struct mspi_dt_spec *spec)
MSPI driver API definition and system call entry points.
Definition mspi.h:484
mspi_endian
MSPI Endian.
Definition mspi.h:107
mspi_op_mode
MSPI operational mode.
Definition mspi.h:41
int(* mspi_api_timing_config)(const struct device *controller, const struct mspi_dev_id *dev_id, const uint32_t param_mask, void *timing_cfg)
Definition mspi.h:511
mspi_xfer_direction
MSPI transfer directions.
Definition mspi.h:165
mspi_bus_event
MSPI bus event.
Definition mspi.h:125
mspi_xfer_priority
MSPI transfer priority This is a preliminary list of priorities that are typically used with DMA.
Definition mspi.h:156
mspi_cpp_mode
MSPI Polarity & Phase Modes.
Definition mspi.h:97
mspi_dev_cfg_mask
MSPI controller device specific configuration mask.
Definition mspi.h:173
int(* mspi_api_dev_config)(const struct device *controller, const struct mspi_dev_id *dev_id, const enum mspi_dev_cfg_mask param_mask, const struct mspi_dev_cfg *cfg)
Definition mspi.h:486
int(* mspi_api_xip_config)(const struct device *controller, const struct mspi_dev_id *dev_id, const struct mspi_xip_cfg *xip_cfg)
Definition mspi.h:503
mspi_io_mode
MSPI I/O mode capabilities Postfix like 1_4_4 stands for the number of lines used for command,...
Definition mspi.h:60
mspi_data_rate
MSPI data rate capabilities SINGLE stands for single data rate for all phases.
Definition mspi.h:86
mspi_bus_event_cb_mask
MSPI bus event callback mask This is a preliminary list same as mspi_bus_event.
Definition mspi.h:137
int(* mspi_api_register_callback)(const struct device *controller, const struct mspi_dev_id *dev_id, const enum mspi_bus_event evt_type, mspi_callback_handler_t cb, struct mspi_callback_context *ctx)
Definition mspi.h:497
int(* mspi_api_get_channel_status)(const struct device *controller, uint8_t ch)
Definition mspi.h:491
@ MSPI_XIP_READ_WRITE
Definition mspi.h:198
@ MSPI_XIP_READ_ONLY
Definition mspi.h:199
@ MSPI_DMA
Definition mspi.h:149
@ MSPI_PIO
Definition mspi.h:148
@ MSPI_FULL_DUPLEX
Definition mspi.h:51
@ MSPI_HALF_DUPLEX
Definition mspi.h:50
@ MSPI_CE_ACTIVE_HIGH
Definition mspi.h:117
@ MSPI_CE_ACTIVE_LOW
Definition mspi.h:116
@ MSPI_XFER_BIG_ENDIAN
Definition mspi.h:109
@ MSPI_XFER_LITTLE_ENDIAN
Definition mspi.h:108
@ MSPI_OP_MODE_PERIPHERAL
Definition mspi.h:43
@ MSPI_OP_MODE_CONTROLLER
Definition mspi.h:42
@ MSPI_RX
Definition mspi.h:166
@ MSPI_TX
Definition mspi.h:167
@ MSPI_BUS_EVENT_MAX
Definition mspi.h:129
@ MSPI_BUS_XFER_COMPLETE
Definition mspi.h:128
@ MSPI_BUS_ERROR
Definition mspi.h:127
@ MSPI_BUS_RESET
Definition mspi.h:126
@ MSPI_XFER_PRIORITY_HIGH
Definition mspi.h:159
@ MSPI_XFER_PRIORITY_LOW
Definition mspi.h:157
@ MSPI_XFER_PRIORITY_MEDIUM
Definition mspi.h:158
@ MSPI_CPP_MODE_3
Definition mspi.h:101
@ MSPI_CPP_MODE_1
Definition mspi.h:99
@ MSPI_CPP_MODE_2
Definition mspi.h:100
@ MSPI_CPP_MODE_0
Definition mspi.h:98
@ MSPI_DEVICE_CONFIG_CPP
Definition mspi.h:179
@ MSPI_DEVICE_CONFIG_DATA_RATE
Definition mspi.h:178
@ MSPI_DEVICE_CONFIG_RX_DUMMY
Definition mspi.h:183
@ MSPI_DEVICE_CONFIG_FREQUENCY
Definition mspi.h:176
@ MSPI_DEVICE_CONFIG_CMD_LEN
Definition mspi.h:187
@ MSPI_DEVICE_CONFIG_CE_NUM
Definition mspi.h:175
@ MSPI_DEVICE_CONFIG_IO_MODE
Definition mspi.h:177
@ MSPI_DEVICE_CONFIG_CE_POL
Definition mspi.h:181
@ MSPI_DEVICE_CONFIG_DQS
Definition mspi.h:182
@ MSPI_DEVICE_CONFIG_TX_DUMMY
Definition mspi.h:184
@ MSPI_DEVICE_CONFIG_ALL
Definition mspi.h:191
@ MSPI_DEVICE_CONFIG_WRITE_CMD
Definition mspi.h:186
@ MSPI_DEVICE_CONFIG_ADDR_LEN
Definition mspi.h:188
@ MSPI_DEVICE_CONFIG_ENDIAN
Definition mspi.h:180
@ MSPI_DEVICE_CONFIG_NONE
Definition mspi.h:174
@ MSPI_DEVICE_CONFIG_BREAK_TIME
Definition mspi.h:190
@ MSPI_DEVICE_CONFIG_MEM_BOUND
Definition mspi.h:189
@ MSPI_DEVICE_CONFIG_READ_CMD
Definition mspi.h:185
@ MSPI_IO_MODE_HEX
Definition mspi.h:71
@ MSPI_IO_MODE_QUAD_1_4_4
Definition mspi.h:67
@ MSPI_IO_MODE_OCTAL_1_8_8
Definition mspi.h:70
@ MSPI_IO_MODE_HEX_8_16_16
Definition mspi.h:73
@ MSPI_IO_MODE_SINGLE
Definition mspi.h:61
@ MSPI_IO_MODE_DUAL_1_1_2
Definition mspi.h:63
@ MSPI_IO_MODE_DUAL
Definition mspi.h:62
@ MSPI_IO_MODE_MAX
Definition mspi.h:74
@ MSPI_IO_MODE_DUAL_1_2_2
Definition mspi.h:64
@ MSPI_IO_MODE_QUAD_1_1_4
Definition mspi.h:66
@ MSPI_IO_MODE_OCTAL_1_1_8
Definition mspi.h:69
@ MSPI_IO_MODE_OCTAL
Definition mspi.h:68
@ MSPI_IO_MODE_HEX_8_8_16
Definition mspi.h:72
@ MSPI_IO_MODE_QUAD
Definition mspi.h:65
@ MSPI_DATA_RATE_SINGLE
Definition mspi.h:87
@ MSPI_DATA_RATE_S_S_D
Definition mspi.h:88
@ MSPI_DATA_RATE_MAX
Definition mspi.h:91
@ MSPI_DATA_RATE_S_D_D
Definition mspi.h:89
@ MSPI_DATA_RATE_DUAL
Definition mspi.h:90
@ MSPI_BUS_ERROR_CB
Definition mspi.h:140
@ MSPI_BUS_RESET_CB
Definition mspi.h:139
@ MSPI_BUS_XFER_COMPLETE_CB
Definition mspi.h:141
@ MSPI_BUS_NO_CB
Definition mspi.h:138
int mspi_transceive(const struct device *controller, const struct mspi_dev_id *dev_id, const struct mspi_xfer *req)
Transfer request over MSPI.
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition util_macro.h:44
#define BIT_MASK(n)
Bit mask with bits 0 through n-1 (inclusive) set, or 0 if n is 0.
Definition util_macro.h:68
#define ENOTSUP
Unsupported value.
Definition errno.h:114
Public kernel APIs.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Runtime device structure (in ROM) per driver instance.
Definition device.h:510
const void * api
Address of the API structure exposed by the device instance.
Definition device.h:516
Container for GPIO pin information specified in devicetree.
Definition gpio.h:296
MSPI callback context.
Definition mspi.h:463
struct mspi_event mspi_evt
MSPI event
Definition mspi.h:465
void * ctx
user defined context
Definition mspi.h:467
MSPI Chip Select control structure.
Definition mspi.h:360
struct gpio_dt_spec gpio
GPIO devicetree specification of CE GPIO.
Definition mspi.h:367
uint32_t delay
Delay to wait.
Definition mspi.h:373
MSPI controller configuration.
Definition mspi.h:240
bool sw_multi_periph
Software managed multi peripheral enable.
Definition mspi.h:250
uint32_t num_ce_gpios
GPIO chip-select line numbers (optional)
Definition mspi.h:254
bool dqs_support
DQS support flag.
Definition mspi.h:248
struct gpio_dt_spec * ce_group
GPIO chip select lines (optional)
Definition mspi.h:252
enum mspi_duplex duplex
Configure duplex mode.
Definition mspi.h:246
uint32_t num_periph
Peripheral number from 0 to host controller peripheral limit.
Definition mspi.h:256
uint32_t max_freq
Maximum supported frequency in MHz.
Definition mspi.h:258
enum mspi_op_mode op_mode
Configure operation mode.
Definition mspi.h:244
uint8_t channel_num
mspi channel number
Definition mspi.h:242
bool re_init
Whether to re-initialize controller.
Definition mspi.h:260
MSPI controller device specific configuration.
Definition mspi.h:276
uint8_t cmd_length
Configure command length
Definition mspi.h:306
enum mspi_data_rate data_rate
Configure data rate.
Definition mspi.h:284
enum mspi_endian endian
Configure transfer endian.
Definition mspi.h:288
enum mspi_cpp_mode cpp
Configure clock polarity and phase.
Definition mspi.h:286
uint32_t mem_boundary
Configure memory boundary
Definition mspi.h:310
uint32_t time_to_break
Configure the time to break up a transfer into 2.
Definition mspi.h:312
uint8_t addr_length
Configure address length
Definition mspi.h:308
uint32_t freq
Configure frequency.
Definition mspi.h:280
uint16_t tx_dummy
Configure number of clock cycles between addr and data in TX direction.
Definition mspi.h:300
uint16_t rx_dummy
Configure number of clock cycles between addr and data in RX direction.
Definition mspi.h:296
enum mspi_ce_polarity ce_polarity
Configure chip enable polarity.
Definition mspi.h:290
uint8_t ce_num
Configure CE0 or CE1 or more.
Definition mspi.h:278
uint32_t read_cmd
Configure read command
Definition mspi.h:302
uint32_t write_cmd
Configure write command
Definition mspi.h:304
enum mspi_io_mode io_mode
Configure I/O mode.
Definition mspi.h:282
bool dqs_enable
Configure DQS mode.
Definition mspi.h:292
MSPI device ID The controller can identify its devices and determine whether the access is allowed in...
Definition mspi.h:230
uint16_t dev_idx
device index on DT
Definition mspi.h:234
struct gpio_dt_spec ce
device gpio ce
Definition mspi.h:232
Definition mspi.h:515
mspi_api_config config
Definition mspi.h:516
mspi_api_register_callback register_callback
Definition mspi.h:520
mspi_api_dev_config dev_config
Definition mspi.h:517
mspi_api_get_channel_status get_channel_status
Definition mspi.h:518
mspi_api_timing_config timing_config
Definition mspi.h:523
mspi_api_scramble_config scramble_config
Definition mspi.h:522
mspi_api_transceive transceive
Definition mspi.h:519
mspi_api_xip_config xip_config
Definition mspi.h:521
MSPI DT information.
Definition mspi.h:266
struct mspi_cfg config
MSPI hardware specific configuration.
Definition mspi.h:270
const struct device * bus
MSPI bus.
Definition mspi.h:268
MSPI event data.
Definition mspi.h:437
const struct mspi_xfer_packet * packet
Pointer to a transfer packet.
Definition mspi.h:443
uint32_t status
MSPI event status.
Definition mspi.h:445
uint32_t packet_idx
Packet index.
Definition mspi.h:447
const struct mspi_dev_id * dev_id
Pointer to the peripheral device ID.
Definition mspi.h:441
const struct device * controller
Pointer to the bus controller.
Definition mspi.h:439
MSPI event.
Definition mspi.h:453
enum mspi_bus_event evt_type
Event type.
Definition mspi.h:455
struct mspi_event_data evt_data
Data associated to the event.
Definition mspi.h:457
MSPI controller scramble configuration.
Definition mspi.h:334
bool enable
scramble enable
Definition mspi.h:336
uint32_t size
scramble region size
Definition mspi.h:342
uint32_t address_offset
scramble region start address = hardware default + address offset
Definition mspi.h:340
Stub for struct timing_cfg.
Definition mspi.h:218
MSPI peripheral xfer packet format.
Definition mspi.h:379
uint32_t num_bytes
Number of bytes to transfer
Definition mspi.h:389
uint32_t address
Transfer Address
Definition mspi.h:387
uint8_t * data_buf
Data Buffer
Definition mspi.h:391
uint32_t cmd
Transfer command
Definition mspi.h:385
enum mspi_bus_event_cb_mask cb_mask
Bus event callback masks
Definition mspi.h:383
enum mspi_xfer_direction dir
Direction (Transmit/Receive)
Definition mspi.h:381
MSPI peripheral xfer format This includes transfer related settings that may require configuring the ...
Definition mspi.h:399
bool hold_ce
Hold CE active after xfer
Definition mspi.h:413
uint8_t cmd_length
Configure command length
Definition mspi.h:409
uint32_t num_packet
Number of transfer packets
Definition mspi.h:421
const struct mspi_xfer_packet * packets
Transfer packets
Definition mspi.h:419
uint16_t rx_dummy
Configure RX dummy cycles
Definition mspi.h:407
enum mspi_xfer_priority priority
MSPI transfer priority
Definition mspi.h:417
bool async
Async or sync transfer
Definition mspi.h:401
uint8_t addr_length
Configure address length
Definition mspi.h:411
uint16_t tx_dummy
Configure TX dummy cycles
Definition mspi.h:405
struct mspi_ce_control ce_sw_ctrl
Software CE control
Definition mspi.h:415
enum mspi_xfer_mode xfer_mode
Transfer Mode
Definition mspi.h:403
uint32_t timeout
Transfer timeout value(ms)
Definition mspi.h:423
MSPI controller XIP configuration.
Definition mspi.h:318
enum mspi_xip_permit permission
XIP access permission.
Definition mspi.h:328
bool enable
XIP enable.
Definition mspi.h:320
uint32_t address_offset
XIP region start address = hardware default + address offset.
Definition mspi.h:324
uint32_t size
XIP region size.
Definition mspi.h:326
Macro utilities.