I use STM32 VirtualCom USB library it have two function CDC_Receive_FS(); and CDC_Transmit_FS();. These functions send and receive data arrays, how can I send and receive one byte at a time?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-22 12:15 AM
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-22 11:42 AM
I have time for a quick answer. Most of the examples I am familiar with allow you to specify "LENGTH".
If set to "1" I would expect that to work. Unless you are
- using some application that makes it necessary to PILE UP a minimum amount to send.
- Expecting to see exactly "1" byte transmitted on the USB bus. Which of course you WON'T see.
A LOT to read in between the lines with your question here. But hope maybe that helps.
