btstack协议栈实战篇--HID Mouse LE

btstack协议栈---总目录_bt stack是什么-CSDN博客

目录

1.hid_descriptor_mouse_boot_mode

2.hog_mouse_setup

3.HID Report sending

4.packet_handler

5.btstack_main


1.hid_descriptor_mouse_boot_mode

// from USB HID Specification 1.1, Appendix B.2
const uint8_t hid_descriptor_mouse_boot_mode[] = {
    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)
    0x09, 0x02,                    // USAGE (Mouse)
    0xa1, 0x01,                    // COLLECTION (Application)

    0x85,  0x01,                    // Report ID 1

    0x09, 0x01,                    //   USAGE (Pointer)

    0xa1, 0x00,                    //   COLLECTION (Physical)

#if 1
    0x05, 0x09,                    //     USAGE_PAGE (Button)
    0x19, 0x01,                    //     USAGE_MINIMUM (Button 1)
    0x29, 0x03,                    //     USAGE_MAXIMUM (Button 3)
    0x15, 0x00,             

相关推荐

  1. btstack协议实战--GAP LE Advertisements Scanner

    2024-06-16 15:36:03       8 阅读
  2. btstack协议实战--LE Peripheral - Delayed Response

    2024-06-16 15:36:03       9 阅读
  3. btstack协议实战--HID Mouse LE

    2024-06-16 15:36:03       8 阅读
  4. 基于FPGA实现的UDP协议设计_汇总

    2024-06-16 15:36:03       16 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-06-16 15:36:03       10 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-06-16 15:36:03       12 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-06-16 15:36:03       11 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-06-16 15:36:03       14 阅读

热门阅读

  1. 单目物体测距

    2024-06-16 15:36:03       9 阅读
  2. text-underline-offset的作用是什么,怎么使用

    2024-06-16 15:36:03       7 阅读
  3. Go日志组件Zap的基本使用

    2024-06-16 15:36:03       9 阅读
  4. CAP和Base

    2024-06-16 15:36:03       7 阅读
  5. HIL测试-车辆模型

    2024-06-16 15:36:03       6 阅读
  6. C语言指针与数组的区别

    2024-06-16 15:36:03       6 阅读
  7. Python在SQLite中的应用:从入门到进阶

    2024-06-16 15:36:03       6 阅读