freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于stm32的usb簡(jiǎn)易鼠標(biāo)畢業(yè)設(shè)計(jì)論文-資料下載頁(yè)

2025-08-18 15:04本頁(yè)面

【導(dǎo)讀】嵌入式系統(tǒng)的USB鼠標(biāo)及鍵盤(pán)的應(yīng)用也變得越來(lái)越廣泛。在本次設(shè)計(jì)中,研究的。設(shè)備智能化和低延遲的設(shè)計(jì)要求。由于是基于HID的USB設(shè)備,所以編程非常方。便,貼近工程實(shí)踐,應(yīng)用前景廣闊。是計(jì)算機(jī)周邊設(shè)備中非常常見(jiàn)的設(shè)備類型,是可以直接與進(jìn)行人交互的USB設(shè)備,例如鼠標(biāo)、攝像頭、U盤(pán)等。在種類繁多USB設(shè)備中,HID類設(shè)備的成本一般情況。實(shí)際上,只要是符合HID標(biāo)準(zhǔn)的設(shè)備都是HID設(shè)備,不一定非要。具有人機(jī)交互功能。直接使用這些驅(qū)動(dòng)程序來(lái)與設(shè)備通信。技術(shù)提出了挑戰(zhàn)。老式的圓孔鼠標(biāo)早已不再適用,特別是筆記本電腦根本不再設(shè)。隨著以及的不斷完善,再加上高速而價(jià)廉的單片機(jī),一款基于STM32的USB簡(jiǎn)易鼠標(biāo)正是本課題的研究?jī)?nèi)容。的組成及工作原理,描述了研究該課題的意義和應(yīng)用價(jià)值。協(xié)議的HID部分,精通此協(xié)議并植入單片機(jī)才能實(shí)現(xiàn)計(jì)算機(jī)與鼠標(biāo)的溝通。

  

【正文】 CLAIMS ARISING FROM THE * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. *********************************************************************/ /* Includes */ include include /* Private typedef */ /* Private define */ /* Private macro */ /* Private variables */ /* Extern variables */ /* Private function prototypes */ /* Private functions */ /*******************USB Standard Device Descriptor************* ************************* 標(biāo)準(zhǔn)設(shè)備描述符 ***********************/ const uint8_t Joystick_DeviceDescriptor[JOYSTICK_SIZ_DEVICE_DESC] = { 河南城建學(xué)院本科畢業(yè)設(shè)計(jì)(論文) 附錄 20 0x12, /*bLength 描述符長(zhǎng)度 */ USB_DEVICE_DESCRIPTOR_TYPE, /*bDescriptorType 描述符類型(設(shè)備描述符 為 0x01) */ 0x00, /*bcdUSB USB 協(xié)議版本 */ 0x02, 0x00, /*bDeviceClass 類代碼 */ 0x00, /*bDeviceSubClass 子類代碼 */ 0x00, /*bDeviceProtocol 設(shè)備使用的協(xié)議 */ 0x40, /*bMaxPacketSize 64 端點(diǎn) 0最大包長(zhǎng) */ 0x83, /*idVendor (0x0483)廠商 ID*/ 0x04, 0x10, /*idProduct = 0x5710 產(chǎn)品 ID*/ 0x57, 0x00, /*bcdDevice rel. 設(shè)備版本號(hào) */ 0x02, 1, /*Index of string descriptor describing Manufacturer 描述廠商的字符串的索引 */ 2, /*Index of string descriptor describing product 描述產(chǎn)品的字符串的索引 */ 3, /*Index of string descriptor describing the device serial number 產(chǎn)品序列號(hào)字 符串的索引 */ 0x01 /*bNumConfigurations 可能的配置數(shù) */ }。 /******************** Joystick_DeviceDescriptor *****************/ /***************** USB Configuration Descriptor******************** ***************************配置描述符 ****************************/ /* All Descriptors (Configuration 配置 , Interface 接口 , Endpoint 端點(diǎn) , Class 類 , Vendor 廠商 */ const uint8_t Joystick_ConfigDescriptor[JOYSTICK_SIZ_CONFIG_DESC] = { 河南城建學(xué)院本科畢業(yè)設(shè)計(jì)(論文) 附錄 21 0x09, /* bLength: Configuation Descriptor size */ USB_CONFIGURATION_DESCRIPTOR_TYPE, /* bDescriptorType: Configuration */ JOYSTICK_SIZ_CONFIG_DESC, /* wTotalLength: Bytes returned */ 0x00, 0x01, /*bNumInterfaces: 1 interface 接口數(shù) */ 0x01, /*bConfigurationValue: Configuration value 配置 */ 0x00, /*iConfiguration: Index of string descriptor describing the configuration 字符串索引號(hào) */ 0xE0, /*bmAttributes: bus powered 總線供電 */ 0x32, /*MaxPower 100 mA: this current is used for detecting Vbus 檢測(cè)電源 */ /********Descriptor of Joystick Mouse interface 接口 **************/ /* 09 */ 0x09, /*bLength: Interface Descriptor size*/ USB_INTERFACE_DESCRIPTOR_TYPE,/*bDescriptorType: Interface descriptor type*/ 0x00, /*bInterfaceNumber: Number of Interface*/ 0x00, /*bAlternateSetting: Alternate setting*/ 0x01, /*bNumEndpoints*/ 0x03, /*bInterfaceClass: HID*/ 0x01, /*bInterfaceSubClass : 1=BOOT, 0=no boot*/ 0x02, /*nInterfaceProtocol : 0=none, 1=keyboard, 2=mouse*/ 0, /*iInterface: Index of string descriptor*/ /***************** Descriptor of Joystick Mouse HID ************* ***************************HID 描述符 ****************************/ /* 18 */ 0x09, /*bLength: HID Descriptor size*/ HID_DESCRIPTOR_TYPE, /*bDescriptorType: HID*/ 0x00, /*bcdHID: HID Class Spec release number*/ 0x01, 河南城建學(xué)院本科畢業(yè)設(shè)計(jì)(論文) 附錄 22 0x00, /*bCountryCode: Hardware target country*/ 0x01, /*bNumDescriptors: Number of HID class descriptors to follow*/ 0x22, /*bDescriptorType*/ JOYSTICK_SIZ_REPORT_DESC,/*wItemLength: Total length of Report descriptor*/ 0x00, /******************* Descriptor of Joystick Mouse endpoint ********* ********************************端點(diǎn)描述符 ***************************/ /* 27 */ 0x07, /*bLength: Endpoint Descriptor size*/ USB_ENDPOINT_DESCRIPTOR_TYPE, /*bDescriptorType:*/ 0x81, /*bEndpointAddress: Endpoint Address (IN)*/ 0x03, /*bmAttributes: Interrupt endpoint*/ 0x04, /*wMaxPacketSize: 4 Byte max */ 0x00, 0x20, /*bInterval: Polling Interval (32 ms)*/ /* 34 */ }。 /******************* MOUSE_ConfigDescriptor ********************** ******************用于實(shí)現(xiàn)鼠標(biāo)具體功能的報(bào)告描述符 ***************/ const uint8_t Joystick_ReportDescriptor[JOYSTICK_SIZ_REPORT_DESC] = { 0x05, /*Usage Page(Generic Desktop)*/ 0x01, 0x09, /*Usage(Mouse)*/ 0x02, 0xA1, /*Collection(Logical)*/ 0x01, 0x09, /*Usage(Pointer)*/ 0x01, 河南城建學(xué)院本科畢業(yè)設(shè)計(jì)(論文) 附錄 23 /* 8 */ 0xA1, /*Collection(Linked)*/ 0x00,
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1