1 /* 2 * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef __BTA_HFP_DEFS_H__ 8 #define __BTA_HFP_DEFS_H__ 9 10 #include "stack/btm_api.h" 11 12 #define BTA_HFP_CODEC_NONE BTM_SCO_CODEC_NONE 13 #define BTA_HFP_CODEC_CVSD BTM_SCO_CODEC_CVSD /* CVSD */ 14 #define BTA_HFP_CODEC_MSBC BTM_SCO_CODEC_MSBC /* mSBC */ 15 16 typedef UINT16 tBTA_HFP_PEER_CODEC; 17 18 #ifndef BTA_HFP_SCO_OUT_PKT_SIZE 19 #define BTA_HFP_SCO_OUT_PKT_SIZE BTM_SCO_DATA_SIZE_MAX 20 #endif 21 22 #define BTA_HFP_SCO_CODEC_PCM 0 /* used for regular SCO */ 23 #define BTA_HFP_SCO_CODEC_SBC 1 /* used for WBS */ 24 typedef UINT8 tBTA_HFP_SCO_CODEC_TYPE; 25 26 #define BTA_HFP_SCO_SAMP_RATE_8K 8000 27 #define BTA_HFP_SCO_SAMP_RATE_16K 16000 28 29 /* SCO codec information */ 30 typedef struct { 31 tBTA_HFP_SCO_CODEC_TYPE codec_type; 32 } tBTA_HFP_CODEC_INFO; 33 34 #define BTA_HFP_SCO_ROUTE_PCM BTM_SCO_ROUTE_PCM 35 #define BTA_HFP_SCO_ROUTE_HCI BTM_SCO_ROUTE_HCI 36 37 typedef tBTM_SCO_ROUTE_TYPE tBTA_HFP_SCO_ROUTE_TYPE; 38 39 #endif /* __BTA_HFP_DEFS_H__ */ 40