Bluetooth: ISO: Add packet status flag to iso recv info

Add the packet status flag value to the iso receive info
struct. This will allow an application to handle potential
lost or erroneous messages.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2021-05-27 15:25:21 +02:00 committed by Carles Cufí
commit 18f1745d29
2 changed files with 26 additions and 1 deletions

View file

@ -138,6 +138,19 @@ struct bt_iso_chan_path {
uint8_t cc[0];
};
/** ISO packet status flags */
enum {
/** The ISO packet is valid. */
BT_ISO_FLAGS_VALID,
/** @brief The ISO packet may possibly contain errors.
*
* May be caused by a failed CRC check or if missing a part of the SDU.
*/
BT_ISO_FLAGS_ERROR,
/** The ISO packet was lost. */
BT_ISO_FLAGS_LOST
};
/** @brief ISO Meta Data structure for received ISO packets. */
struct bt_iso_recv_info {
/** ISO timestamp - valid only if the Bluetooth controller includes it
@ -147,6 +160,9 @@ struct bt_iso_recv_info {
/** ISO packet sequence number of the first fragment in the SDU */
uint16_t sn;
/** ISO packet flags (BT_ISO_FLAGS_*) */
uint8_t flags;
};
/** Opaque type representing an Broadcast Isochronous Group (BIG). */