Skip to main content
ASady.1
Visitor II
November 22, 2020
Question

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?

  • November 22, 2020
  • 1 reply
  • 618 views

..

This topic has been closed for replies.

1 reply

shingadaddy
Senior
November 22, 2020

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.