![]() USB_HID_EP, // bEndpointAddress - Endpoint number and directionĮP_OUT_INTERVAL // bInterval - Service interval or NAK rate USB_TRANSFER_TYPE, // bmAttributes - Transfer type and supplementary informationĠx40,0x00, // wMaxPacketSize - Maximum packet size supportedĮP_IN_INTERVAL, // bInterval - Service interval or NAK rate USB_HID_EP | 0x80, // bEndpointAddress - Endpoint number and direction ![]() USB_HID_RPT_SIZE,0x00, // wDescriptorLength - Total length of the descriptor identified above.Ġx07, // bLength - Descriptor size in bytes (07h)Ġx05, // bDescriptorType - The constant Endpoint (05h) USB_MAX_POWER, // bMaxPower - Bus power required in units of 2 mAĠx09, // bLength - Descriptor size in bytes (09h)Ġx04, // bDescriptorType - The constant Interface (04h)Ġ, // bInterfaceNumber - Number identifying this interfaceĠ, // bAlternateSetting - A number that identifies a descriptor with alternate settings for this bInterfaceNumber.Ģ, // bNumEndpoint - Number of endpoints supported not counting endpoint zeroĠ, // iInterface - Interface string indexĠx09, // bLength - Descriptor size in bytes.Ġx21, // bDescriptorType - This descriptor's type: 21h to indicate the HID class.Ġx01,0x01, // bcdHID - HID specification release number (BCD).Ġx00, // bCountr圜ode - Numeric expression identifying the country for localized hardware (BCD) or 00h.ġ, // bNumDescriptors - Number of subordinate report and physical descriptors.Ġx22, // bDescriptorType - The type of a class-specific descriptor that follows USB_SELF_POWER, // bmAttributes - Self/bus power and remote wakeup settings Mikroelektronika usb hid terminal documentation serial#Unsigned int bcdDevice // bcdDevice - Device release number (BCD)Ĭhar iManufacturer // iManufacturer - Index of string descriptor for the manufacturerĬhar iProduct // iProduct - Index of string descriptor for the product.Ĭhar iSerialNumber // iSerialNumber - Index of string descriptor for the serial number.Ĭhar bNumConfigurations // bNumConfigurations - Number of possible configurationsĠx09, // bLength - Descriptor size in bytesĠx02, // bDescriptorType - The constant CONFIGURATION (02h)Ġx29,0x00, // wTotalLength - The number of bytes in the configuration descriptor and all of its subordinate descriptorsġ, // bNumInterfaces - Number of interfaces in the configurationġ, // bConfigurationValue - Identifier for Set Configuration and Get Configuration requestsĠ, // iConfiguration - Index of string descriptor for the configuration Unsigned int idProduct // idProduct - Product ID Unsigned int idVendor // idVendor - Vendor ID Unsigned int bcdUSB // bcdUSB - USB specification release number (BCD)Ĭhar bDeviceClass // bDeviceClass - Class CodeĬhar bDeviceSubClass // bDeviceSubClass - Subclass codeĬhar bDeviceProtocol // bDeviceProtocol - Protocol codeĬhar bMaxPacketSize0 // bMaxPacketSize0 - Maximum packet size for endpoint 0 ![]() Const unsigned int USB_VENDOR_ID = 0x1235 Ĭonst unsigned int USB_PRODUCT_ID = 0x0001 Ĭonst char USB_SELF_POWER = 0x80 // Self powered 0xC0, 0x80 bus poweredĬonst char USB_MAX_POWER = 50 // Bus power required in units of 2 mAĬonst char USB_TRANSFER_TYPE = 0x03 //0x03 InterruptĬhar bLength // bLength - Descriptor size in bytes (12h)Ĭhar bDescriptorType // bDescriptorType - The constant DEVICE (01h) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |