随笔分类 - USB
摘要:选择 USB 设备的驱动程序模型https://github.com/libusbx/libusbx/wiki/Windows-BackendWinUSBdoes not supportWindows 2003 ( 32bit/64bit )WinUSBdoes not supportWindows XP 64 bit ( not officially support on 64bit Windows XP)WinUSBcannot be used to send an actual reset command to an USB device. This is a limitation of
阅读全文
摘要:The setup packet--------------------------------------------------------------------------------------------Every USB device must respond to setup packets on the default pipe.The setup packets are used for detection and configuration of the deviceand carry out common functions such as setting the US
阅读全文
摘要:USB鼠标枚举1、 获取设备描述符 :这次传输方式是控制传输,她由5个事务组成,分别是SETUP、IN、IN、IN、OUT2、 复位3、 设置地址4、 再次获取设备描述符(同第2部分)5、 获取配置描述符6、 获取接口、端点描述符7、 获取字符串描述符8、 选择设备配置
阅读全文
摘要:参见 USB枚举 Windows : How does USB stack enumerate a device?什么是USB枚举USB枚举,USB Emulation,从字面意思看,就是去列举USB,而列举啥呢,其实就是USB的初始化。简单来说,USB的枚举,对应的就是USB的Host和Devic...
阅读全文
摘要:Multiple USB CDC (USB IAD)One CDC function requires 2 IN / 1 OUT endpoints (interrupt IN/ bulk IN/ bulk OUT), other than the default EP.Available endp...
阅读全文
摘要:USB_COMMON_DESCRIPTOR * USBH_X_GetNextDescriptor( USB_COMMON_DESCRIPTOR * pbCommDescriptor, U32 * wNextDescriptorOffset ){ USB_COMMON_DESCRIPTOR * pNextCommDescriptor; U8 bLength = pbCommDescriptor->bLength; *wNextDescriptorOffset += bLength; pNextCommDescriptor = (USB_COMMON_DESCRIPTOR *) ( (...
阅读全文
摘要:1 typedef struct USBH_HOST_DRIVER_INST { 2 U32 Magic; 3 USBH_DLIST ...
阅读全文
摘要:/** * @brief USBH_HandleControl * Handles the USB control transfer state machine * @param pdev: Selected device * @retval Status */USBH_Stat...
阅读全文
摘要:1 /** 2 * @brief USBH_InterruptSendData 3 * Sends the data on Interrupt OUT Endpoint 4 * @param pdev: Selected device 5 * @param b...
阅读全文
摘要:1 /** 2 * @brief USB_OTG_ReadPacket : Reads a packet from the Rx FIFO 3 * @param pdev : Selected device 4 * @param dest : Destination Pointer 5 * ...
阅读全文