MT2523 API Reference  LinkIt SDK v4
bt_hfp.h
1 /* Copyright Statement:
2  *
3  * (C) 2005-2016 MediaTek Inc. All rights reserved.
4  *
5  * This software/firmware and related documentation ("MediaTek Software") are
6  * protected under relevant copyright laws. The information contained herein
7  * is confidential and proprietary to MediaTek Inc. ("MediaTek") and/or its licensors.
8  * Without the prior written permission of MediaTek and/or its licensors,
9  * any reproduction, modification, use or disclosure of MediaTek Software,
10  * and information contained herein, in whole or in part, shall be strictly prohibited.
11  * You may only use, reproduce, modify, or distribute (as applicable) MediaTek Software
12  * if you have agreed to and been bound by the applicable license agreement with
13  * MediaTek ("License Agreement") and been granted explicit permission to do so within
14  * the License Agreement ("Permitted User"). If you are not a Permitted User,
15  * please cease any access or use of MediaTek Software immediately.
16  * BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
17  * THAT MEDIATEK SOFTWARE RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES
18  * ARE PROVIDED TO RECEIVER ON AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL
19  * WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
20  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
21  * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
22  * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
23  * SUPPLIED WITH MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH
24  * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES
25  * THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES
26  * CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK
27  * SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
28  * STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND
29  * CUMULATIVE LIABILITY WITH RESPECT TO MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
30  * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE MEDIATEK SOFTWARE AT ISSUE,
31  * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO
32  * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
33  */
34 
35 #ifndef __BT_HFP_H__
36 #define __BT_HFP_H__
37 
38 #include <stdint.h>
39 #include "bt_type.h"
40 
162 BT_EXTERN_C_BEGIN
163 
174 #define BT_HFP_INVALID_HANDLE 0
175 #define BT_HFP_PHONE_NUMBER_MAX_LEN 64
177 #define BT_HFP_SLC_CONNECTING_IND (BT_MODULE_HFP | 0x002)
178 #define BT_HFP_SLC_CONNECTED_IND (BT_MODULE_HFP | 0x003)
179 #define BT_HFP_CONNECT_REQUEST_IND (BT_MODULE_HFP | 0x004)
180 #define BT_HFP_DISCONNECT_IND (BT_MODULE_HFP | 0x005)
181 #define BT_HFP_AUDIO_CONNECT_IND (BT_MODULE_HFP | 0x006)
182 #define BT_HFP_AUDIO_DISCONNECT_IND (BT_MODULE_HFP | 0x007)
183 #define BT_HFP_BRSF_FEATURES_IND (BT_MODULE_HFP | 0x008)
184 #define BT_HFP_CALL_HOLD_FEATURES_IND (BT_MODULE_HFP | 0x009)
185 #define BT_HFP_CIEV_CALL_SETUP_IND (BT_MODULE_HFP | 0x00a)
186 #define BT_HFP_CIEV_CALL_IND (BT_MODULE_HFP | 0x00b)
187 #define BT_HFP_CIEV_CALL_HOLD_IND (BT_MODULE_HFP | 0x00c)
188 #define BT_HFP_CIEV_SERVICE_IND (BT_MODULE_HFP | 0x00d)
189 #define BT_HFP_CIEV_SIGNAL_IND (BT_MODULE_HFP | 0x00e)
190 #define BT_HFP_CIEV_ROAMING_IND (BT_MODULE_HFP | 0x00f)
191 #define BT_HFP_CIEV_BATTCHG_IND (BT_MODULE_HFP | 0x010)
192 #define BT_HFP_RING_IND (BT_MODULE_HFP | 0x011)
193 #define BT_HFP_CALL_WAITING_IND (BT_MODULE_HFP | 0x012)
194 #define BT_HFP_CALLER_ID_IND (BT_MODULE_HFP | 0x013)
195 #define BT_HFP_CURRENT_CALLS_IND (BT_MODULE_HFP | 0x014)
196 #define BT_HFP_VOICE_RECOGNITION_IND (BT_MODULE_HFP | 0x015)
197 #define BT_HFP_VOLUME_SYNC_SPEAKER_GAIN_IND (BT_MODULE_HFP | 0x016)
198 #define BT_HFP_VOLUME_SYNC_MIC_GAIN_IND (BT_MODULE_HFP | 0x017)
199 #define BT_HFP_IN_BAND_RING_IND (BT_MODULE_HFP | 0x018)
200 #define BT_HFP_ACTION_CMD_CNF (BT_MODULE_HFP | 0x019)
201 #define BT_HFP_AUDIO_STATUS_CHANGE_IND (BT_MODULE_HFP | 0x01a)
207 typedef uint8_t bt_hfp_phone_num_format_t;
208 #define BT_HFP_PHONE_NUM_FORMAT_TYPE_UNKNOWN 0x80
209 #define BT_HFP_PHONE_NUM_FORMAT_TYPE_INTERNATIONAL 0x90
210 #define BT_HFP_PHONE_NUM_FORMAT_TYPE_NATIONAL 0xA0
211 #define BT_HFP_PHONE_NUM_FORMAT_TYPE_NETWORK_SPEC 0xB0
212 #define BT_HFP_PHONE_NUM_FORMAT_TYPE_DEDICATED_ACC 0xC0
213 #define BT_HFP_PHONE_NUM_FORMAT_PLAN_UNKNOWN 0x00
214 #define BT_HFP_PHONE_NUM_FORMAT_PLAN_ISDN_TELEPHONY 0x01
215 #define BT_HFP_PHONE_NUM_FORMAT_PLAN_DATA_NUMBERING 0x03
216 #define BT_HFP_PHONE_NUM_FORMAT_PLAN_TELEX_NUMBERING 0x04
217 #define BT_HFP_PHONE_NUM_FORMAT_PLAN_NATIONAL 0x08
218 #define BT_HFP_PHONE_NUM_FORMAT_PLAN_PRIVATE 0x09
224 typedef uint8_t bt_hfp_audio_direction_t;
225 #define BT_HFP_AUDIO_TO_HF 0x00
226 #define BT_HFP_AUDIO_TO_AG 0x01
231 typedef uint8_t bt_hfp_audio_status_t;
232 #define BT_HFP_AUDIO_STATUS_INACTIVE 0x00
233 #define BT_HFP_AUDIO_STATUS_ACTIVE 0x01
239 typedef uint16_t bt_hfp_init_support_feature_t;
240 #define BT_HFP_INIT_SUPPORT_3_WAY 0x0010
241 #define BT_HFP_INIT_SUPPORT_CODEC_NEG 0x0020
242 #define BT_HFP_INIT_SUPPORT_ALL 0x0030
248 typedef uint8_t bt_hfp_indicator_status_t;
249 #define BT_HFP_INDICATOR_OFF 0x00
250 #define BT_HFP_INDICATOR_ON 0x01
251 #define BT_HFP_INDICATOR_IGNORE 0x02
257 typedef uint8_t bt_hfp_audio_codec_type_t;
258 #define BT_HFP_CODEC_TYPE_NONE 0x00
259 #define BT_HFP_CODEC_TYPE_CVSD 0x01
260 #define BT_HFP_CODEC_TYPE_MSBC 0X02
266 typedef uint8_t bt_hfp_version_t;
267 #define BT_HFP_VERSION_V15 0x01
268 #define BT_HFP_VERSION_V16 0x02
274 typedef uint16_t bt_hfp_ag_feature_t;
275 #define BT_HFP_AG_FEATURE_3_WAY 0x0001
276 #define BT_HFP_AG_FEATURE_ECHO_NOISE 0x0002
277 #define BT_HFP_AG_FEATURE_VOICE_RECOGNITION 0x0004
278 #define BT_HFP_AG_FEATURE_IN_BAND_RING 0x0008
279 #define BT_HFP_AG_FEATURE_VOICE_TAG 0x0010
280 #define BT_HFP_AG_FEATURE_CALL_REJECT 0x0020
281 #define BT_HFP_AG_FEATURE_ENHANCED_CALL_STATUS 0x0040
282 #define BT_HFP_AG_FEATURE_ENHANCED_CALL_CTRL 0x0080
283 #define BT_HFP_AG_FEATURE_EXTENDED_ERROR 0x0100
284 #define BT_HFP_AG_FEATURE_CODEC_NEGOTIATION 0x0200
290 typedef uint8_t bt_hfp_ag_hold_feature_t;
291 #define BT_HFP_AG_HOLD_FEATURE_RELEASE_HELD_CALL 0x01
292 #define BT_HFP_AG_HOLD_FEATURE_RELEASE_ACTIVE_CALL 0x02
293 #define BT_HFP_AG_HOLD_FEATURE_RELEASE_SPECIFIC_CALL 0x04
294 #define BT_HFP_AG_HOLD_FEATURE_HOLD_ACTIVE_CALL 0x08
295 #define BT_HFP_AG_HOLD_FEATURE_HOLD_SPECIFIC_CALL 0x10
296 #define BT_HFP_AG_HOLD_FEATURE_ADD_HELD_CALL 0x20
297 #define BT_HFP_AG_HOLD_FEATURE_CALL_TRANSFER 0x40
303 typedef uint8_t bt_hfp_ciev_call_state_t;
304 #define BT_HFP_CIEV_CALL_STATE_NONE 0x00
305 #define BT_HFP_CIEV_CALL_STATE_CALL 0x01
311 typedef uint8_t bt_hfp_ciev_call_setup_state_t;
312 #define BT_HFP_CIEV_CALL_SETUP_STATE_NONE 0x00
313 #define BT_HFP_CIEV_CALL_SETUP_STATE_INCOMING 0x01
314 #define BT_HFP_CIEV_CALL_SETUP_STATE_OUTGOING 0x02
315 #define BT_HFP_CIEV_CALL_SETUP_STATE_REMOTE_ALERT 0x03
321 typedef uint8_t bt_hfp_ciev_call_hold_state_t;
322 #define BT_HFP_CIEV_CALL_HOLD_STATE_NONE 0x00
323 #define BT_HFP_CIEV_CALL_HOLD_STATE_SOME 0x01
324 #define BT_HFP_CIEV_CALL_HOLD_STATE_ALL 0x02
333 typedef uint8_t bt_hfp_call_status_t;
334 #define BT_HFP_CALL_STATUS_ACTIVE 0x00
335 #define BT_HFP_CALL_STATUS_HOLD 0x01
336 #define BT_HFP_CALL_STATUS_DIALING 0x02
337 #define BT_HFP_CALL_STATUS_ALERTING 0x03
338 #define BT_HFP_CALL_STATUS_INCOMING 0x04
339 #define BT_HFP_CALL_STATUS_WAITING 0x05
340 #define BT_HFP_CALL_STATUS_NONE 0x06
341 #define BT_HFP_CALL_STATUS_UNKNOWN 0x07
347 typedef uint8_t bt_hfp_call_mode_t;
348 #define BT_HFP_CALL_MODE_VOICE 0x00
349 #define BT_HFP_CALL_MODE_DATA 0x01
350 #define BT_HFP_CALL_MODE_FAX 0x02
366 typedef struct {
372 
373 
374 
378 typedef struct {
384  bool enable_cli;
386 
387 
391 typedef struct {
392  uint32_t handle;
394 
395 
399 typedef struct {
400  uint32_t handle;
403 
404 
408 typedef struct {
409  uint32_t handle;
411 
412 
416 typedef struct {
417  uint32_t handle;
420 
421 
425 typedef struct {
426  uint32_t handle;
428 
429 
433 typedef struct {
434  uint32_t handle;
437 
438 
442 typedef struct {
443  uint32_t handle;
445 
446 
447 
451 typedef struct {
452  uint32_t handle;
453  uint32_t ag_feature;
455 
456 
460 typedef struct {
461  uint32_t handle;
462  uint8_t feature;
464 
465 
469 typedef struct {
470  uint32_t handle;
473 
474 
478 typedef struct {
479  uint32_t handle;
482 
483 
487 typedef struct {
488  uint32_t handle;
491 
492 
496 typedef struct {
497  uint32_t handle;
498  uint16_t num_size;
499  uint8_t number[BT_HFP_PHONE_NUMBER_MAX_LEN];
500  uint8_t class;
501  uint8_t type;
503 
504 
508 typedef struct {
509  uint32_t handle;
510  uint16_t num_size;
511  uint8_t number[BT_HFP_PHONE_NUMBER_MAX_LEN];
514 
515 
519 typedef struct {
520  uint32_t handle;
521  uint8_t index;
522  uint8_t director;
525  uint8_t multiple_party;
526  uint16_t num_size;
527  uint8_t number[BT_HFP_PHONE_NUMBER_MAX_LEN];
530 
531 
535 typedef struct {
536  uint32_t handle;
537  uint8_t state;
539 
540 
544 typedef struct {
545  uint32_t handle;
546  uint8_t level;
548 
549 
553 typedef struct {
554  uint32_t handle;
555  uint8_t level ;
557 
558 
562 typedef struct {
563  uint32_t handle;
564  uint8_t state ;
566 
567 
571 typedef struct {
572  uint32_t handle;
573  bool enable;
575 
576 
580 typedef struct {
581  uint32_t handle;
582  bool enable;
584 
585 
589 typedef struct {
590  uint32_t handle;
591  uint8_t data;
593 
594 
598 typedef struct {
599  uint32_t handle;
600  uint8_t data;
602 
603 
607 typedef struct {
608  uint32_t handle;
611 
612 
616 typedef struct {
617  uint32_t handle;
618  int32_t result;
620 
636 bt_status_t bt_hfp_connect(uint32_t *handle, bt_bd_addr_t *address);
637 
638 
647 bt_status_t bt_hfp_connect_response(uint32_t handle, bool accept);
648 
649 
657 bt_status_t bt_hfp_disconnect(uint32_t handle);
658 
659 
668 
678 
679 
689 bt_status_t bt_hfp_send_command(uint32_t handle, uint8_t *command, uint16_t command_length);
690 
691 
698 
699 
706 
707 BT_EXTERN_C_END
708 
709 
715 #endif
716 
717 
bt_hfp_indicator_status_t service
The service indicator status in HF.
Definition: bt_hfp.h:367
bt_hfp_indicator_status_t signal
The signal indicator status in HF.
Definition: bt_hfp.h:368
bt_hfp_audio_codec_type_t supported_codecs
The supported codec type in HF.
Definition: bt_hfp.h:380
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:617
uint8_t bt_hfp_audio_direction_t
This structure defines the audio direction.
Definition: bt_hfp.h:224
This structure defines the parameter type in the callback for the event BT_HFP_CIEV_CALL_IND to indic...
Definition: bt_hfp.h:469
This structure defines the parameter type in the callback for the event BT_HFP_VOLUME_SYNC_MIC_GAIN_I...
Definition: bt_hfp.h:598
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:497
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:461
This structure defines the parameter type in the callback for the event BT_HFP_CIEV_BATTCHG_IND to in...
Definition: bt_hfp.h:544
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:488
uint8_t bt_hfp_audio_codec_type_t
This structure defines the HFP codec type.
Definition: bt_hfp.h:257
uint8_t data
The speaker volume of a remote device.
Definition: bt_hfp.h:591
bt_hfp_audio_status_t audio_status
The audio link status of the current connection.
Definition: bt_hfp.h:609
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:452
This structure defines the parameter type in the callback for the event BT_HFP_BRSF_FEATURES_IND to i...
Definition: bt_hfp.h:451
uint8_t bt_hfp_ciev_call_state_t
The structure defines the current call state indicated by the AG.
Definition: bt_hfp.h:303
uint16_t bt_hfp_init_support_feature_t
This structure defines the supported features to initialize.
Definition: bt_hfp.h:239
This structure defines the parameter type in the callback for the event BT_HFP_AUDIO_DISCONNECT_IND t...
Definition: bt_hfp.h:442
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:479
This structure defines the parameter type in the callback for the event BT_HFP_RING_IND to indicate t...
Definition: bt_hfp.h:391
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:400
uint32_t ag_feature
The supported features of a remote device.
Definition: bt_hfp.h:453
This structure defines the parameter type in the callback for the event BT_HFP_VOLUME_SYNC_SPEAKER_GA...
Definition: bt_hfp.h:589
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:520
uint8_t bt_hfp_audio_status_t
This structure defines the audio connection status.
Definition: bt_hfp.h:231
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:470
int32_t result
The confirmation result.
Definition: bt_hfp.h:618
This structure defines the parameter type in the callback for the event BT_HFP_CALL_WAITING_IND to in...
Definition: bt_hfp.h:496
uint8_t feature
The supported call hold operations of a remote device.
Definition: bt_hfp.h:462
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:409
bt_hfp_indicator_status_t battery
The battery charge indicator status in HF.
Definition: bt_hfp.h:370
bt_status_t bt_hfp_disconnect(uint32_t handle)
This function sends a HFP disconnect request to AG.
uint8_t director
The director of the call, 0 - Mobile Originated, 1 - Mobile Terminated.
Definition: bt_hfp.h:522
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:434
bool enable
The in-band ring state of a remote device.
Definition: bt_hfp.h:582
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:509
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:608
uint16_t num_size
The phone number size of the current waiting call.
Definition: bt_hfp.h:498
uint8_t bt_hfp_call_status_t
This structure defines the current state of a call.
Definition: bt_hfp.h:333
bt_hfp_indicator_status_t roaming
The roaming indicator status in HF.
Definition: bt_hfp.h:369
This structure defines the initialization parameters of the HFP.
Definition: bt_hfp.h:378
uint8_t bt_hfp_phone_num_format_t
This structure defines the phone number format.
Definition: bt_hfp.h:207
This structure defines the parameter type in the callback for the event BT_HFP_CIEV_CALL_HOLD_IND to ...
Definition: bt_hfp.h:487
uint16_t num_size
The phone number size of the call.
Definition: bt_hfp.h:510
This structure defines the parameter type in the callback for the event BT_HFP_CIEV_SIGNAL_IND to ind...
Definition: bt_hfp.h:553
bt_status_t bt_hfp_connect(uint32_t *handle, bt_bd_addr_t *address)
This function sends a HFP connect request to the AG.
bt_hfp_version_t hfp_version
The connected profile version.
Definition: bt_hfp.h:418
This structure defines the parameter type in the callback for the event BT_HFP_CURRENT_CALLS_IND to i...
Definition: bt_hfp.h:519
This structure defines the parameter type in the callback for the event BT_HFP_IN_BAND_RING_IND to in...
Definition: bt_hfp.h:580
This structure defines the parameter type in the callback for the event BT_HFP_CIEV_ROAMING_IND to in...
Definition: bt_hfp.h:562
bt_hfp_ciev_call_setup_state_t state
The call setup indicators value of a remote device.
Definition: bt_hfp.h:480
bt_status_t bt_hfp_connect_response(uint32_t handle, bool accept)
This function responds to a connection request from AG.
This structure defines the parameter type in the callback for the event BT_HFP_ACTION_CMD_CNF.
Definition: bt_hfp.h:616
bt_status_t bt_hfp_set_audio_status(uint32_t handle, bt_hfp_audio_status_t status)
This function sets the current audio connection status.
#define BT_HFP_PHONE_NUMBER_MAX_LEN
The maximum length of a phone number.
Definition: bt_hfp.h:175
This structure defines the parameter type in the callback for the event BT_HFP_VOICE_RECOGNITION_IND ...
Definition: bt_hfp.h:571
bt_status_t bt_hfp_get_init_params(bt_hfp_init_param_t *init_params)
This function gets the initialization settings.
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:581
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:563
uint8_t bt_hfp_ciev_call_hold_state_t
The structure defines the current call hold state indicated by the AG.
Definition: bt_hfp.h:321
uint8_t bt_hfp_ciev_call_setup_state_t
The structure defines the current call setup state indicated by the AG.
Definition: bt_hfp.h:311
uint8_t bt_hfp_call_mode_t
This structure defines the call mode.
Definition: bt_hfp.h:347
bt_hfp_call_status_t state
The call state of the call.
Definition: bt_hfp.h:523
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:554
uint8_t index
Index of the call on the audio gateway.
Definition: bt_hfp.h:521
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:599
This structure defines the parameter type in the callback for the event BT_HFP_CIEV_CALL_SETUP_IND to...
Definition: bt_hfp.h:478
bt_bd_addr_t * address
The Bluetooth address of a remote device.
Definition: bt_hfp.h:401
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:572
This structure defines the parameter type in the callback for the event BT_HFP_CONNECT_REQUEST_IND to...
Definition: bt_hfp.h:399
uint16_t num_size
The phone number size of the call.
Definition: bt_hfp.h:526
bt_status_t bt_hfp_send_command(uint32_t handle, uint8_t *command, uint16_t command_length)
This function sends an HFP command to the AG.
bool enable
The voice recognition state of a remote device.
Definition: bt_hfp.h:573
bt_hfp_call_mode_t mode
The call mode of the call.
Definition: bt_hfp.h:524
bt_hfp_init_support_feature_t support_features
The supported features in HF.
Definition: bt_hfp.h:379
This structure defines the parameter type in the callback for the event BT_HFP_SLC_CONNECTED_IND to i...
Definition: bt_hfp.h:416
uint8_t bt_bd_addr_t[6]
Address type, defined in Bluetooth core specification version 4.2.
Definition: bt_type.h:180
int32_t bt_status_t
Define the status type, returned from the APIs, and defined as BT_STATUS_XXX.
Definition: bt_type.h:173
bt_hfp_phone_num_format_t type
The address type of the call.
Definition: bt_hfp.h:528
uint8_t state
The service state of a remote device.
Definition: bt_hfp.h:537
This structure defines the parameter type in the callback for the event BT_HFP_CIEV_SERVICE_IND to in...
Definition: bt_hfp.h:535
bool disable_nrec
To disable NREC in AG.
Definition: bt_hfp.h:382
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:417
This structure defines the parameter type in the callback for the event BT_HFP_CALLER_ID_IND to indic...
Definition: bt_hfp.h:508
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:392
uint8_t state
The roaming state of a remote device.
Definition: bt_hfp.h:564
This structure defines the parameter type in the callback for the event BT_HFP_CALL_HOLD_FEATURES_IND...
Definition: bt_hfp.h:460
bt_status_t bt_hfp_audio_transfer(uint32_t handle, bt_hfp_audio_direction_t audio_dir)
This function transfers the audio direction to AG or to HF.
bool enable_cli
To get call line identification in AG.
Definition: bt_hfp.h:384
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:536
This structure defines the parameter type in the callback for the event BT_HFP_DISCONNECT_IND to indi...
Definition: bt_hfp.h:425
bt_hfp_ciev_call_hold_state_t state
The call hold indicators value of a remote device.
Definition: bt_hfp.h:489
This structure defines the parameter type in the callback for the event BT_HFP_SLC_CONNECTING_IND to ...
Definition: bt_hfp.h:408
uint8_t data
The microphone volume of a remote device.
Definition: bt_hfp.h:600
This structure defines the status of optional indicators.
Definition: bt_hfp.h:366
bt_hfp_audio_codec_type_t codec
The codec type of the current connection.
Definition: bt_hfp.h:435
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:426
uint32_t handle
The HFP connection handle.
Definition: bt_hfp.h:443
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:545
bt_hfp_indicator_t indicators
The supported optional indicator types in HF.
Definition: bt_hfp.h:381
This structure defines the parameter type in the callback for the event BT_HFP_AUDIO_STATUS_CHANGE_IN...
Definition: bt_hfp.h:607
uint8_t level
The battery charge level of a remote device.
Definition: bt_hfp.h:546
uint8_t level
The signal level of a remote device.
Definition: bt_hfp.h:555
This structure defines the parameter type in the callback for the event BT_HFP_AUDIO_CONNECT_IND to i...
Definition: bt_hfp.h:433
uint8_t multiple_party
If the call is multiple party, 0 - Not Multiparty, 1 - Multiparty.
Definition: bt_hfp.h:525
uint8_t type
The address type of the current waiting call.
Definition: bt_hfp.h:501
uint8_t bt_hfp_indicator_status_t
This structure defines the indicator status.
Definition: bt_hfp.h:248
uint32_t handle
The HFP handle of the current connection.
Definition: bt_hfp.h:590
uint8_t bt_hfp_version_t
This structure defines the HFP profile version.
Definition: bt_hfp.h:266
bt_bd_addr_t * bt_hfp_get_bd_addr_by_handle(uint32_t handle)
This function gets the remote device&#39;s Bluetooth address of current connection.
bt_hfp_phone_num_format_t type
The address type of the call.
Definition: bt_hfp.h:512
bt_hfp_ciev_call_state_t state
The call indicator value of a remote device.
Definition: bt_hfp.h:471
bool enable_call_waiting
To enable call waiting notification in AG.
Definition: bt_hfp.h:383