commit | e7ee26d5ed4823d88622f169d3fdf0d700ade785 | [log] [tgz] |
---|---|---|
author | Emil Gydesen <emil.gydesen@nordicsemi.no> | Fri Mar 15 14:03:05 2024 +0100 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Tue Apr 23 15:36:39 2024 +0200 |
tree | 157877c0a503a212fcb5db707c18c8a2e6005846 | |
parent | 4a4d7584ffeed86d9f48ab70bdeec80429997199 [diff] |
Bluetooth: BAP: Shell: Moved RX and TX fields into a union An audio stream is unidirectional, so it's always either TXing or RXing, so the fields can safely be moved to an enum. The struct now has both a is_rx and is_tx field. The reason why two bools are being used, is that the both of them may be false (we need 3 states). All access to the rx and tx structs in the union shall be guarded by these fields. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>