Skip to content
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

Added USBD_CDC_DataRxAsync, support of alt IF and control end of tx #12

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

joetde
Copy link
Contributor

@joetde joetde commented Apr 18, 2024

Summary of change

  • Added USBD_CDC_DataRxAsync which didn't exist before for async receive
  • Added CDC notification codes from CDC 1.2 specification
  • Added configuration to add alternate IF for data transfer (controlled by USBD_CDC_SetAltIFEn)
  • Added configuration to be able to let the application control end of transfers (when to send ZLP)
  • Default behaviour unchanged (AltIFEn set to false and EndOfTx set to true)

Validation

Tested on MacOS, iPadOS, Linux and Android for CDC-ECM (implemented locally). OSs can enumerate the device, send and receive notification and data to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant