* [PATCH] android: Add hidhost defines and structures to header file
@ 2013-10-22 8:38 Ravi kumar Veeramally
2013-10-22 10:34 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Ravi kumar Veeramally @ 2013-10-22 8:38 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Ravi kumar Veeramally
---
android/hal-msg.h | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 6266903..8dadd64 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -179,6 +179,73 @@ struct hal_msg_cmd_bt_le_test_mode {
uint8_t data[0];
} __attribute__((packed));
+#define HAL_MSG_OP_BT_HID_CONNECT 0x01
+struct hal_msg_cmd_bt_hid_connect {
+ uint8_t bdaddr[6];
+} __attribute__((packed));
+
+#define HAL_MSG_OP_BT_HID_DISCONNECT 0x02
+struct hal_msg_cmd_bt_hid_disconnect {
+ uint8_t bdaddr[6];
+} __attribute__((packed));
+
+#define HAL_MSG_OP_BT_HID_VP 0x03
+struct hal_msg_cmd_bt_hid_vp {
+ uint8_t bdaddr[6];
+} __attribute__((packed));
+
+#define HAL_MSG_OP_BT_HID_SET_INFO 0x04
+struct hal_msg_cmd_bt_hid_set_info {
+ uint8_t bdaddr[6];
+ uint8_t attr;
+ uint8_t subclass;
+ uint8_t app_id;
+ uint8_t vendor[2];
+ uint8_t product[2];
+ uint8_t country[2];
+ uint8_t descr_len[2];
+ uint8_t descr[0];
+} __attribute__((packed));
+
+#define HAL_MSG_BT_HID_REPORT_PROTOCOL 0x00
+#define HAL_MSG_BT_HID_BOOT_PROTOCOL 0x01
+#define HAL_MSG_BT_HID_UNSUPPORTED_PROTOCOL 0xff
+
+#define HAL_MSG_OP_BT_HID_GET_PROTOCOL 0x05
+struct hal_msg_cmd_bt_hid_get_protocol {
+ uint8_t bdaddr[6];
+ uint8_t mode;
+} __attribute__((packed));
+
+#define HAL_MSG_OP_BT_HID_SET_PROTOCOL 0x06
+struct hal_msg_cmd_bt_hid_set_protocol {
+ uint8_t bdaddr[6];
+ uint8_t mode;
+} __attribute__((packed));
+
+#define HAL_MSG_BT_HID_INPUT_REPORT 0x01
+#define HAL_MSG_BT_HID_OUTPUT_REPORT 0x02
+#define HAL_MSG_BT_HID_FEATURE_REPORT 0x03
+
+#define HAL_MSG_OP_BT_HID_GET_REPORT 0x07
+struct hal_msg_cmd_bt_hid_get_report {
+ uint8_t bdaddr[6];
+ uint8_t type;
+ uint8_t id;
+ uint8_t buf[2];
+} __attribute__((packed));
+
+#define HAL_MSG_OP_BT_HID_SET_REPORT 0x08
+struct hal_msg_cmd_bt_hid_set_report {
+ uint8_t bdaddr[6];
+ uint8_t type;
+} __attribute__((packed));
+
+#define HAL_MSG_OP_BT_HID_SEND_DATA 0x09
+struct hal_msg_cmd_bt_hid_send_data {
+ uint8_t bdaddr[6];
+} __attribute__((packed));
+
/* Notifications and confirmations */
#define HAL_MSG_EV_BT_ERROR 0x80
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] android: Add hidhost defines and structures to header file
2013-10-22 8:38 [PATCH] android: Add hidhost defines and structures to header file Ravi kumar Veeramally
@ 2013-10-22 10:34 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2013-10-22 10:34 UTC (permalink / raw)
To: Ravi kumar Veeramally; +Cc: linux-bluetooth
Hi Ravi,
On Tue, Oct 22, 2013, Ravi kumar Veeramally wrote:
> ---
> android/hal-msg.h | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 67 insertions(+)
Applied. Thanks.
Johan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-22 10:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-22 8:38 [PATCH] android: Add hidhost defines and structures to header file Ravi kumar Veeramally
2013-10-22 10:34 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox