cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual COM Stm32fxx and complete transfer

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

1 REPLY 1
Walid FTITI_O
Senior II
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 !