yabo国际娱乐Dialog半导体客户支持-报告ID https://support.dialog-semiconductor.com/resource-keywords/report-id DA14580用HID鼠标定制手柄的例子 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software-dialog-%E2%80%9Csmartbond%E2%80%9D%E7%B3%BB%E5%88%97%E4%BD%8E%E5%8A%9F%E8%80%97%E8%93%9D%E7%89%99%E2%80%94%E8%BD%AF%E4%BB%B6/da14580-3
论坛: href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件-对话框- 9 csmartbond % E2 % % E2 % 80% 80% 9 d % E7%B3%BB % E5 % 88% 97% e4%bd % 8 8 e % E5 % % E8 % 9 f % E8 % 80% 97% 93% 9 E2 % d % E7 % 89% 99% 80% 94% e8%bd % AF % E4%BB % B6”“=“sioc:容器sioc:论坛”属性=“rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件/ /对话框“Smartbond”系列低功耗蓝牙——软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >嗨支持,< br / >我想开发一个手柄控制按钮和一个joystick-like摇臂。我正在尝试开发它基于HID鼠标的例子。我有一个简单的自制硬件电路板和物联网开发板。
作为一个初学者,我已经阅读了HID服务规范,HID的USB设备类定义,HOGP规范等。但是,我仍然有一些问题。< / p > < p > 1。在MOUSE示例中,我看到发送到主机的报告存储在normal_key_report_st[6]和extended_key_report_st[1]中。它们是否特别对应id = 1和2的报告?既然这个例子已经为我们定义了报告id 3报告映射,我如何使用它? Do I need to expand the array extended_key_report_st? Or create a new array and expand the REPORT_TYPE enum like this?

enum REPORT_TYPE {
NORMAL_REPORT = 0,
EXTENDED_REPORT = 1,
AUXILIARY_REPORT = 2
};

If so, what about the KEY_BUFF_TYPE?

enum KEY_BUFF_TYPE {
FREE,
PRESS,
RELEASE,
EXTENDED
};

2. I have tried to find the answer by studying the procedure of how mouse buttons work. I see their keycode 0xF400, 0xF401, 0xF402. What do these keycodes mean? I have read through kbd_process_keycode function. Does the developer pick a keycode and modify the corresponding progress function or he was flowing some rules of keycode? What if I would like to develop my own buttons? How do I choose the keycode? I have found some explanation of keycode in the KEYBOARD manual but it seems a little bit different for a mouse.

Thank you so much!
Joy

BTW I speak Chinese. So anyone having suggestions are appreciated whether you speak English or Chinese. ^^

Device: 
Sat, 2017年7月22日03:23:57 +0000 Joyyqy 70557年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software-dialog-%E2%80%9Csmartbond%E2%80%9D%E7%B3%BB%E5%88%97%E4%BD%8E%E5%8A%9F%E8%80%97%E8%93%9D%E7%89%99%E2%80%94%E8%BD%AF%E4%BB%B6/da14580-3#comments