Skip to main content
Marco1
Associate III
March 23, 2016
Question

Virtual COM Stm32fxx and complete transfer

  • March 23, 2016
  • 1 reply
  • 507 views
Posted on March 23, 2016 at 10:41

Hi, 

i'm using a virtual com (without uart), someone know the way to know when the usb has complete the transfer ?

I can't make (sure) immediatly two time ''CDC_Transmit_FS''

CDC_Transmit_FS( Buf, 100 );

// here i need to know when the usb has complete the first transfer 

CDC_Transmit_FS( Buf, 100 );

Sorry for my english !

    This topic has been closed for replies.

    1 reply

    Walid FTITI_O
    Visitor II
    April 5, 2016
    Posted on April 05, 2016 at 19:12

    Hi

    marco

    ,

    You can manage several CDC_Transmit calls based on the USBH_CDC_TransmitCallback.

    In this callback function, you can call the CDC_Transmit functions as it is done in the example STM32Cube_FW_F4_V1.8.0\Projects\STM324xG_EVAL\Applications\USB_Host\CDC_Standalone (have a look to the implementation in Src/cdc_send.c).

    -Hannibal-

    Hi, 

    i'm using a virtual com (without uart), someone know the way to know when the usb has complete the transfer ?

    I can't make (sure) immediatly two time ''CDC_Transmit_FS''

    CDC_Transmit_FS( Buf, 100 );

    // here i need to know when the usb has complete the first transfer 

    CDC_Transmit_FS( Buf, 100 );

    Sorry for my english !