cancel
Showing results for 
Search instead for 
Did you mean: 

how to wait until CDC_Transmit_FS finish

leogarberoglio
Associate III
Posted on September 19, 2015 at 14:30

I need to call several CDC_Transmit_FS, but between them I need to wait to previous CDC_Transmit_FS finish, otherwise I overwrite output buffer.

Is there a flag, a macro or something else that may allows me to determine CDC_Transmit_FS in progress or finish?

Thank!
2 REPLIES 2
Amel NASRI
ST Employee
Posted on October 02, 2015 at 13:26

Hi elgarbe,

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).

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

leogarberoglio
Associate III
Posted on October 02, 2015 at 14:47

is it work on Device mode too?