-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Bluetooth: Audio: API for the distribute broadcast code procedure #80671
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: Audio: API for the distribute broadcast code procedure #80671
Conversation
Thalley
left a comment
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.
A few minor things, otherwise LGTM
Define the API for the distribute broadcast code CAP procedure Signed-off-by: Andries Kruithof <[email protected]>
28fefde to
7ab1fe0
Compare
| /** | ||
| * @brief 16-octet broadcast code. | ||
| * | ||
| * If the value is a string or a the value is less than 16 octets, | ||
| * the remaining octets shall be 0. | ||
| * | ||
| * Example: | ||
| * The string "Broadcast Code" shall be | ||
| * [42 72 6F 61 64 63 61 73 74 20 43 6F 64 65 00 00] | ||
| */ | ||
| uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]; |
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.
Out of scope of this PR, but perhaps we should consider defining a type for the broadcast code (similar to the UUID type in #77884), so that we don't have to write the explanation of how a broadcast code should be formatted all the places it is used, and can just add that to the type instead
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.
Good idea, since this piece of code is in 3 files: iso.h, bap.h, and cap.h and the description is (more or less) copied to all places
Define the API for the distribute broadcast code CAP procedure