Skip to main content
leogarberoglio
Associate III
Sep 19, 2015 12:30 PM UTC
Question

how to wait until CDC_Transmit_FS finish

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
    Oct 2, 2015 11:26 AM UTC
    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
    Oct 2, 2015 12:47 PM UTC
    Posted on October 02, 2015 at 14:47

    is it work on Device mode too?