Home
last modified time | relevance | path

Searched refs:ringBufferIndex (Results 1 – 1 of 1) sorted by relevance

/hal_nxp-latest/mcux/mcux-sdk/components/uart/
Dfsl_adapter_lpuart.c215 static volatile uint32_t ringBufferIndex[sizeof(s_LpuartAdapterBase) / sizeof(LPUART_Type *)] = {0U… variable
299 if (newIndex < ringBufferIndex[instance]) in HAL_UartGetDmaReceivedBytes()
303 receivedBytes = newIndex - ringBufferIndex[instance]; in HAL_UartGetDmaReceivedBytes()
346 if (ringBufferIndex[instance] + callbackLength < LPUART_RING_BUFFER_SIZE) in HAL_UartDMAIdlelineInterruptHandle()
348 … (void)memcpy(uartDmaHandle->dma_rx.buffer, &s_ringBuffer[instance][ringBufferIndex[instance]], in HAL_UartDMAIdlelineInterruptHandle()
350 ringBufferIndex[instance] += callbackLength; in HAL_UartDMAIdlelineInterruptHandle()
354 remianLength = callbackLength + ringBufferIndex[instance] - LPUART_RING_BUFFER_SIZE; in HAL_UartDMAIdlelineInterruptHandle()
355 … (void)memcpy(uartDmaHandle->dma_rx.buffer, &s_ringBuffer[instance][ringBufferIndex[instance]], in HAL_UartDMAIdlelineInterruptHandle()
359 ringBufferIndex[instance] = remianLength; in HAL_UartDMAIdlelineInterruptHandle()
863 ringBufferIndex[uartHandle->instance] = 0; in HAL_UartExitLowpower()
[all …]