Menu

#40 UsbRequestType incomplete

v2.2.8
open
None
5
2013-05-24
2013-05-24
No

Hi

The UsbRequestType enum seems to be incomplete. I might suggest the following structure:

public enum UsbRequestType{
RECIPIENT_DEVICE = 0,
RECIPIENT_INTERFACE = 1,
RECIPIENT_ENDPOINT = 2,
RECIPIENT_OTHER = 3,
TYPE_STANDARD = 0,
TYPE_CLASS = 32,
TYPE_VENDOR = 64,
TRANSFER_DIRECTION_OUT = 0,
TRANSFER_DIRECTION_IN = 128
}

My reference is from: http://www.beyondlogic.org/usbnutshell/usb6.shtml

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.