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

How to get the interfaceNr, in-endpointNr and out-endpointNr ? #2

Open
iKK001 opened this issue Nov 21, 2024 · 0 comments
Open

How to get the interfaceNr, in-endpointNr and out-endpointNr ? #2

iKK001 opened this issue Nov 21, 2024 · 0 comments

Comments

@iKK001
Copy link

iKK001 commented Nov 21, 2024

Ho do I get the interface that has in- and out-endpoints ?

I have problems knowing which of the interface to take from the _configuration?.interfaces array.

And also which one actually has in-endpoint AND out-endpoint ? And what the in-endpintNr and out-endpointNr actually is ?

With my device at hand, on a my Mac I was able to guess all the needed numbers by total chance.

But on my Windows-PC I am clueless.

How do I get the correct interfaceNr and its in-endpointNr and out-endpointNr so that the following two methods actually work ?

_usbDevice?.transferOut(outEndpointNr, data);

and

var usbInTransferResult = await _usbDevice!.transferIn(inEndpointNr, 64);
@iKK001 iKK001 changed the title How to get the interfaceNr, in-endpointNr and out-endpointNr with your library ? How to get the interfaceNr, in-endpointNr and out-endpointNr ? Nov 21, 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

No branches or pull requests

1 participant