-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bluetooth: tester: Add TBS server tests
Adding support for TBS server tests. Signed-off-by: Piotr Narajowski <[email protected]>
- Loading branch information
1 parent
e9a5834
commit 69381b1
Showing
7 changed files
with
401 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/* btp_mics.h - Bluetooth tester headers */ | ||
|
||
/* | ||
* Copyright (c) 2024 Codecoup | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/* TBS commands */ | ||
#define BTP_TBS_READ_SUPPORTED_COMMANDS 0x01 | ||
struct btp_tbs_read_supported_commands_rp { | ||
uint8_t data[0]; | ||
} __packed; | ||
|
||
#define BTP_TBS_REMOTE_INCOMING 0x02 | ||
struct btp_tbs_remote_incoming_cmd { | ||
uint8_t index; | ||
uint8_t recv_len; | ||
uint8_t caller_len; | ||
uint8_t fn_len; | ||
uint8_t data_len; | ||
uint8_t data[0]; | ||
} __packed; | ||
|
||
#define BTP_TBS_HOLD 0x03 | ||
struct btp_tbs_hold_cmd { | ||
uint8_t index; | ||
} __packed; | ||
|
||
#define BTP_TBS_SET_BEARER_NAME 0x04 | ||
struct btp_tbs_set_bearer_name_cmd { | ||
uint8_t index; | ||
uint8_t name_len; | ||
uint8_t name[0]; | ||
} __packed; | ||
|
||
#define BTP_TBS_SET_TECHNOLOGY 0x05 | ||
struct btp_tbs_set_technology_cmd { | ||
uint8_t index; | ||
uint8_t tech; | ||
} __packed; | ||
|
||
#define BTP_TBS_SET_URI_SCHEME 0x06 | ||
struct btp_tbs_set_uri_schemes_list_cmd { | ||
uint8_t index; | ||
uint8_t uri_len; | ||
uint8_t uri_count; | ||
uint8_t uri_list[0]; | ||
} __packed; | ||
|
||
#define BTP_TBS_SET_STATUS_FLAGS 0x07 | ||
struct btp_tbs_set_status_flags_cmd { | ||
uint8_t index; | ||
uint16_t flags; | ||
} __packed; | ||
|
||
#define BTP_TBS_REMOTE_HOLD 0x08 | ||
struct btp_tbs_remote_hold_cmd { | ||
uint8_t index; | ||
} __packed; | ||
|
||
#define BTP_TBS_ORIGINATE 0x09 | ||
struct btp_tbs_originate_cmd { | ||
uint8_t index; | ||
uint8_t uri_len; | ||
uint8_t uri[0]; | ||
} __packed; | ||
|
||
#define BTP_TBS_SET_SIGNAL_STRENGTH 0x0a | ||
struct btp_tbs_set_signal_strength_cmd { | ||
uint8_t index; | ||
uint8_t strength; | ||
} __packed; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.