-
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: Mesh: Bridge Configuration Client/Server API #75175
Bluetooth: Mesh: Bridge Configuration Client/Server API #75175
Conversation
7227e8b
to
f700e9c
Compare
/** Bridging Table state entry corresponding to a entry in the Bridging Table. */ | ||
struct bridging_table_entry { | ||
/** Allowed directions for the bridged traffic (or bridged traffic not allowed) */ | ||
uint8_t directions; |
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.
Since this will be used at many places, it could be optimized for memory footprint as:
uint32_t direction:8;
uint32_t netidx1:12;
uint32_t netidx2:12;
uint16_t addr1;
uint16_t addr2;
This might also help with mapping octets in the message to this struct.
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.
I also added __packed to the struct.
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.
I don't think this is necessary.
ca921ab
to
6298a7a
Compare
3796732
to
898cc75
Compare
85b4105
to
862a73c
Compare
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.
Looks better, but still requires some changes. Also, please solve CI comments.
862a73c
to
e849e7f
Compare
Adding documentation and function calles for the API's in Bridge Configuration Client model and Bridge Configuration Server model. Signed-off-by: Ingar Kulbrandstad <[email protected]>
e849e7f
to
947e867
Compare
/** Bridging Table state entry corresponding to a entry in the Bridging Table. */ | ||
struct bridging_table_entry { | ||
/** Allowed directions for the bridged traffic (or bridged traffic not allowed) */ | ||
uint8_t directions; |
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.
I don't think this is necessary.
470c0d1
into
zephyrproject-rtos:collab-mesh-subnet
Adding documentation and function calles for the API's in Bridge Configuration Client model and Bridge Configuration Server model.