File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
include/bluetooth/services
subsys/bluetooth/services Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,9 @@ enum bt_hids_notify_evt {
154154/** @brief Report data.
155155 */
156156struct bt_hids_rep {
157+ /** Report ID defined in the HIDS Report Map. Not valid for boot reports. */
158+ uint8_t id ;
159+
157160 /** Pointer to the report data. */
158161 uint8_t * data ;
159162
Original file line number Diff line number Diff line change @@ -289,6 +289,7 @@ static ssize_t hids_outp_rep_read(struct bt_conn *conn,
289289
290290 if (rep -> handler ) {
291291 struct bt_hids_rep report = {
292+ .id = rep -> id ,
292293 .data = buf ,
293294 .size = rep -> size ,
294295 };
@@ -333,6 +334,7 @@ static ssize_t hids_outp_rep_write(struct bt_conn *conn,
333334
334335 if (rep -> handler ) {
335336 struct bt_hids_rep report = {
337+ .id = rep -> id ,
336338 .data = rep_data ,
337339 .size = rep -> size ,
338340 };
@@ -388,6 +390,7 @@ static ssize_t hids_feat_rep_read(struct bt_conn *conn,
388390
389391 if (rep -> handler ) {
390392 struct bt_hids_rep report = {
393+ .id = rep -> id ,
391394 .data = buf ,
392395 .size = rep -> size ,
393396 };
@@ -438,6 +441,7 @@ static ssize_t hids_feat_rep_write(struct bt_conn *conn,
438441
439442 if (rep -> handler ) {
440443 struct bt_hids_rep report = {
444+ .id = rep -> id ,
441445 .data = rep_data ,
442446 .size = rep -> size ,
443447 };
@@ -628,6 +632,7 @@ static ssize_t hids_boot_kb_outp_report_read(struct bt_conn *conn,
628632
629633 if (rep -> handler ) {
630634 struct bt_hids_rep report = {
635+ .id = 0 ,
631636 .data = buf ,
632637 .size = sizeof (conn_data -> hids_boot_kb_outp_rep_ctx ),
633638 };
@@ -670,6 +675,7 @@ static ssize_t hids_boot_kb_outp_report_write(struct bt_conn *conn,
670675
671676 if (rep -> handler ) {
672677 struct bt_hids_rep report = {
678+ .id = 0 ,
673679 .data = rep_data ,
674680 .size = sizeof (conn_data -> hids_boot_kb_outp_rep_ctx ),
675681 };
You can’t perform that action at this time.
0 commit comments