Skip to content

Commit f711fd7

Browse files
Thalleynashif
authored andcommitted
Bluetooth: MICP: Add missing documentation in micp.h
Add missing documentation for some defintions in micp.h Signed-off-by: Emil Gydesen <[email protected]>
1 parent d2e6ed8 commit f711fd7

File tree

1 file changed

+36
-5
lines changed
  • include/zephyr/bluetooth/audio

1 file changed

+36
-5
lines changed

include/zephyr/bluetooth/audio/micp.h

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
/**
2+
* @file
3+
* @brief Bluetooth Microphone Control Profile (MICP) APIs.
4+
*/
5+
16
/*
2-
* Copyright (c) 2020-2022 Nordic Semiconductor ASA
7+
* Copyright (c) 2020-2024 Nordic Semiconductor ASA
38
*
49
* SPDX-License-Identifier: Apache-2.0
510
*/
@@ -29,26 +34,42 @@
2934
extern "C" {
3035
#endif
3136

37+
/**
38+
* Defines the maximum number of Microphone Control Service instances for the
39+
* Microphone Control Profile Microphone Device
40+
*/
3241
#if defined(CONFIG_BT_MICP_MIC_DEV)
3342
#define BT_MICP_MIC_DEV_AICS_CNT CONFIG_BT_MICP_MIC_DEV_AICS_INSTANCE_COUNT
3443
#else
3544
#define BT_MICP_MIC_DEV_AICS_CNT 0
3645
#endif /* CONFIG_BT_MICP_MIC_DEV */
3746

38-
/** Application error codes */
47+
/**
48+
* @name Application error codes
49+
* @{
50+
*/
51+
/** Mute/unmute commands are disabled. */
3952
#define BT_MICP_ERR_MUTE_DISABLED 0x80
53+
/** @} */
4054

41-
/** Microphone Control Profile mute states */
55+
/**
56+
* @name Microphone Control Profile mute states
57+
* @{
58+
*/
59+
/** The microphone state is unmuted */
4260
#define BT_MICP_MUTE_UNMUTED 0x00
61+
/** The microphone state is muted */
4362
#define BT_MICP_MUTE_MUTED 0x01
63+
/** The microphone state is disabled and cannot be muted or unmuted */
4464
#define BT_MICP_MUTE_DISABLED 0x02
65+
/** @} */
4566

4667
/** @brief Opaque Microphone Controller instance. */
4768
struct bt_micp_mic_ctlr;
4869

4970
/** @brief Register parameters structure for Microphone Control Service */
5071
struct bt_micp_mic_dev_register_param {
51-
#if defined(CONFIG_BT_MICP_MIC_DEV_AICS)
72+
#if defined(CONFIG_BT_MICP_MIC_DEV_AICS) || defined(__DOXYGEN__)
5273
/** Register parameter structure for Audio Input Control Services */
5374
struct bt_aics_register_param aics_param[BT_MICP_MIC_DEV_AICS_CNT];
5475
#endif /* CONFIG_BT_MICP_MIC_DEV_AICS */
@@ -98,6 +119,11 @@ int bt_micp_mic_dev_register(struct bt_micp_mic_dev_register_param *param);
98119
*/
99120
int bt_micp_mic_dev_included_get(struct bt_micp_included *included);
100121

122+
/**
123+
* @brief Struct to hold the Microphone Device callbacks
124+
*
125+
* These can be registered for usage with bt_micp_mic_dev_register().
126+
*/
101127
struct bt_micp_mic_dev_cb {
102128
/**
103129
* @brief Callback function for Microphone Device mute.
@@ -141,6 +167,11 @@ int bt_micp_mic_dev_mute_disable(void);
141167
*/
142168
int bt_micp_mic_dev_mute_get(void);
143169

170+
/**
171+
* @brief Struct to hold the Microphone Controller callbacks
172+
*
173+
* These can be registered for usage with bt_micp_mic_ctlr_cb_register().
174+
*/
144175
struct bt_micp_mic_ctlr_cb {
145176
/**
146177
* @brief Callback function for Microphone Control Profile mute.
@@ -188,7 +219,7 @@ struct bt_micp_mic_ctlr_cb {
188219
struct bt_aics_cb aics_cb;
189220
#endif /* CONFIG_BT_MICP_MIC_CTLR_AICS */
190221

191-
/** Internally used field for list handling */
222+
/** @internal Internally used field for list handling */
192223
sys_snode_t _node;
193224
};
194225

0 commit comments

Comments
 (0)