| /** @file |
| * @brief Internal APIs for Bluetooth Handsfree profile handling. |
| */ |
| |
| /* |
| * Copyright (c) 2015-2016 Intel Corporation |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| #define BLUETOOTH_HFP_MAX_PDU 140 |
| |
| /* HFP HF Features */ |
| #define BT_HFP_HF_FEATURE_ECNR 0x00000001 /* EC and/or NR */ |
| #define BT_HFP_HF_FEATURE_3WAY_CALL 0x00000002 /* Three-way calling */ |
| #define BT_HFP_HF_FEATURE_CLI 0x00000004 /* CLI presentation */ |
| #define BT_HFP_HF_FEATURE_VOICE_RECG 0x00000008 /* Voice recognition */ |
| #define BT_HFP_HF_FEATURE_VOLUME 0x00000010 /* Remote volume control */ |
| #define BT_HFP_HF_FEATURE_ECS 0x00000020 /* Enhanced call status */ |
| #define BT_HFP_HF_FEATURE_ECC 0x00000040 /* Enhanced call control */ |
| #define BT_HFP_HF_FEATURE_CODEC_NEG 0x00000080 /* CODEC Negotiation */ |
| #define BT_HFP_HF_FEATURE_HF_IND 0x00000100 /* HF Indicators */ |
| #define BT_HFP_HF_FEATURE_ESCO_S4 0x00000200 /* eSCO S4 Settings */ |
| |
| /* HFP HF Supported features */ |
| #define BT_HFP_HF_SUPPORTED_FEATURES (BT_HFP_HF_FEATURE_CLI | \ |
| BT_HFP_HF_FEATURE_VOLUME | \ |
| BT_HFP_HF_FEATURE_CODEC_NEG) |
| |
| struct bt_hfp_hf { |
| struct bt_rfcomm_dlc rfcomm_dlc; |
| uint32_t hf_features; |
| }; |