/* Get the empty frame buffer. 
This function should only be called when frame buffer count larger than 0. */
static uint32_t CSI_TransferGetEmptyBuffer(csi_handle_t *handle)
/* Get the empty frame buffer. 
This function should only be called when frame buffer count larger than 0. */
static uint32_t CSI_TransferGetEmptyBuffer(csi_handle_t *handle)
{
    pvoid_to_u32_t buf;
    buf.pvoid = handle->emptyBuffer;
    handle->emptyBufferCnt--;
    handle->emptyBuffer = *(void **)(buf.pvoid);
    return buf.u32;
}