From a1ae678eed653a46611b31c9aedfb1fb04322892 Mon Sep 17 00:00:00 2001 From: Grzegorz Kolodziejczyk Date: Fri, 28 Feb 2014 12:20:03 +0100 Subject: [PATCH] android/hal-gatt-api: Add Server Request Execute Write Notification --- android/hal-ipc-api.txt | 6 ++++++ android/hal-msg.h | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt index 9aee3ab04..f4d5c9117 100644 --- a/android/hal-ipc-api.txt +++ b/android/hal-ipc-api.txt @@ -2038,4 +2038,10 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID) Value (variable) Opcode 0x9e - Request Execute Write notification + + Notification parameters: Connection ID (4 octets) + Trans ID (4 octets) + Address (6 octets) + Execute Write (4 octets) + Opcode 0x9f - Response Confirmation notification diff --git a/android/hal-msg.h b/android/hal-msg.h index d865448f5..306ac21c7 100644 --- a/android/hal-msg.h +++ b/android/hal-msg.h @@ -1479,3 +1479,11 @@ struct hal_ev_gatt_server_request_write { uint8_t is_prep; uint8_t value[0]; } __attribute__((packed)); + +#define HAL_EV_GATT_SERVER_REQUEST_EXEC_WRITE 0x9e +struct hal_ev_gatt_server_request_exec_write { + int32_t conn_id; + int32_t trans_id; + uint8_t bdaddr[6]; + int32_t exec_write; +} __attribute__((packed)); -- 2.47.3