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

Parse all control messages #19

Merged
merged 3 commits into from
Jun 16, 2024

Conversation

sjoerdsimons
Copy link
Contributor

Add generic support for passing control messages (and some other tweaks)

Allow pretty printing of the various top-level types

Signed-off-by: Sjoerd Simons <[email protected]>
There are over 20 different control messages specified in specification
version 3.2. Rather then adding them all to the Message enum one-by-one,
add a catch-all for control message (as per definition they have no
extra information).
VendorDefined messages need at least 4 bytes of payload to be valid
@fmckeogh fmckeogh merged commit ad7d271 into fmckeogh:main Jun 16, 2024
2 checks passed
okhsunrog added a commit to okhsunrog/usb-pd-rs that referenced this pull request Jun 18, 2024
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.

2 participants