Bluetooth: controller: Move initiated flag into role specific union
Move the initiated bit flag into role specific union, so that other role specific bit flags can share bit space in the LLL context structure. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
cd798202cb
commit
b2e802b018
9 changed files with 28 additions and 23 deletions
|
@ -46,7 +46,6 @@ struct lll_conn {
|
|||
uint8_t data_chan_count:6;
|
||||
uint8_t data_chan_sel:1;
|
||||
uint8_t role:1;
|
||||
uint8_t initiated:1;
|
||||
|
||||
union {
|
||||
struct {
|
||||
|
@ -57,18 +56,24 @@ struct lll_conn {
|
|||
uint16_t data_chan_id;
|
||||
};
|
||||
|
||||
union {
|
||||
struct {
|
||||
uint8_t initiated:1;
|
||||
} master;
|
||||
#if defined(CONFIG_BT_PERIPHERAL)
|
||||
struct {
|
||||
uint8_t latency_enabled:1;
|
||||
struct {
|
||||
uint8_t initiated:1;
|
||||
uint8_t latency_enabled:1;
|
||||
|
||||
uint32_t window_widening_periodic_us;
|
||||
uint32_t window_widening_max_us;
|
||||
uint32_t window_widening_prepare_us;
|
||||
uint32_t window_widening_event_us;
|
||||
uint32_t window_size_prepare_us;
|
||||
uint32_t window_size_event_us;
|
||||
} slave;
|
||||
uint32_t window_widening_periodic_us;
|
||||
uint32_t window_widening_max_us;
|
||||
uint32_t window_widening_prepare_us;
|
||||
uint32_t window_widening_event_us;
|
||||
uint32_t window_size_prepare_us;
|
||||
uint32_t window_size_event_us;
|
||||
} slave;
|
||||
#endif /* CONFIG_BT_PERIPHERAL */
|
||||
};
|
||||
|
||||
#if defined(CONFIG_BT_CTLR_DATA_LENGTH)
|
||||
uint16_t max_tx_octets;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue