Main Site Documentation

Usb endpoint0


#1

Hello.

I am writing the code of the usb client.
I found a lot of sample codes which used endpoint1 and endpoint2.
However, I want to use endpoint0.
Does not anyone know?


#2

You understand that EP0 is used for control transfers right? Why do you need EP0?


#3

Yes, understands.
For instance, I want to respond to the standard request that it should be supported by the USB printer class.
It is done through EP0.


#4

Look at the USBH_RawDevice class. There is SendSetupTranfer(…). It takes standard parameters for EP0 transfers


#5

Thank you for some replies.

I want to respond to a standard request as USB client.

Not USB Host.


#6

Sorry.

It is Class-Specific Requests.
It is not a standard request.


#7

Oh, I missed that.
Unfortunately, it is not possible for the client. Accessing EP0 needs advanced functionality. NETMF doesn’t support it.


#8

That’s too bad.
I think that .NETMF should be able to do it.