1 /* btp_mics.h - Bluetooth tester headers */
2 
3 /*
4  * Copyright (c) 2024 Codecoup
5  *
6  * SPDX-License-Identifier: Apache-2.0
7  */
8 
9 /* TBS commands */
10 #define BTP_TBS_READ_SUPPORTED_COMMANDS		0x01
11 struct btp_tbs_read_supported_commands_rp {
12 	uint8_t data[0];
13 } __packed;
14 
15 #define BTP_TBS_REMOTE_INCOMING			0x02
16 struct btp_tbs_remote_incoming_cmd {
17 	uint8_t index;
18 	uint8_t recv_len;
19 	uint8_t caller_len;
20 	uint8_t fn_len;
21 	uint8_t data_len;
22 	uint8_t data[0];
23 } __packed;
24 
25 #define BTP_TBS_HOLD				0x03
26 struct btp_tbs_hold_cmd {
27 	uint8_t index;
28 } __packed;
29 
30 #define BTP_TBS_SET_BEARER_NAME			0x04
31 struct btp_tbs_set_bearer_name_cmd {
32 	uint8_t index;
33 	uint8_t name_len;
34 	uint8_t name[0];
35 } __packed;
36 
37 #define BTP_TBS_SET_TECHNOLOGY			0x05
38 struct btp_tbs_set_technology_cmd {
39 	uint8_t index;
40 	uint8_t tech;
41 } __packed;
42 
43 #define BTP_TBS_SET_URI_SCHEME			0x06
44 struct btp_tbs_set_uri_schemes_list_cmd {
45 	uint8_t index;
46 	uint8_t uri_len;
47 	uint8_t uri_count;
48 	uint8_t uri_list[0];
49 } __packed;
50 
51 #define BTP_TBS_SET_STATUS_FLAGS		0x07
52 struct btp_tbs_set_status_flags_cmd {
53 	uint8_t index;
54 	uint16_t flags;
55 } __packed;
56 
57 #define BTP_TBS_REMOTE_HOLD			0x08
58 struct btp_tbs_remote_hold_cmd {
59 	uint8_t index;
60 } __packed;
61 
62 #define BTP_TBS_ORIGINATE			0x09
63 struct btp_tbs_originate_cmd {
64 	uint8_t index;
65 	uint8_t uri_len;
66 	uint8_t uri[0];
67 } __packed;
68 
69 #define BTP_TBS_SET_SIGNAL_STRENGTH		0x0a
70 struct btp_tbs_set_signal_strength_cmd {
71 	uint8_t index;
72 	uint8_t strength;
73 } __packed;
74