Bluetooth: sample: Update iso_broadcast to use new ISO API
Update the sample to use the new ISO API. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
76091850c5
commit
1d1cd57c41
|
@ -36,8 +36,6 @@ static struct bt_iso_chan_ops iso_ops = {
|
|||
};
|
||||
|
||||
static struct bt_iso_chan_io_qos iso_tx_qos = {
|
||||
.interval = 10000, /* in microseconds */
|
||||
.latency = 10, /* milliseconds */
|
||||
.sdu = 502, /* bytes */
|
||||
.rtn = 2,
|
||||
.phy = BT_GAP_LE_PHY_2M,
|
||||
|
@ -45,8 +43,6 @@ static struct bt_iso_chan_io_qos iso_tx_qos = {
|
|||
|
||||
static struct bt_iso_chan_qos bis_iso_qos = {
|
||||
.tx = &iso_tx_qos,
|
||||
.packing = 0, /* 0 - sequential, 1 - interleaved */
|
||||
.framing = 0, /* 0 - unframed, 1 - framed */
|
||||
};
|
||||
|
||||
static struct bt_iso_chan bis_iso_chan = {
|
||||
|
@ -59,6 +55,10 @@ static struct bt_iso_chan *bis[BIS_ISO_CHAN_COUNT] = { &bis_iso_chan };
|
|||
static struct bt_iso_big_create_param big_create_param = {
|
||||
.num_bis = BIS_ISO_CHAN_COUNT,
|
||||
.bis_channels = bis,
|
||||
.interval = 10000, /* in microseconds */
|
||||
.latency = 10, /* milliseconds */
|
||||
.packing = 0, /* 0 - sequential, 1 - interleaved */
|
||||
.framing = 0, /* 0 - unframed, 1 - framed */
|
||||
};
|
||||
|
||||
void main(void)
|
||||
|
|
Loading…
Reference in New Issue