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

host/iso: Add doxygen comments in the header file #1694

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Conversation

wpiet
Copy link
Contributor

@wpiet wpiet commented Feb 14, 2024

Adds missing structures and functions documentation.

struct ble_iso_big_desc
{
/**
* The identifier of the BIG. Assigned by the Host when a new BIG is
* created. The value shall be between 0x00 and 0xEF.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick:

Suggested change
* created. The value shall be between 0x00 and 0xEF.
* created.

IMO the possible values is redundant information as it's value assigned by the host, not a function parameter provided by the user.

Comment on lines 58 to 69
/**
* The maximum time in microseconds for transmission of PDUs of all BISes in
* a BIG event. The value of BIG_Sync_Delay shall equal the time from the
* anchor point to the BIG Synchronization point and shall be between
* 0x0000EA and 0x7FFFFF.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto, probably just a short description like below would be sufficient

Suggested change
/**
* The maximum time in microseconds for transmission of PDUs of all BISes in
* a BIG event. The value of BIG_Sync_Delay shall equal the time from the
* anchor point to the BIG Synchronization point and shall be between
* 0x0000EA and 0x7FFFFF.
*/
/**
* The maximum time in microseconds for transmission of PDUs of all BISes in
* a BIG event.
*/

Comment on lines 66 to 75
/**
* The actual transport latency of transmitting payloads of all BISes in the
* BIG in microseconds. The value shall be between 0x0000EA and 0x7FFFFF.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto

Suggested change
/**
* The actual transport latency of transmitting payloads of all BISes in the
* BIG in microseconds. The value shall be between 0x0000EA and 0x7FFFFF.
*/
/**
* The actual transport latency of transmitting payloads of all BISes in the
* BIG in microseconds.
*/

Comment on lines 72 to 77
/**
* The PHY used to create the BIG. The value shall be one of the following:
* o BLE_HCI_LE_PHY_1M
* o BLE_HCI_LE_PHY_2M
* o BLE_HCI_LE_PHY_CODED
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/**
* The PHY used to create the BIG. The value shall be one of the following:
* o BLE_HCI_LE_PHY_1M
* o BLE_HCI_LE_PHY_2M
* o BLE_HCI_LE_PHY_CODED
*/
/**
* The PHY used to create the BIG. The value can be one of the following:
* o BLE_HCI_LE_PHY_1M
* o BLE_HCI_LE_PHY_2M
* o BLE_HCI_LE_PHY_CODED
*/

Comment on lines 80 to 83
/**
* The number of subevents per BIS in each BIG event. The value shall be
* between 1 and 31 and shall be an integer multiple of BN.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/**
* The number of subevents per BIS in each BIG event. The value shall be
* between 1 and 31 and shall be an integer multiple of BN.
*/
/**
* The number of subevents per BIS in each BIG event.
*/

Comment on lines 113 to 116
/**
* The time between two adjacent BIG anchor points in units of 1.25 ms. The
* value shall be between 0x0004 and 0x0C80 (i.e. 5 ms to 4 s).
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/**
* The time between two adjacent BIG anchor points in units of 1.25 ms. The
* value shall be between 0x0004 and 0x0C80 (i.e. 5 ms to 4 s).
*/
/**
* The time between two adjacent BIG anchor points in units of 1.25 ms.
*/

Comment on lines 119 to 121
/**
* The total number of BISes in the BIG. The value shall be between 1 and 31.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/**
* The total number of BISes in the BIG. The value shall be between 1 and 31.
*/
/**
* The total number of BISes in the BIG.
*/

Comment on lines 124 to 127
/**
* The connection handles of all the BIS in the BIG. The value shall be
* between 0x0000 and 0x0EFF.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/**
* The connection handles of all the BIS in the BIG. The value shall be
* between 0x0000 and 0x0EFF.
*/
/**
* The connection handles of all the BIS in the BIG.
*/

Comment on lines 199 to 244
/**
* The PHY parameter is a bit field that indicates the PHY used for
* transmission of PDUs of BISes in the BIG. The value can be one of the
* following:
* o BLE_HCI_LE_PHY_1M_PREF_MASK
* o BLE_HCI_LE_PHY_2M_PREF_MASK
* o BLE_HCI_LE_PHY_CODED_PREF_MASK
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/**
* The PHY parameter is a bit field that indicates the PHY used for
* transmission of PDUs of BISes in the BIG. The value can be one of the
* following:
* o BLE_HCI_LE_PHY_1M_PREF_MASK
* o BLE_HCI_LE_PHY_2M_PREF_MASK
* o BLE_HCI_LE_PHY_CODED_PREF_MASK
*/
/**
* The PHY parameter is a bit field that indicates the PHY used for
* transmission of PDUs of BISes in the BIG. The value shall be one of the
* following:
* o BLE_HCI_LE_PHY_1M_PREF_MASK
* o BLE_HCI_LE_PHY_2M_PREF_MASK
* o BLE_HCI_LE_PHY_CODED_PREF_MASK
*/

Comment on lines 209 to 252
/**
* Indicates the preferred method of arranging subevents of multiple BISes.
* The value can be one of the following:
* o 0x00 - Sequential
* o 0x01 - Interleaved
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/**
* Indicates the preferred method of arranging subevents of multiple BISes.
* The value can be one of the following:
* o 0x00 - Sequential
* o 0x01 - Interleaved
*/
/**
* Indicates the preferred method of arranging subevents of multiple BISes.
* The value shall be one of the following:
* o 0x00 - Sequential
* o 0x01 - Interleaved
*/

and in other places

Adds missing structures and functions documentation.
Copy link
Contributor

@MariuszSkamra MariuszSkamra left a comment

Choose a reason for hiding this comment

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

LGTM

@sjanc sjanc merged commit ebe1e78 into apache:master Feb 28, 2024
17 checks passed
@wpiet wpiet deleted the iso-doc branch February 28, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants