描述

    1. static const uint8_t _hidReportDescriptor[] PROGMEM = {
    2. 0x05, 0x0c, // USAGE_PAGE (Consumer Page) // 表示
    3. 0x09, 0x01, // USAGE (Consumer Control)
    4. 0xa1, 0x01, // COLLECTION (Application)
    5. 0x85, 0x05, // REPORT_ID (5)
    6. 0x15, 0x00, // Logical Minimum (0)
    7. 0x25, 0x01, // Logical Maximum (1)
    8. 0x09, 0xea, // USAGE (Volume Decrement)
    9. 0x09, 0xe9, // USAGE (Volume Increment)
    10. 0x09, 0xe2, // USAGE (Mute)
    11. 0x09, 0xcd, // USAGE (Play/Pause)
    12. 0x0a, 0x83, 0x01, //USAGE (Windows Media Player(0x183))
    13. 0x0a, 0x23, 0x02, //USAGE (AC Home(0x0223))
    14. 0x0a, 0x92, 0x01, //USAGE (AL Calculator(0x192))
    15. 0x15, 0x00, // LOGICAL_MINIMUM (0)
    16. 0x25, 0x01, // LOGICAL_MAXIMUM (1)
    17. 0x95, 0x07, // REPORT_COUNT (7)
    18. 0x75, 0x01, // REPORT_SIZE (1)
    19. 0x81, 0x02, // INPUT (Data,Var,Abs)
    20. 0x75, 0x01, // REPORT_SIZE (1)
    21. 0x95, 0x01, // REPORT_COUNT (1)
    22. 0x81, 0x03, // INPUT (Cnst,Var,Abs)
    23. 0xc0 // END_COLLECTION
    24. };
    1. 0x09, 0xea, // USAGE (Volume Decrement)
    2. 0x09, 0xe9, // USAGE (Volume Increment)
    3. 0x09, 0xb5, // USAGE (Track Next)
    4. 0x09, 0xb6, // USAGE (Track Previous)
    5. 0x09, 0xcd, // USAGE (Play/Pause)

    HID - 图1