cancel
Showing results for 
Search instead for 
Did you mean: 

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

Er.Anil
Associate II

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?

4 REPLIES 4
TDK
Guru

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
Associate II

I am using "STM32F USB Drivers & Liberary"

TDK
Guru

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
Associate II