Skip to content

Reference endpoints by address, not number. #13

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

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

Conversation

mmmspatz
Copy link

An endpoint address is made up of two nibbles. The upper nibble specifies
the endpoint direction, and the lower nibble is the endpoint number.

libusbpp currently treats endpoint numbers as unique, which is
problematic in the case of a bidirectional endpoint (eg addresses 0x04
and 0x84.)

Change the API to reference endpoints by address, not number.

An endpoint address is made up of two nibbles. The upper nibble specifies
the endpoint direction, and the lower nibble is the endpoint number.

libusbpp currently treats endpoint numbers as unique, which is
problematic in the case of a bidirectional endpoint (eg addresses 0x04
and 0x84.)

Change the API to reference endpoints by address, not number.
@mcuee
Copy link

mcuee commented Feb 11, 2023

In reality 0x04 and 0x84 are two different endpoint in the context of USB. The only bi-directional endpoint is the control endpoint (usually EP0).

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