2016-11-09 19:04:04 +08:00
|
|
|
/** @file
|
|
|
|
* @brief Audio/Video Distribution Transport Protocol header.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2015-2016 Intel Corporation
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-11-09 19:04:04 +08:00
|
|
|
*/
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AVDTP_H_
|
|
|
|
#define ZEPHYR_INCLUDE_BLUETOOTH_AVDTP_H_
|
2016-11-09 19:04:04 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/** @brief AVDTP SEID Information */
|
|
|
|
struct bt_avdtp_seid_info {
|
|
|
|
/** Stream End Point ID */
|
2017-04-21 01:00:29 +08:00
|
|
|
u8_t id:6;
|
2016-11-09 19:04:04 +08:00
|
|
|
/** End Point usage status */
|
2017-04-21 01:00:29 +08:00
|
|
|
u8_t inuse:1;
|
2016-11-09 19:04:04 +08:00
|
|
|
/** Reserved */
|
2017-04-21 01:00:29 +08:00
|
|
|
u8_t rfa0:1;
|
2016-11-09 19:04:04 +08:00
|
|
|
/** Media-type of the End Point */
|
2017-04-21 01:00:29 +08:00
|
|
|
u8_t media_type:4;
|
2016-11-09 19:04:04 +08:00
|
|
|
/** TSEP of the End Point */
|
2017-04-21 01:00:29 +08:00
|
|
|
u8_t tsep:1;
|
2016-11-09 19:04:04 +08:00
|
|
|
/** Reserved */
|
2017-04-21 01:00:29 +08:00
|
|
|
u8_t rfa1:3;
|
2016-11-09 19:04:04 +08:00
|
|
|
} __packed;
|
|
|
|
|
|
|
|
/** @brief AVDTP Local SEP*/
|
|
|
|
struct bt_avdtp_seid_lsep {
|
|
|
|
/** Stream End Point information */
|
|
|
|
struct bt_avdtp_seid_info sep;
|
|
|
|
/** Pointer to next local Stream End Point structure */
|
|
|
|
struct bt_avdtp_seid_lsep *next;
|
|
|
|
};
|
|
|
|
|
2016-12-06 13:51:07 +08:00
|
|
|
/** @brief AVDTP Stream */
|
|
|
|
struct bt_avdtp_stream {
|
|
|
|
struct bt_l2cap_br_chan chan; /* Transport Channel*/
|
|
|
|
struct bt_avdtp_seid_info lsep; /* Configured Local SEP */
|
|
|
|
struct bt_avdtp_seid_info rsep; /* Configured Remote SEP*/
|
2017-04-21 01:00:29 +08:00
|
|
|
u8_t state; /* current state of the stream */
|
2016-12-06 13:51:07 +08:00
|
|
|
struct bt_avdtp_stream *next;
|
|
|
|
};
|
|
|
|
|
2016-11-09 19:04:04 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AVDTP_H_ */
|