Skip to main content
Visitor 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
  • 1062 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

    Super User
    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;
     }

    .

    Er.AnilAuthor
    Visitor II
    June 30, 2021

    I am using "STM32F USB Drivers & Liberary"

    Super User
    June 30, 2021

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

    Er.AnilAuthor
    Visitor II
    June 30, 2021