-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CDC_Receive() and USBD_CUSTOM_HID_SendReport() usage #26
Comments
Sooo, maybe its not intended way to do it, but i did this.
And when i want to read buffer i did
|
Is the above blocking code? Is interrupt based execution possible, such as data comes in, interrupt handler takes care of the event then moves back into main execution? |
I tried to use this wrapper on STM32G0Bxx.
Wrapper is initialized in main function with this functions:
I can send data by
CDC_Transmit()
, but I don't know how to get data from callback functionCDC_Receive()
. AlsoUSBD_CUSTOM_HID_SendReport()
returns 0(USBD_OK) in first run, but in all next returns 1(USBD_BUSY).I can't find specification for this wrapper
Same here: https://stackoverflow.com/questions/75885164/how-to-get-data-from-callback-function-cdc-receive
The text was updated successfully, but these errors were encountered: