/* * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... *//******************************************************************************* * * Filename: btc_a2dp.h * * Description: Common definitions for A2DP * *******************************************************************************//* ... */#ifndef__BTC_A2DP_H__#define__BTC_A2DP_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#ifBTC_AV_INCLUDED/******************************************************************************* ** Constants *******************************************************************************//* ... */#defineBTC_AV_SUCCESS(0)/** * AV (Audio Video source) Errors *//* ... */#defineBTC_ERROR_SRV_AV_NOT_ENABLED700/* AV is not enabled */#defineBTC_ERROR_SRV_AV_FEEDING_NOT_SUPPORTED701/* Requested Feeding not supported */#defineBTC_ERROR_SRV_AV_BUSY702/* Another operation ongoing */#defineBTC_ERROR_SRV_AV_NOT_OPENED703/* No AV link opened */#defineBTC_ERROR_SRV_AV_NOT_STARTED704/* AV is not started */#defineBTC_ERROR_SRV_AV_CP_NOT_SUPPORTED705/* Content protection is not supported by all headsets *//* Transcoding definition for TxTranscoding and RxTranscoding */#defineBTC_MEDIA_TRSCD_OFF0#defineBTC_MEDIA_TRSCD_PCM_2_SBC1/* Tx */9 defines/******************************************************************************* ** Data types *******************************************************************************//* ... */typedefinttBTC_AV_STATUS;/******************************************************************************* ** Public functions *******************************************************************************//* ... */voidbtc_a2dp_on_init(void);/******************************************************************************* ** ** Function btc_a2dp_on_idle ** ** Description Process 'idle' request from BTC AV state machine during ** initialization ** *******************************************************************************//* ... */voidbtc_a2dp_on_idle(void);/******************************************************************************* ** ** Function btc_a2dp_on_started ** ** Description Process 'start' request from BTC AV state machine to prepare ** for A2DP streaming ** ** Return TRUE if an ACK for the local command is sent ** *******************************************************************************//* ... */BOOLEANbtc_a2dp_on_started(tBTA_AV_START*p_av,BOOLEANpending_start);/******************************************************************************* ** ** Function btc_a2dp_on_stopped ** ** Description Process 'stop' request from BTC AV state machine to stop ** A2DP streaming ** *******************************************************************************//* ... */voidbtc_a2dp_on_stopped(tBTA_AV_SUSPEND*p_av);/******************************************************************************* ** ** Function btc_a2dp_on_suspended ** ** Description Process 'stop' request from BTC AV state machine to suspend ** A2DP streaming ** *******************************************************************************//* ... */voidbtc_a2dp_on_suspended(tBTA_AV_SUSPEND*p_av);/* ... */#endif/* #if BTC_AV_INCLUDED *//* ... */#endif/* __BTC_A2DP_H__ */
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.