Bluetooth: ISO: Add sent callback

Add a sent callback to bt_iso_chan_ops so that the application
can be notified when an SDU has been sent. This can help the
application decide whether to queue up multiple, or only
have a single ISO PDU enqueue for reduced latency.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2021-08-31 23:02:20 +02:00 committed by Christopher Friedt
commit 3a77308c97
2 changed files with 24 additions and 1 deletions

View file

@ -437,6 +437,15 @@ struct bt_iso_chan_ops {
*/
void (*recv)(struct bt_iso_chan *chan, const struct bt_iso_recv_info *info,
struct net_buf *buf);
/** @brief Channel sent callback
*
* If this callback is provided it will be called whenever a SDU has
* been completely sent.
*
* @param chan The channel which has sent data.
*/
void (*sent)(struct bt_iso_chan *chan);
};
/** @brief ISO Server structure. */