Skip to main content
Er.Anil
Associate II
June 28, 2021
Question

Is there a function to monitor the status of data being sent via USB- Virtual Com Port in STM32F429?

  • June 28, 2021
  • 4 replies
  • 1087 views

I am using standard USB libraries available on ST website. Is there a function available in these libraries where I can check a status flag and confirm whether a data transfer via USB virtual Com port is complete or not?

This topic has been closed for replies.

4 replies

TDK
June 28, 2021

CubeMX libraries? You can check the state variable

 USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef*)hUsbDeviceHS.pClassData;
 if (hcdc->TxState != 0){
 return USBD_BUSY;
 }

.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Er.Anil
Er.AnilAuthor
Associate II
June 30, 2021

I am using "STM32F USB Drivers & Liberary"

TDK
June 30, 2021

I see no useful Google results for "STM32F USB Drivers & Liberary".

"If you feel a post has answered your question, please click ""Accept as Solution""."
Er.Anil
Er.AnilAuthor
Associate II
June 30, 2021