hfp.h (48e6eeee0f7cdb5532f162e9529f2bd0affc0dd3) | hfp.h (cb81d35d7c3b357e822fcc8ed88aa49b7661232f) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 545 unchanged lines hidden (view full) --- 554 uint8_t enable_extended_audio_gateway_error_report; 555 uint8_t extended_audio_gateway_error_value; 556 uint8_t extended_audio_gateway_error; 557 558 // establish codecs connection 559 uint8_t suggested_codec; 560 uint8_t codec_confirmed; 561 uint8_t sco_for_msbc_failed; | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 545 unchanged lines hidden (view full) --- 554 uint8_t enable_extended_audio_gateway_error_report; 555 uint8_t extended_audio_gateway_error_value; 556 uint8_t extended_audio_gateway_error; 557 558 // establish codecs connection 559 uint8_t suggested_codec; 560 uint8_t codec_confirmed; 561 uint8_t sco_for_msbc_failed; |
562 | 562 uint8_t trigger_codec_exchange; 563 564 // establish audio connection |
563 hfp_link_settings_t link_setting; | 565 hfp_link_settings_t link_setting; |
566 uint8_t accept_sco; // 1 = SCO, 2 = eSCO |
|
564 | 567 |
565 uint8_t trigger_codec_exchange; 566 uint8_t establish_audio_connection; | 568 uint8_t establish_audio_connection; |
567 uint8_t release_audio_connection; 568 uint8_t release_slc_connection; 569 570 btstack_timer_source_t hfp_timeout; 571 572 uint8_t microphone_gain; 573 uint8_t send_microphone_gain; 574 --- 17 unchanged lines hidden (view full) --- 592 uint8_t ag_call_hold_action; 593 uint8_t ag_response_and_hold_action; 594 uint8_t ag_dtmf_code; 595 596 int send_status_of_current_calls; 597 int next_call_index; 598 599 // HF only | 569 uint8_t release_audio_connection; 570 uint8_t release_slc_connection; 571 572 btstack_timer_source_t hfp_timeout; 573 574 uint8_t microphone_gain; 575 uint8_t send_microphone_gain; 576 --- 17 unchanged lines hidden (view full) --- 594 uint8_t ag_call_hold_action; 595 uint8_t ag_response_and_hold_action; 596 uint8_t ag_dtmf_code; 597 598 int send_status_of_current_calls; 599 int next_call_index; 600 601 // HF only |
600 uint8_t hf_accept_sco; | |
601 hfp_hf_query_operator_state_t hf_query_operator_state; 602 uint8_t hf_answer_incoming_call; 603 uint8_t hf_initiate_outgoing_call; 604 uint8_t hf_initiate_memory_dialing; 605 uint8_t hf_initiate_redial_last_number; 606 bool hf_send_codec_confirm; 607 bool hf_send_supported_codecs; 608 --- 86 unchanged lines hidden (view full) --- 695 696void hfp_establish_service_level_connection(bd_addr_t bd_addr, uint16_t service_uuid, hfp_role_t local_role); 697void hfp_release_service_level_connection(hfp_connection_t * connection); 698void hfp_reset_context_flags(hfp_connection_t * connection); 699 700void hfp_release_audio_connection(hfp_connection_t * connection); 701 702void hfp_setup_synchronous_connection(hfp_connection_t * connection); | 602 hfp_hf_query_operator_state_t hf_query_operator_state; 603 uint8_t hf_answer_incoming_call; 604 uint8_t hf_initiate_outgoing_call; 605 uint8_t hf_initiate_memory_dialing; 606 uint8_t hf_initiate_redial_last_number; 607 bool hf_send_codec_confirm; 608 bool hf_send_supported_codecs; 609 --- 86 unchanged lines hidden (view full) --- 696 697void hfp_establish_service_level_connection(bd_addr_t bd_addr, uint16_t service_uuid, hfp_role_t local_role); 698void hfp_release_service_level_connection(hfp_connection_t * connection); 699void hfp_reset_context_flags(hfp_connection_t * connection); 700 701void hfp_release_audio_connection(hfp_connection_t * connection); 702 703void hfp_setup_synchronous_connection(hfp_connection_t * connection); |
704void hfp_accept_synchronous_connection(hfp_connection_t * hfp_connection, bool incoming_eSCO); |
|
703int hfp_supports_codec(uint8_t codec, int codecs_nr, uint8_t * codecs); 704void hfp_hf_drop_mSBC_if_eSCO_not_supported(uint8_t * codecs, uint8_t * codecs_nr); 705void hfp_init_link_settings(hfp_connection_t * hfp_connection, uint8_t eSCO_S4_supported); 706hfp_link_settings_t hfp_next_link_setting(hfp_link_settings_t current_setting, bool local_eSCO_supported, bool remote_eSCO_supported, bool eSCO_s4_supported, uint8_t negotiated_codec); 707 708const char * hfp_hf_feature(int index); 709const char * hfp_ag_feature(int index); 710 --- 33 unchanged lines hidden --- | 705int hfp_supports_codec(uint8_t codec, int codecs_nr, uint8_t * codecs); 706void hfp_hf_drop_mSBC_if_eSCO_not_supported(uint8_t * codecs, uint8_t * codecs_nr); 707void hfp_init_link_settings(hfp_connection_t * hfp_connection, uint8_t eSCO_S4_supported); 708hfp_link_settings_t hfp_next_link_setting(hfp_link_settings_t current_setting, bool local_eSCO_supported, bool remote_eSCO_supported, bool eSCO_s4_supported, uint8_t negotiated_codec); 709 710const char * hfp_hf_feature(int index); 711const char * hfp_ag_feature(int index); 712 --- 33 unchanged lines hidden --- |