首页 > 其他分享 >CUSTOM_HID_EPOUT_ADDR CUSTOM_HID_EPOUT_ADDR

CUSTOM_HID_EPOUT_ADDR CUSTOM_HID_EPOUT_ADDR

时间:2022-11-02 19:34:39浏览次数:45  
标签:ADDR REQ CUSTOM REPORT HID EPOUT SIZE define

#define CUSTOM_HID_EPIN_ADDR                 0x82
#define CUSTOM_HID_EPIN_SIZE                 0x40   //wuyc

#define CUSTOM_HID_EPOUT_ADDR                0x02
#define CUSTOM_HID_EPOUT_SIZE                0x40 //wuyc
 
#define USB_CUSTOM_HID_CONFIG_DESC_SIZ       41
#define USB_CUSTOM_HID_DESC_SIZ              9

#define CUSTOM_HID_DESCRIPTOR_TYPE           0x21
#define CUSTOM_HID_REPORT_DESC               0x22


#define CUSTOM_HID_REQ_SET_PROTOCOL          0x0B
#define CUSTOM_HID_REQ_GET_PROTOCOL          0x03

#define CUSTOM_HID_REQ_SET_IDLE              0x0A
#define CUSTOM_HID_REQ_GET_IDLE              0x02

#define CUSTOM_HID_REQ_SET_REPORT            0x09
#define CUSTOM_HID_REQ_GET_REPORT            0x01

  

#define CUSTOM_HID_EPIN_ADDR                 0x81U
#define CUSTOM_HID_EPIN_SIZE                 0x02U

#define CUSTOM_HID_EPOUT_ADDR                0x01U
#define CUSTOM_HID_EPOUT_SIZE                0x02U

#define USB_CUSTOM_HID_CONFIG_DESC_SIZ       41U
#define USB_CUSTOM_HID_DESC_SIZ              9U

#ifndef CUSTOM_HID_HS_BINTERVAL
#define CUSTOM_HID_HS_BINTERVAL            0x05U
#endif /* CUSTOM_HID_HS_BINTERVAL */

#ifndef CUSTOM_HID_FS_BINTERVAL
#define CUSTOM_HID_FS_BINTERVAL            0x05U
#endif /* CUSTOM_HID_FS_BINTERVAL */

#ifndef USBD_CUSTOMHID_OUTREPORT_BUF_SIZE
#define USBD_CUSTOMHID_OUTREPORT_BUF_SIZE  0x02U
#endif /* USBD_CUSTOMHID_OUTREPORT_BUF_SIZE */
#ifndef USBD_CUSTOM_HID_REPORT_DESC_SIZE
#define USBD_CUSTOM_HID_REPORT_DESC_SIZE   163U
#endif /* USBD_CUSTOM_HID_REPORT_DESC_SIZE */

#define CUSTOM_HID_DESCRIPTOR_TYPE           0x21U
#define CUSTOM_HID_REPORT_DESC               0x22U

#define CUSTOM_HID_REQ_SET_PROTOCOL          0x0BU
#define CUSTOM_HID_REQ_GET_PROTOCOL          0x03U

#define CUSTOM_HID_REQ_SET_IDLE              0x0AU
#define CUSTOM_HID_REQ_GET_IDLE              0x02U

#define CUSTOM_HID_REQ_SET_REPORT            0x09U
#define CUSTOM_HID_REQ_GET_REPORT            0x01U

 

标签:ADDR,REQ,CUSTOM,REPORT,HID,EPOUT,SIZE,define
From: https://www.cnblogs.com/hshy/p/16852094.html

相关文章

  • ghidra api之currentProgram
    ['ADDED_VARIABLE_STORAGE_MANAGER_VERSION','ANALYSIS_OPTIONS_MOVED_VERSION','ANALYSIS_PROPERTIES','ANALYSIS_START_DATE','ANALYSIS_START_DATE_FORMAT','ANALY......
  • 26Jmeter之60并发时Address alread in use :connect
    发现问题的背景:执行阶梯压力测试,大概60并发报错:JMeter错误:java.net.BindException:Addressalreadyinuse:connect1.分析报错原因:windows默认的TCP/IP端口只有1024-5......
  • usb hid报告描述符
    USB/HID设备报告描述符详解(3) USB描述符即USB设备的信息,系统设备列举所要执行的工作之一,即是取得这些有关于设各的相关信息,之后设备才能被系统识别使用。在图的......
  • xxl-job 报:java.net.BindException: Address already in use: bind
    在低版本的xxl-job中,初始化XxlJobSpringExecutor执行器需要在@Bean中加上initMethod="start",destroyMethod="destroy",但是在高版本的xxl-job(如2.1.2)则需......
  • USBD_CUSTOM_HID
     if(USBD_RegisterClass(&hUsbDeviceFS,&USBD_CUSTOM_HID)!=USBD_OK) {   Error_Handler(); }USBD_ClassTypeDef USBD_CUSTOM_HID={ USBD_CUSTOM_HID_......
  • [单片机][USB_HID] USB问题汇总
    不同系统请求字符串次数(三个根节点)系统字符串2字符串3windos82linux13ios22单节点只会请求2次,以上现在属于正常。windos枚举时,每个节点都会重新重新请求字符串2。USBERR0......
  • [嵌入式框架][nrf52820][nrf52840] 硬件USB_HID
    USB设备(USBD)控制器实现全速USB设备功能,满足2.0版本的USB规范。这里列出的是USBD的主要特性:全速度(12mbps)设备完全符合通用串行总线规范修订2.0,包括以下是USB实施者论坛发......
  • calico 报auto-detect an IPv4 address using interface regexes [ens18]: no valid h
    现象:.查看calicopod的时候报auto-detectanIPv4addressusinginterfaceregexes[ens18]:novalidhostinterfacesfound 分析:calico开启了ipvs地址自动检测......
  • getaddrinfo(), freeaddrinfo(), gai_strerror()的man手册
    英文小册原文地址:​​beej.us/guide/bgnet…​​作者:Beej中文翻译地址:​​www.chanmufeng.com/posts/netwo…​​getaddrinfo(),freeaddrinfo(),gai_strerror()获取有关ho......
  • getaddrInfo
    /*HostandservicenamelookupsusingNameServiceSwitchmodules.Copyright(C)1996-2022FreeSoftwareFoundation,Inc.ThisfileispartoftheGNUCL......