USB HID keyboard reporting
0x05, 0x01, // USAGE_PAGE (Generic Desktop)
0x09, 0x06, // USAGE (Keyboard)
0xa1, 0x01, // COLLECTION (Application)
0x05, 0x07, //USAGE_PAGE (Keyboard)
0x19, 0x29, //USAGE_MINIMUM (Keyboard ESCAPE)
0x29, 0xe7, //USAGE_MAXIMUM (Keyboard RightAlt)
0x15, 0x00, //LOGICAL_MINIMUM (0)
0x25, 0x01, //LOGICAL_MAXIMUM (1)
0x95, 0x08, //REPORT_COUNT (8)
0x75, 0x01, //REPORT_SIZE (1)
0x81, 0x02, //INPUT (Data,Var,Abs)
0x95, 0x01, //REPORT_COUNT (1)
0x75, 0x08, //REPORT_SIZE (8)
0x81, 0x03, //INPUT (Cnst,Var,Abs)
0x95, 0x06, //REPORT_COUNT (6)
0x75, 0x08, //REPORT_SIZE (8)
0x25, 0xff, // LOGICAL_MAXIMUM (255)
0x19, 0x00, //USAGE_MINIMUM (Reserved (no event indicated))
0x29, 0x65, //USAGE_MAXIMUM (Keyboard Application)
0x81, 0x00, //INPUT (Data,Ary,Abs)
0x15, 0x01, //LOGICAL_MINIMUM (1)
0x95, 0x05, //REPORT_COUNT (5)
0x75, 0x01, //REPORT_SIZE (1)
0xc0 // END_COLLECTION
This report cannot report ALT+F4. The specific reason is still unknown! To be discussed
Assuming that the sender has Buffer[8], then Buffer[2] stores the key values! Buffer[0], Bit0 is when the Ctrl key is pressed, Bit1 is when the Shift key is pressed, and Bit2 is when the Alt key is pressed.
Previous article:Use of STM32 TIMER2
Next article:STM32 IO issues
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- [CY8CKIT-149 PSoC 4100S Review] + Porting Program Code
- Source program simulation file based on 51 single-chip multifunctional intelligent desk lamp (with clock, posture correction, display temperature and brightness)
- What are the advantages of CC1350, CC1352R and CC1352P?
- Pelvic floor muscle therapy instrument parameters technical parameters
- Design and Application of Power Monitoring System for Hubei Daguannan Expressway
- Analysis of installation techniques of magnetic flap level gauge for high liquid level tank
- 【LAUNCHXL-CC1350-4】- 0: Unboxing Post
- SparkRoad Review (2) - Can I burn a Cortex-M0 soft core?
- GD32L233C rtos debut
- To become a high-level electronic engineer, in addition to programming and PCB drawing, please recommend other circuit design books. Thank you