Skip to main content
Visitor II
January 24, 2023
Question

Can I get the CDC_Receive_FS () to read data character-by-character instead of the receiving the entire packet?

  • January 24, 2023
  • 1 reply
  • 849 views

I am trying to transmit/receive data via Virtual COM port in the STM32L5xx using the USB CDC libraries. I understand that the entry to the CDC_Receive_FS() would give me an entire packet of data that I enter on the serial terminal.

I would like to know if there is a way to just read a single character upon entry to the CDC_Receive_FS() and read the data in successive callbacks?

Any leads on this would be really of help.

Thanks,

Janani

    This topic has been closed for replies.

    1 reply

    Graduate
    January 24, 2023

    No. Receive does not receive; it enables the packet reception, and the packet may be anything from 0 to endpoint size (usually = 64) bytes.