mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-30 07:34:27 +08:00
android/hal-gatt-api: Add Client Test Command
This commit is contained in:
parent
61c5fdb0e0
commit
47af8ad9a0
@ -1650,6 +1650,19 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
|
|||||||
|
|
||||||
Opcode 0x16 - Test Command command/response
|
Opcode 0x16 - Test Command command/response
|
||||||
|
|
||||||
|
Command parameters: Command (4 octets)
|
||||||
|
Test Parameters (32 octets)
|
||||||
|
Valid Test Parameter: Address (6 octets)
|
||||||
|
UUID (16 octets)
|
||||||
|
U1 (2 octets)
|
||||||
|
U2 (2 octets)
|
||||||
|
U3 (2 octets)
|
||||||
|
U4 (2 octets)
|
||||||
|
U5 (2 octets)
|
||||||
|
Response parameters: <none>
|
||||||
|
|
||||||
|
In case of an error, the error response will be returned.
|
||||||
|
|
||||||
Opcode 0x17 - Register Server command/response
|
Opcode 0x17 - Register Server command/response
|
||||||
Opcode 0x18 - Unregister Server command/response
|
Opcode 0x18 - Unregister Server command/response
|
||||||
Opcode 0x19 - Connect Peripheral command/response
|
Opcode 0x19 - Connect Peripheral command/response
|
||||||
|
@ -686,6 +686,22 @@ struct hal_cmd_gatt_client_set_adv_data {
|
|||||||
uint8_t manufacturer_data[0];
|
uint8_t manufacturer_data[0];
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
||||||
|
#define HAL_OP_GATT_CLIENT_TEST_COMMAND 0x16
|
||||||
|
struct hal_gatt_test_params {
|
||||||
|
uint8_t bda1[6];
|
||||||
|
uint8_t uuid1[16];
|
||||||
|
uint16_t u1;
|
||||||
|
uint16_t u2;
|
||||||
|
uint16_t u3;
|
||||||
|
uint16_t u4;
|
||||||
|
uint16_t u5;
|
||||||
|
} __attribute__((packed));
|
||||||
|
|
||||||
|
struct hal_cmd_gatt_client_test_command {
|
||||||
|
int32_t command;
|
||||||
|
struct hal_gatt_test_params params;
|
||||||
|
} __attribute__((packed));
|
||||||
|
|
||||||
/* Notifications and confirmations */
|
/* Notifications and confirmations */
|
||||||
|
|
||||||
#define HAL_POWER_OFF 0x00
|
#define HAL_POWER_OFF 0x00
|
||||||
|
Loading…
Reference in New Issue
Block a user