/* Load one empty frame buffer in queue to CSI module. 
Load one empty frame in queue to CSI module, this function could only be called when there is empty frame buffer in queue. */
static void CSI_TransferLoadBufferToDevice(CSI_Type *base, csi_handle_t *handle)
/* Load one empty frame buffer in queue to CSI module. 
Load one empty frame in queue to CSI module, this function could only be called when there is empty frame buffer in queue. */
static void CSI_TransferLoadBufferToDevice(CSI_Type *base, csi_handle_t *handle)
{
    CSI_SetRxBufferAddr(base, handle->nextBufferIdx, handle->frameBufferQueue[handle->queueDrvReadIdx]);
    handle->queueDrvReadIdx = CSI_TransferIncreaseQueueIdx(handle->queueDrvReadIdx);
    handle->activeBufferNum++;
    handle->nextBufferIdx ^= 1U;
}