/* Send one word data and get returned words into destination data buffer.  */
uint32_t QspiSendWordAndGetWords(uint32_t WrData, uint32_t *pRdData, uint8_t LastRd)
/* Send one word data and get returned words into destination data buffer.  */
uint32_t QspiSendWordAndGetWords(uint32_t WrData, uint32_t *pRdData, uint8_t LastRd)
{
    uint32_t    timeout1 = 0;
    QspiSendWord(WrData);
    *pRdData = QspiReadWord();
    if (LastRd != 0)
    {
        while (!GetQspiRxHaveDataStatus())
        {
            if (++timeout1 >= QSPI_TIME_OUT_CNT)
            {
                return QSPI_NULL;
            }
        }
        *pRdData = QspiReadWord();
        return QSPI_SUCCESS;
    }
    return QSPI_NULL;
}