-
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
1953a49
commit 8827a07
Showing
10 changed files
with
1,050 additions
and
278 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
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,47 @@ | ||
/* btp_micp.h - Bluetooth tester headers */ | ||
|
||
/* | ||
* Copyright (c) 2023 Codecoup | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/* MICP commands */ | ||
#define BTP_MICP_READ_SUPPORTED_COMMANDS 0x01 | ||
struct btp_micp_read_supported_commands_rp { | ||
uint8_t data[0]; | ||
} __packed; | ||
|
||
#define BTP_MICP_CTLR_DISCOVER 0x02 | ||
struct btp_micp_discover_cmd { | ||
bt_addr_le_t address; | ||
} __packed; | ||
|
||
#define BTP_MICP_CTLR_MUTE_READ 0x03 | ||
struct btp_micp_mute_read_cmd { | ||
bt_addr_le_t address; | ||
} __packed; | ||
|
||
#define BTP_MICP_CTLR_MUTE 0x04 | ||
struct btp_micp_mute_cmd { | ||
bt_addr_le_t address; | ||
} __packed; | ||
|
||
/* MICP events */ | ||
#define BTP_MICP_DISCOVERED_EV 0x80 | ||
struct btp_micp_discovered_ev { | ||
bt_addr_le_t address; | ||
uint16_t mute_handle; | ||
uint16_t state_handle; | ||
uint16_t gain_handle; | ||
uint16_t type_handle; | ||
uint16_t status_handle; | ||
uint16_t control_handle; | ||
uint16_t desc_handle; | ||
} __packed; | ||
|
||
#define BTP_MICP_MUTE_STATE_EV 0x81 | ||
struct btp_micp_mute_state_ev { | ||
bt_addr_le_t address; | ||
uint8_t mute; | ||
} __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.