DA14531 BLE HID 中的 Feature report 的傳送與接收,該應用哪個函數來實現

网址中找到 DA14531 BLE  HID 的范例

https://github.com/dialog-semiconductor/BLE_SDK6_examples/tree/main/interfaces/HID-Gamepad-Digitizer

为实现蓝芽触控板(Device)应用,将范例程式改成下方图式

从范例能得知INPUT REPORT 资料,只须呼叫 app_hogpd_send_report ()function 就能将资料回丢给 Host,
然而 Feature report 的 read write 分别该应用哪个函数及操作流程来实现, Device Feature report 才能与 HOST read write 资料.

HID_TOUCHPAD_MAX_COUNT_REPORT_ID   0x02

HID_TOUCHPAD_INPUT_REPORT_ID               0x03

//----------------------------------------------------------------------------------------------------------------------------------------------------

//------------------------------------------------------------------------------------------------------------------------------------------------

下方为网路对应的参考讯息

https://blog.51cto.com/u_15080016/4629158

https://blog.csdn.net/zhi_Alanwu/article/details/109571693

https://blog.csdn.net/XiaoXiaoPengBo/article/details/111238671

Parents
  • Hi Tom,

    相关的 Read write Notification 的属性定义可以在sdk\ble_stack\profiles\hogp\hogpd\src\hogpd.c 中的

    const struct attm_desc hids_att_db[HOGPD_IDX_NB] 结构体里找到。
    相关的report types 和 feature flag等 定义可以在sdk\ble_stack\profiles\hogp\hogpd\api\hogpd_task.h 找到
    Host 的read/Write 对应 在这里可以找到sdk\ble_stack\profiles\hogp\hogpbh\src\hogpbh_task.c
    谢谢
Reply
  • Hi Tom,

    相关的 Read write Notification 的属性定义可以在sdk\ble_stack\profiles\hogp\hogpd\src\hogpd.c 中的

    const struct attm_desc hids_att_db[HOGPD_IDX_NB] 结构体里找到。
    相关的report types 和 feature flag等 定义可以在sdk\ble_stack\profiles\hogp\hogpd\api\hogpd_task.h 找到
    Host 的read/Write 对应 在这里可以找到sdk\ble_stack\profiles\hogp\hogpbh\src\hogpbh_task.c
    谢谢
Children