Can I get the CDC_Receive_FS () to read data character-by-character instead of the receiving the entire packet?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-01-24 2:32 AM
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
Labels:
- Labels:
-
STM32L5 Series
-
UART-USART
-
USB
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
2023-01-24 2:45 AM
No. Receive does not receive; it enables the packet reception, and the packet may be anything from 0 to endpoint size (usually = 64) bytes.
My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
