cancel
Showing results for 
Search instead for 
Did you mean: 

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?

ASady.1
Associate
 
1 REPLY 1
shingadaddy
Senior

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

  1. using some application that makes it necessary to PILE UP a minimum amount to send.
  2. 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.