-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bluetooth: tester: MICP Client tests
Add support for MICP Client tests. Signed-off-by: Piotr Narajowski <piotr.narajowski@codecoup.pl>
- Loading branch information
1 parent
df6f074
commit ea16167
Showing
13 changed files
with
1,083 additions
and
326 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** @file | ||
* @brief Internal APIs for Bluetooth MICP. | ||
*/ | ||
|
||
/* | ||
* Copyright (c) 2020 Bose Corporation | ||
* Copyright (c) 2020 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_MICP_INTERNAL_ | ||
#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_MICP_INTERNAL_ | ||
#include <zephyr/types.h> | ||
#include <zephyr/bluetooth/gatt.h> | ||
|
||
struct bt_micp_mic_ctlr { | ||
uint16_t start_handle; | ||
uint16_t end_handle; | ||
uint16_t mute_handle; | ||
struct bt_gatt_subscribe_params mute_sub_params; | ||
struct bt_gatt_discover_params mute_sub_disc_params; | ||
|
||
bool busy; | ||
uint8_t mute_val_buf[1]; /* Mute value is a single octet */ | ||
struct bt_gatt_write_params write_params; | ||
struct bt_gatt_read_params read_params; | ||
struct bt_gatt_discover_params discover_params; | ||
struct bt_conn *conn; | ||
|
||
uint8_t aics_inst_cnt; | ||
struct bt_aics *aics[CONFIG_BT_AICS_CLIENT_MAX_INSTANCE_COUNT]; | ||
}; | ||
|
||
#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_MICP_INTERNAL_ */ |
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
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.