Bluetooth: ISO: Add ISO channel type

Add a enum for the ISO channel type instead of using
a boolean for just bis/cis.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2021-11-17 14:20:53 +01:00 committed by Anas Nashif
commit c6b78b93d9
4 changed files with 48 additions and 23 deletions

View file

@ -98,6 +98,14 @@ enum {
BT_ISO_DISCONNECT,
};
enum bt_iso_chan_type {
BT_ISO_CHAN_TYPE_NONE,
BT_ISO_CHAN_TYPE_CONNECTED,
BT_ISO_CHAN_TYPE_BROADCASTER,
BT_ISO_CHAN_TYPE_SYNC_RECEIVER
};
/** @brief ISO Channel structure. */
struct bt_iso_chan {
/** Channel connection reference */