1 /* btp_vocs.h - Bluetooth tester headers */
2 
3 /*
4  * Copyright (c) 2022 Codecoup
5  *
6  * SPDX-License-Identifier: Apache-2.0
7  */
8 
9 #include <zephyr/sys/util.h>
10 
11 #define BTP_VOCS_READ_SUPPORTED_COMMANDS	0x01
12 struct btp_vocs_read_supported_commands_rp {
13 	uint8_t data[0];
14 } __packed;
15 
16 #define BTP_VOCS_UPDATE_LOC			0x02
17 struct btp_vocs_audio_loc_cmd {
18 	bt_addr_le_t address;
19 	uint32_t loc;
20 } __packed;
21 
22 #define BTP_VOCS_UPDATE_DESC			0x03
23 struct btp_vocs_audio_desc_cmd {
24 	uint8_t desc_len;
25 	uint8_t desc[0];
26 } __packed;
27 
28 #define BTP_VOCS_STATE_GET			0x04
29 struct btp_vocs_state_get_cmd {
30 	bt_addr_le_t address;
31 } __packed;
32 
33 #define BTP_VOCS_LOCATION_GET			0x05
34 struct btp_vocs_location_get_cmd {
35 	bt_addr_le_t address;
36 } __packed;
37 
38 #define BTP_VOCS_OFFSET_STATE_SET		0x06
39 struct btp_vocs_offset_set_cmd {
40 	bt_addr_le_t address;
41 	int16_t offset;
42 } __packed;
43 
44 #define BTP_VOCS_OFFSET_STATE_EV		0x80
45 struct btp_vocs_offset_state_ev {
46 	bt_addr_le_t address;
47 	uint8_t att_status;
48 	int16_t offset;
49 } __packed;
50 
51 #define BTP_VOCS_AUDIO_LOCATION_EV		0x81
52 struct btp_vocs_audio_location_ev {
53 	bt_addr_le_t address;
54 	uint8_t att_status;
55 	uint32_t location;
56 } __packed;
57 
58 #define BTP_VOCS_PROCEDURE_EV			0x82
59 struct btp_vocs_procedure_ev {
60 	bt_addr_le_t address;
61 	uint8_t att_status;
62 	uint8_t opcode;
63 } __packed;
64