Select one of the symbols to view example projects that use it.
 
Outline
#define __BTC_A2DP_SINK_H__
#include <stdbool.h>
#include "common/bt_target.h"
#include "bta/bta_api.h"
#include "btc_av_api.h"
#include "esp_a2dp_api.h"
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/bt/host/bluedroid/btc/profile/std/include/btc_a2dp_sink.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ /******************************************************************************* * * Filename: btc_a2dp_sink.h * *******************************************************************************//* ... */ #ifndef __BTC_A2DP_SINK_H__ #define __BTC_A2DP_SINK_H__ #include <stdbool.h> #include "common/bt_target.h" #include "bta/bta_api.h" #include "btc_av_api.h" #include "esp_a2dp_api.h"5 includes #if BTC_AV_SINK_INCLUDED /******************************************************************************* ** Data types *******************************************************************************//* ... */ typedef struct { BT_HDR hdr; UINT8 codec_info[AVDT_CODEC_SIZE]; }{...} tBTC_MEDIA_SINK_CFG_UPDATE; /******************************************************************************* ** Public functions *******************************************************************************//* ... */ /******************************************************************************* ** ** Function btc_a2dp_sink_startup ** ** Description Initialize and startup the A2DP sink module. This function ** should be called by the BTC AV state machine prior to using ** the module. ** ** Returns true if success ** *******************************************************************************//* ... */ bool btc_a2dp_sink_startup(void); /******************************************************************************* ** ** Function btc_a2dp_sink_shutdown ** ** Description Shutdown and cleanup the A2DP sink module ** *******************************************************************************//* ... */ void btc_a2dp_sink_shutdown(void); /******************************************************************************* ** ** Function btc_a2dp_sink_rx_flush_req ** ** Description Request to flush audio decoding pipe ** ** Returns TRUE if success ** *******************************************************************************//* ... */ BOOLEAN btc_a2dp_sink_rx_flush_req(void); /******************************************************************************* ** ** Function btc_a2dp_sink_enque_buf ** ** Description Enqueue a Advance Audio media buffer to be processed by btc media task. ** ** Returns size of the queue ** *******************************************************************************//* ... */ UINT8 btc_a2dp_sink_enque_buf(BT_HDR *p_buf); /******************************************************************************* ** ** Function btc_a2dp_sink_on_idle ** ** Description Process 'idle' request from the BTC AV state machine during ** initialization ** *******************************************************************************//* ... */ void btc_a2dp_sink_on_idle(void); /******************************************************************************* ** ** Function btc_a2dp_sink_on_stopped ** ** Description Process 'stop' request from the BTC AV state machine to stop ** A2DP streaming ** *******************************************************************************//* ... */ void btc_a2dp_sink_on_stopped(tBTA_AV_SUSPEND *p_av); /******************************************************************************* ** ** Function btc_a2dp_sink_on_suspended ** ** Description Process 'suspend' request from the BTC AV state machine to ** suspend A2DP streaming ** *******************************************************************************//* ... */ void btc_a2dp_sink_on_suspended(tBTA_AV_SUSPEND *p_av); /******************************************************************************* ** ** Function btc_a2dp_sink_set_rx_flush ** ** Description enable/disabel discarding of received A2DP frames ** *******************************************************************************//* ... */ void btc_a2dp_sink_set_rx_flush(BOOLEAN enable); /******************************************************************************* ** ** Function btc_a2dp_sink_reset_decoder ** ** Description Reset decoder parameters according to configuration from remote ** device ** *******************************************************************************//* ... */ void btc_a2dp_sink_reset_decoder(UINT8 *p_av); /* ... */ #endif /* #if BTC_AV_SINK_INCLUDED */ /* ... */ #endif /* __BTC_A2DP_SINK_H__ */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.