Part Number: TM4C1290NCPDT
Tool/software: Starterware
Dear All,
I have routine RxHandler and board is being configured as USB virtual Uart via CDC APIs.
Now i have to receive >64 bytes of frame from the USB so if i did this usin below code i only got the Last bytes number from the received frame. i.e. if the frame is of 70 bytes then i got result as 6 bytes from USBBufferDataAvailable routine
case USB_EVENT_RX_AVAILABLE:
{
//
// Feed some characters into the UART TX FIFO and enable the
// interrupt so we are told when there is more space.
//
//
// Read No of Bytes available in Rx Buffer
//
Rx_Buffer_Length = USBBufferDataAvailable(&g_sRxBuffer);
//
// Read Data from RxBuffer & move it to RxFrame
//
ulRead = USBBufferRead((tUSBBuffer *)&g_sRxBuffer, Rx_Frame, Rx_Buffer_Length);
if(ulRead)
USB_Decode_RxFrame_Send_TxFrame(Rx_Buffer_Length);
break;
Can any method how to get full length of the received frame ?