From cf5796254e2de2edfe0c5d885e2a8efd92578a36 Mon Sep 17 00:00:00 2001 From: Grzegorz Kolodziejczyk Date: Fri, 28 Feb 2014 12:20:01 +0100 Subject: [PATCH] android/hal-gatt-api: Add Server Request Read Notification --- android/hal-ipc-api.txt | 8 ++++++++ android/hal-msg.h | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt index 5cf22a8c1..08dbed685 100644 --- a/android/hal-ipc-api.txt +++ b/android/hal-ipc-api.txt @@ -2017,6 +2017,14 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID) Service Handle (4 octets) Opcode 0x9c - Request Read notification + + Notification parameters: Connection ID (4 octets) + Trans ID (4 octets) + Address (6 octets) + Attribute Handle (4 octets) + Offset (4 octets) + Is Long (1 octet) + Opcode 0x9d - Request Write notification Opcode 0x9e - Request Execute Write notification Opcode 0x9f - Response Confirmation notification diff --git a/android/hal-msg.h b/android/hal-msg.h index cca77a3ca..4c70d909b 100644 --- a/android/hal-msg.h +++ b/android/hal-msg.h @@ -1456,3 +1456,13 @@ struct hal_ev_gatt_server_service_deleted { int32_t server_if; int32_t srvc_handle; } __attribute__((packed)); + +#define HAL_EV_GATT_SERVER_REQUEST_READ 0x9c +struct hal_ev_gatt_server_request_read { + int32_t conn_id; + int32_t trans_id; + uint8_t bdaddr[6]; + int32_t attr_handle; + int32_t offset; + uint8_t is_long; +} __attribute__((packed)); -- 2.47.3