27 #if (HAL_USE_QSPI == TRUE) || defined(__DOXYGEN__) 72 #if QSPI_USE_WAIT == TRUE 75 #if QSPI_USE_MUTUAL_EXCLUSION == TRUE 78 #if defined(QSPI_DRIVER_EXT_INIT_HOOK) 79 QSPI_DRIVER_EXT_INIT_HOOK(qspip);
166 size_t n,
const uint8_t *txbuf) {
192 size_t n, uint8_t *rxbuf) {
206 #if (QSPI_USE_WAIT == TRUE) || defined(__DOXYGEN__) 222 osalDbgCheck((cmdp->cfg & QSPI_CFG_DATA_MODE_MASK) == QSPI_CFG_DATA_MODE_NONE);
250 size_t n,
const uint8_t *txbuf) {
254 osalDbgCheck((cmdp->cfg & QSPI_CFG_DATA_MODE_MASK) != QSPI_CFG_DATA_MODE_NONE);
282 size_t n, uint8_t *rxbuf) {
286 osalDbgCheck((cmdp->cfg & QSPI_CFG_DATA_MODE_MASK) != QSPI_CFG_DATA_MODE_NONE);
300 #if (QSPI_SUPPORTS_MEMMAP == TRUE) || defined(__DOXYGEN__) 318 osalDbgCheck((cmdp->cfg & QSPI_CFG_DATA_MODE_MASK) != QSPI_CFG_DATA_MODE_NONE);
354 #if (QSPI_USE_MUTUAL_EXCLUSION == TRUE) || defined(__DOXYGEN__) static void osalMutexObjectInit(mutex_t *mp)
Initializes s mutex_t object.
qspistate_t state
Driver state.
#define qspiStartReceiveI(qspip, cmdp, n, rxbuf)
Receives data from the QSPI bus.
msg_t osalThreadSuspendS(thread_reference_t *trp)
Sends the current thread sleeping and sets a reference variable.
void qspiStartSend(QSPIDriver *qspip, const qspi_command_t *cmdp, size_t n, const uint8_t *txbuf)
Sends a command with data over the QSPI bus.
void qspiUnmapFlash(QSPIDriver *qspip)
Unmaps from memory space a QSPI flash device.
qspicallback_t end_cb
Operation complete callback or NULL.
void qspiObjectInit(QSPIDriver *qspip)
Initializes the standard part of a QSPIDriver structure.
void qspiReleaseBus(QSPIDriver *qspip)
Releases exclusive access to the QSPI bus.
void osalMutexLock(mutex_t *mp)
Locks the specified mutex.
static void osalSysUnlock(void)
Leaves a critical zone from thread context.
void qspi_lld_init(void)
Low level QSPI driver initialization.
Driver configuration structure.
void qspiStartCommand(QSPIDriver *qspip, const qspi_command_t *cmdp)
Sends a command without data phase.
void qspiStart(QSPIDriver *qspip, const QSPIConfig *config)
Configures and activates the QSPI peripheral.
void qspi_lld_start(QSPIDriver *qspip)
Configures and activates the QSPI peripheral.
void qspiReceive(QSPIDriver *qspip, const qspi_command_t *cmdp, size_t n, uint8_t *rxbuf)
Sends a command then receives data over the QSPI bus.
#define osalDbgCheck(c)
Function parameters check.
void qspiStartReceive(QSPIDriver *qspip, const qspi_command_t *cmdp, size_t n, uint8_t *rxbuf)
Sends a command then receives data over the QSPI bus.
const QSPIConfig * config
Current configuration data.
mutex_t mutex
Mutex protecting the peripheral.
void qspiSend(QSPIDriver *qspip, const qspi_command_t *cmdp, size_t n, const uint8_t *txbuf)
Sends a command with data over the QSPI bus.
void qspiAcquireBus(QSPIDriver *qspip)
Gains exclusive access to the QSPI bus.
thread_reference_t thread
Waiting thread.
static void osalSysLock(void)
Enters a critical zone from thread context.
Structure representing an QSPI driver.
#define qspiUnmapFlashI(qspip)
Maps in memory space a QSPI flash device.
void qspi_lld_stop(QSPIDriver *qspip)
Deactivates the QSPI peripheral.
void qspiMapFlash(QSPIDriver *qspip, const qspi_command_t *cmdp, uint8_t **addrp)
Maps in memory space a QSPI flash device.
void qspiCommand(QSPIDriver *qspip, const qspi_command_t *cmdp)
Sends a command without data phase.
#define osalDbgAssert(c, remark)
Condition assertion.
void osalMutexUnlock(mutex_t *mp)
Unlocks the specified mutex.
#define qspiMapFlashI(qspip, cmdp, addrp)
Maps in memory space a QSPI flash device.
#define qspiStartSendI(qspip, cmdp, n, txbuf)
Sends data over the QSPI bus.
void qspiStop(QSPIDriver *qspip)
Deactivates the QSPI peripheral.
void qspiInit(void)
QSPI Driver initialization.
Type of a QSPI command descriptor.
#define qspiStartCommandI(qspip, cmdp)
Sends a command without data phase.