Skip to content
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

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Jul 3, 2024

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

@Thalley Thalley self-assigned this Jul 3, 2024
@Thalley Thalley added the area: Bluetooth ISO Bluetooth LE Isochronous Channels label Jul 3, 2024
@Thalley Thalley marked this pull request as ready for review July 3, 2024 12:27
@Thalley Thalley added this to the v3.7.0 milestone Jul 3, 2024
@@ -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 */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/** 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.
/**
Copy link
Collaborator

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?

Copy link
Collaborator Author

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. */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/** Whether or not to encrypt the streams. */
/** @brief Whether or not to encrypt the streams. */

Copy link
Collaborator Author

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 */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/** Whether or not the streams of the BIG are encrypted */
/** @brief Whether or not the streams of the BIG are encrypted */

Copy link
Collaborator Author

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 */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/** The ACL connection that is requesting authorization */
/** @brief The ACL connection that is requesting authorization */

Copy link
Collaborator Author

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 */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/** Array of pointers to BIS channels */
/** @brief Array of pointers to BIS channels */

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

@Thalley Thalley force-pushed the iso_doc_updates branch 2 times, most recently from d2216e3 to 561bb95 Compare July 5, 2024 08:26
@aescolar
Copy link
Member

aescolar commented Jul 9, 2024

@kruithofa please re-review

kruithofa
kruithofa previously approved these changes Jul 9, 2024
niym-ot
niym-ot previously approved these changes Jul 10, 2024
include/zephyr/bluetooth/iso.h Outdated Show resolved Hide resolved
include/zephyr/bluetooth/iso.h Outdated Show resolved Hide resolved
include/zephyr/bluetooth/iso.h Outdated Show resolved Hide resolved
include/zephyr/bluetooth/iso.h Outdated Show resolved Hide resolved
include/zephyr/bluetooth/iso.h Show resolved Hide resolved
include/zephyr/bluetooth/iso.h Outdated Show resolved Hide resolved
include/zephyr/bluetooth/iso.h Outdated Show resolved Hide resolved
include/zephyr/bluetooth/iso.h Outdated Show resolved Hide resolved
include/zephyr/bluetooth/iso.h Outdated Show resolved Hide resolved
include/zephyr/bluetooth/iso.h Outdated Show resolved Hide resolved
@Thalley Thalley requested a review from niym-ot July 10, 2024 07:48
@Thalley Thalley dismissed stale reviews from niym-ot and kruithofa via 1d53ff4 July 10, 2024 07:48
niym-ot
niym-ot previously approved these changes Jul 10, 2024
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]>
@aescolar aescolar merged commit 6c71a88 into zephyrproject-rtos:main Jul 10, 2024
22 checks passed
@Thalley Thalley deleted the iso_doc_updates branch July 10, 2024 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants