/* Increase a index value in queue. 
This function increases the index value in the queue, if the index is out of the queue range, it is reset to 0. */
static uint32_t CSI_TransferIncreaseQueueIdx(uint32_t idx)
/* Increase a index value in queue. 
This function increases the index value in the queue, if the index is out of the queue range, it is reset to 0. */
static uint32_t CSI_TransferIncreaseQueueIdx(uint32_t idx)
{
    uint32_t ret;
    ret = idx + 1;
    if (ret >= CSI_DRIVER_ACTUAL_QUEUE_SIZE)
    {
        ret = 0;
    }
    return ret;
}