diff options
| author | Damien George <damien@micropython.org> | 2025-05-01 01:19:52 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-07-08 16:24:27 +1000 |
| commit | 62a674c9c40b52903d7da4fda5331b0f8653d966 (patch) | |
| tree | cc493900549f998671d96c9fc45d87a9296c4bba /drivers/bus/qspi.h | |
| parent | eaffbacb10783c769dc46a61b9eea65fcb7413fe (diff) | |
drivers: Support special QSPI direct-read protocol.
This is useful for interfaces that stay in memory-mapped mode by default.
They can implement this method with a simple `memcpy()`.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'drivers/bus/qspi.h')
| -rw-r--r-- | drivers/bus/qspi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bus/qspi.h b/drivers/bus/qspi.h index 32b2890e3..05d9dd473 100644 --- a/drivers/bus/qspi.h +++ b/drivers/bus/qspi.h @@ -46,6 +46,7 @@ typedef struct _mp_qspi_proto_t { int (*write_cmd_addr_data)(void *self, uint8_t cmd, uint32_t addr, size_t len, const uint8_t *src); int (*read_cmd)(void *self, uint8_t cmd, size_t len, uint32_t *dest); int (*read_cmd_qaddr_qdata)(void *self, uint8_t cmd, uint32_t addr, uint8_t num_dummy, size_t len, uint8_t *dest); + int (*direct_read)(void *self, uint32_t addr, size_t len, uint8_t *dest); // can be NULL if direct read not supported } mp_qspi_proto_t; typedef struct _mp_soft_qspi_obj_t { |
