1 /* btp_pacs.h - Bluetooth tester headers */
2 
3 /*
4  * Copyright (c) 2023 Codecoup
5  *
6  * SPDX-License-Identifier: Apache-2.0
7  */
8 
9 /* PACS commands */
10 #define BTP_PACS_READ_SUPPORTED_COMMANDS			0x01
11 struct btp_pacs_read_supported_commands_rp {
12 	uint8_t data[0];
13 } __packed;
14 
15 #define BTP_PACS_CHARACTERISTIC_SINK_PAC			0x01
16 #define BTP_PACS_CHARACTERISTIC_SOURCE_PAC			0x02
17 #define BTP_PACS_CHARACTERISTIC_SINK_AUDIO_LOCATIONS		0x03
18 #define BTP_PACS_CHARACTERISTIC_SOURCE_AUDIO_LOCATIONS		0x04
19 #define BTP_PACS_CHARACTERISTIC_AVAILABLE_AUDIO_CONTEXTS	0x05
20 #define BTP_PACS_CHARACTERISTIC_SUPPORTED_AUDIO_CONTEXTS	0x06
21 
22 #define BTP_PACS_UPDATE_CHARACTERISTIC				0x02
23 struct btp_pacs_update_characteristic_cmd {
24 	uint8_t characteristic;
25 } __packed;
26 
27 #define BTP_PACS_SET_LOCATION					0x03
28 struct btp_pacs_set_location_cmd {
29 	uint8_t dir;
30 	uint32_t location;
31 } __packed;
32 
33 #define BTP_PACS_SET_AVAILABLE_CONTEXTS				0x04
34 struct btp_pacs_set_available_contexts_cmd {
35 	uint16_t sink_contexts;
36 	uint16_t source_contexts;
37 } __packed;
38 
39 #define BTP_PACS_SET_SUPPORTED_CONTEXTS				0x05
40 struct btp_pacs_set_supported_contexts_cmd {
41 	uint16_t sink_contexts;
42 	uint16_t source_contexts;
43 } __packed;
44