Virtual COM Stm32fxx and complete transfer
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-03-23 2:41 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-04-05 10:12 AM
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 !