1 /** @file
2  * @brief Audio/Video Distribution Transport Protocol header.
3  */
4 
5 /*
6  * Copyright (c) 2015-2016 Intel Corporation
7  *
8  * SPDX-License-Identifier: Apache-2.0
9  */
10 #ifndef ZEPHYR_INCLUDE_BLUETOOTH_AVDTP_H_
11 #define ZEPHYR_INCLUDE_BLUETOOTH_AVDTP_H_
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 /** @brief AVDTP SEID Information */
18 struct bt_avdtp_seid_info {
19 	/** Stream End Point ID */
20 	u8_t id:6;
21 	/** End Point usage status */
22 	u8_t inuse:1;
23 	/** Reserved */
24 	u8_t rfa0:1;
25 	/** Media-type of the End Point */
26 	u8_t media_type:4;
27 	/** TSEP of the End Point */
28 	u8_t tsep:1;
29 	/** Reserved */
30 	u8_t rfa1:3;
31 } __packed;
32 
33 /** @brief AVDTP Local SEP*/
34 struct bt_avdtp_seid_lsep {
35 	/** Stream End Point information */
36 	struct bt_avdtp_seid_info sep;
37 	/** Pointer to next local Stream End Point structure */
38 	struct bt_avdtp_seid_lsep *next;
39 };
40 
41 /** @brief AVDTP Stream */
42 struct bt_avdtp_stream {
43 	struct bt_l2cap_br_chan chan; /* Transport Channel*/
44 	struct bt_avdtp_seid_info lsep; /* Configured Local SEP */
45 	struct bt_avdtp_seid_info rsep; /* Configured Remote SEP*/
46 	u8_t state; /* current state of the stream */
47 	struct bt_avdtp_stream *next;
48 };
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif /* ZEPHYR_INCLUDE_BLUETOOTH_AVDTP_H_ */
55