Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
Public APIs for MSPI driver. More...
#include <errno.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/types.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/mspi/devicetree.h>
#include <zephyr/syscalls/mspi.h>
Go to the source code of this file.
Data Structures | |
struct | mspi_timing_cfg |
Stub for struct timing_cfg. More... | |
struct | mspi_dev_id |
MSPI device ID The controller can identify its devices and determine whether the access is allowed in a multiple device scheme. More... | |
struct | mspi_cfg |
MSPI controller configuration. More... | |
struct | mspi_dt_spec |
MSPI DT information. More... | |
struct | mspi_dev_cfg |
MSPI controller device specific configuration. More... | |
struct | mspi_xip_cfg |
MSPI controller XIP configuration. More... | |
struct | mspi_scramble_cfg |
MSPI controller scramble configuration. More... | |
struct | mspi_ce_control |
MSPI Chip Select control structure. More... | |
struct | mspi_xfer_packet |
MSPI peripheral xfer packet format. More... | |
struct | mspi_xfer |
MSPI peripheral xfer format This includes transfer related settings that may require configuring the hardware. More... | |
struct | mspi_event_data |
MSPI event data. More... | |
struct | mspi_event |
MSPI event. More... | |
struct | mspi_callback_context |
MSPI callback context. More... | |
struct | mspi_driver_api |
Typedefs | |
typedef void(* | mspi_callback_handler_t) (struct mspi_callback_context *mspi_cb_ctx,...) |
Define the application callback handler function signature. | |
typedef int(* | mspi_api_config) (const struct mspi_dt_spec *spec) |
MSPI driver API definition and system call entry points. | |
typedef 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) |
typedef int(* | mspi_api_get_channel_status) (const struct device *controller, uint8_t ch) |
typedef int(* | mspi_api_transceive) (const struct device *controller, const struct mspi_dev_id *dev_id, const struct mspi_xfer *req) |
typedef 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) |
typedef int(* | mspi_api_xip_config) (const struct device *controller, const struct mspi_dev_id *dev_id, const struct mspi_xip_cfg *xip_cfg) |
typedef int(* | mspi_api_scramble_config) (const struct device *controller, const struct mspi_dev_id *dev_id, const struct mspi_scramble_cfg *scramble_cfg) |
typedef int(* | mspi_api_timing_config) (const struct device *controller, const struct mspi_dev_id *dev_id, const uint32_t param_mask, void *timing_cfg) |
Functions | |
int | mspi_config (const struct mspi_dt_spec *spec) |
Configure a MSPI controller. | |
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_get_channel_status (const struct device *controller, uint8_t ch) |
Query to see if it a channel is ready. | |
int | mspi_transceive (const struct device *controller, const struct mspi_dev_id *dev_id, const struct mspi_xfer *req) |
Transfer request over MSPI. | |
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. | |
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. | |
Public APIs for MSPI driver.