Skip to main content
leogarberoglio
Associate III
September 19, 2015
Question

how to wait until CDC_Transmit_FS finish

  • September 19, 2015
  • 2 replies
  • 1800 views
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!
    This topic has been closed for replies.

    2 replies

    Amel NASRI
    ST Technical Moderator
    October 2, 2015
    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 "Best Answer" on the reply which solved your issue or answered your question.
    leogarberoglio
    Associate III
    October 2, 2015
    Posted on October 02, 2015 at 14:47

    is it work on Device mode too?