25 #ifndef HAL_QSPI_LLD_H 26 #define HAL_QSPI_LLD_H 28 #if (HAL_USE_QSPI == TRUE) || defined(__DOXYGEN__) 38 #define QSPI_SUPPORTS_MEMMAP TRUE 54 #if !defined(PLATFORM_QSPI_USE_QSPI1) || defined(__DOXYGEN__) 55 #define PLATFORM_QSPI_USE_QSPI1 FALSE 103 #if (QSPI_USE_WAIT == TRUE) || defined(__DOXYGEN__) 109 #if (QSPI_USE_MUTUAL_EXCLUSION == TRUE) || defined(__DOXYGEN__) 115 #if defined(QSPI_DRIVER_EXT_FIELDS) 116 QSPI_DRIVER_EXT_FIELDS
129 #if (PLATFORM_QSPI_USE_QSPI1 == TRUE) && !defined(__DOXYGEN__) 141 size_t n,
const uint8_t *txbuf);
143 size_t n, uint8_t *rxbuf);
144 #if QSPI_SUPPORTS_MEMMAP == TRUE qspistate_t state
Driver state.
void qspi_lld_unmap_flash(QSPIDriver *qspip)
Unmaps from memory space a QSPI flash device.
void qspi_lld_receive(QSPIDriver *qspip, const qspi_command_t *cmdp, size_t n, uint8_t *rxbuf)
Sends a command then receives data over the QSPI bus.
qspicallback_t end_cb
Operation complete callback or NULL.
void qspi_lld_send(QSPIDriver *qspip, const qspi_command_t *cmdp, size_t n, const uint8_t *txbuf)
Sends a command with data over the QSPI bus.
void qspi_lld_command(QSPIDriver *qspip, const qspi_command_t *cmdp)
Sends a command without data phase.
void qspi_lld_init(void)
Low level QSPI driver initialization.
void qspi_lld_map_flash(QSPIDriver *qspip, const qspi_command_t *cmdp, uint8_t **addrp)
Maps in memory space a QSPI flash device.
void(* qspicallback_t)(QSPIDriver *qspip)
Type of a QSPI notification callback.
Driver configuration structure.
void qspi_lld_start(QSPIDriver *qspip)
Configures and activates the QSPI peripheral.
const QSPIConfig * config
Current configuration data.
mutex_t mutex
Mutex protecting the peripheral.
void * thread_reference_t
Type of a thread reference.
thread_reference_t thread
Waiting thread.
Structure representing an QSPI driver.
void qspi_lld_stop(QSPIDriver *qspip)
Deactivates the QSPI peripheral.
uint32_t mutex_t
Type of a mutex.
qspistate_t
Driver state machine possible states.
QSPIDriver QSPID1
QSPID1 driver identifier.
Type of a QSPI command descriptor.