-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bluetooth: ISO: Fix and format iso.h documentation #75376
Conversation
include/zephyr/bluetooth/iso.h
Outdated
@@ -172,77 +174,82 @@ struct bt_iso_chan { | |||
*/ | |||
bt_security_t required_sec_level; | |||
#endif /* CONFIG_BT_SMP && CONFIG_BT_ISO_UNICAST */ | |||
/** Node used internally by the stack */ | |||
/** @internal Node used internally by the stack */ | |||
sys_snode_t node; | |||
}; | |||
|
|||
/** @brief ISO Channel IO QoS structure. */ | |||
struct bt_iso_chan_io_qos { | |||
/** Channel SDU. Maximum value is BT_ISO_MAX_SDU */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** Channel SDU. Maximum value is BT_ISO_MAX_SDU */ | |
/** | |
* @brief Channel SDU. | |
* | |
* Channel SDU, maximum value is @ref BT_ISO_MAX_SDU | |
*/ |
@@ -271,7 +278,8 @@ enum { | |||
/** The ISO packet is valid. */ | |||
BT_ISO_FLAGS_VALID = BIT(0), | |||
|
|||
/** @brief The ISO packet may possibly contain errors. | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we also document the BT_ISO_FLAGS_VALID and BT_ISO_FLAGS_LOST?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The purpose of this PR was not to re-write existing documentation, and they are technically, however poorly, documented.
* | ||
* BT_ISO_FRAMING_UNFRAMED for unframed and | ||
* BT_ISO_FRAMING_FRAMED for framed. | ||
* @ref BT_ISO_FRAMING_UNFRAMED for unframed and @ref BT_ISO_FRAMING_FRAMED for framed. | ||
*/ | ||
uint8_t framing; | ||
|
||
/** Whether or not to encrypt the streams. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** Whether or not to encrypt the streams. */ | |
/** @brief Whether or not to encrypt the streams. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessary. @brief
is implied, and is generally not not used when there is only a single line
* | ||
* Value range is BT_ISO_SYNC_TIMEOUT_MIN to BT_ISO_SYNC_TIMEOUT_MAX. | ||
* Value range is @ref BT_ISO_SYNC_TIMEOUT_MIN to @ref BT_ISO_SYNC_TIMEOUT_MAX. | ||
*/ | ||
uint16_t sync_timeout; | ||
|
||
/** Whether or not the streams of the BIG are encrypted */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** Whether or not the streams of the BIG are encrypted */ | |
/** @brief Whether or not the streams of the BIG are encrypted */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
@@ -674,13 +702,15 @@ struct bt_iso_accept_info { | |||
/** The ACL connection that is requesting authorization */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** The ACL connection that is requesting authorization */ | |
/** @brief The ACL connection that is requesting authorization */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
@@ -513,52 +534,55 @@ struct bt_iso_big_sync_param { | |||
/** Array of pointers to BIS channels */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** Array of pointers to BIS channels */ | |
/** @brief Array of pointers to BIS channels */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
d2216e3
to
561bb95
Compare
@kruithofa please re-review |
Fixed a few bad or missing documentation parts of iso.h Also formatted some parts to be consistent with not just the file itself, but also with bluetooth.h Signed-off-by: Emil Gydesen <[email protected]>
Fixed a few bad or missing documentation parts of iso.h Also formatted some parts to be consistent with not just the file itself, but also with bluetooth.h