13deb3ec6SMatthias Ringwald /* 23deb3ec6SMatthias Ringwald * Copyright (C) 2014 BlueKitchen GmbH 33deb3ec6SMatthias Ringwald * 43deb3ec6SMatthias Ringwald * Redistribution and use in source and binary forms, with or without 53deb3ec6SMatthias Ringwald * modification, are permitted provided that the following conditions 63deb3ec6SMatthias Ringwald * are met: 73deb3ec6SMatthias Ringwald * 83deb3ec6SMatthias Ringwald * 1. Redistributions of source code must retain the above copyright 93deb3ec6SMatthias Ringwald * notice, this list of conditions and the following disclaimer. 103deb3ec6SMatthias Ringwald * 2. Redistributions in binary form must reproduce the above copyright 113deb3ec6SMatthias Ringwald * notice, this list of conditions and the following disclaimer in the 123deb3ec6SMatthias Ringwald * documentation and/or other materials provided with the distribution. 133deb3ec6SMatthias Ringwald * 3. Neither the name of the copyright holders nor the names of 143deb3ec6SMatthias Ringwald * contributors may be used to endorse or promote products derived 153deb3ec6SMatthias Ringwald * from this software without specific prior written permission. 163deb3ec6SMatthias Ringwald * 4. Any redistribution, use, or modification is done solely for 173deb3ec6SMatthias Ringwald * personal benefit and not for any commercial purpose or for 183deb3ec6SMatthias Ringwald * monetary gain. 193deb3ec6SMatthias Ringwald * 203deb3ec6SMatthias Ringwald * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 213deb3ec6SMatthias Ringwald * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 223deb3ec6SMatthias Ringwald * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 233deb3ec6SMatthias Ringwald * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHIAS 243deb3ec6SMatthias Ringwald * RINGWALD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 253deb3ec6SMatthias Ringwald * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 263deb3ec6SMatthias Ringwald * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 273deb3ec6SMatthias Ringwald * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 283deb3ec6SMatthias Ringwald * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 293deb3ec6SMatthias Ringwald * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 303deb3ec6SMatthias Ringwald * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 313deb3ec6SMatthias Ringwald * SUCH DAMAGE. 323deb3ec6SMatthias Ringwald * 333deb3ec6SMatthias Ringwald * Please inquire about commercial licensing options at 343deb3ec6SMatthias Ringwald * [email protected] 353deb3ec6SMatthias Ringwald * 363deb3ec6SMatthias Ringwald */ 373deb3ec6SMatthias Ringwald 383deb3ec6SMatthias Ringwald // ***************************************************************************** 393deb3ec6SMatthias Ringwald // 4066a048abSMatthias Ringwald // HFP Audio Gateway (AG) unit 413deb3ec6SMatthias Ringwald // 423deb3ec6SMatthias Ringwald // ***************************************************************************** 433deb3ec6SMatthias Ringwald 443deb3ec6SMatthias Ringwald 453deb3ec6SMatthias Ringwald #ifndef btstack_hfp_ag_h 463deb3ec6SMatthias Ringwald #define btstack_hfp_ag_h 473deb3ec6SMatthias Ringwald 483deb3ec6SMatthias Ringwald #include "hci.h" 49*efda0b48SMatthias Ringwald #include "classic/sdp_client_rfcomm.h" 503edc84c5SMatthias Ringwald #include "classic/hfp.h" 5174386ee0SMatthias Ringwald #include "classic/hfp_gsm_model.h" 523deb3ec6SMatthias Ringwald 533deb3ec6SMatthias Ringwald #if defined __cplusplus 543deb3ec6SMatthias Ringwald extern "C" { 553deb3ec6SMatthias Ringwald #endif 563deb3ec6SMatthias Ringwald 573deb3ec6SMatthias Ringwald /* API_START */ 58ce263fc8SMatthias Ringwald typedef struct { 59ce263fc8SMatthias Ringwald uint8_t type; 60ce263fc8SMatthias Ringwald const char * number; 61ce263fc8SMatthias Ringwald } hfp_phone_number_t; 623deb3ec6SMatthias Ringwald 633deb3ec6SMatthias Ringwald /** 643deb3ec6SMatthias Ringwald * @brief Create HFP Audio Gateway (AG) SDP service record. 65a0ffb263SMatthias Ringwald * @param service 66a0ffb263SMatthias Ringwald * @param rfcomm_channel_nr 67a0ffb263SMatthias Ringwald * @param name 68a0ffb263SMatthias Ringwald * @param ability_to_reject_call 69a0ffb263SMatthias Ringwald * @param suported_features 32-bit bitmap, see HFP_AGSF_* values in hfp.h 703deb3ec6SMatthias Ringwald */ 719b1c3b4dSMatthias Ringwald void hfp_ag_create_sdp_record(uint8_t * service, uint32_t service_record_handle, int rfcomm_channel_nr, const char * name, uint8_t ability_to_reject_call, uint16_t supported_features);; 723deb3ec6SMatthias Ringwald 733deb3ec6SMatthias Ringwald /** 74a0ffb263SMatthias Ringwald * @brief Set up HFP Audio Gateway (AG) device without additional supported features. 75a0ffb263SMatthias Ringwald * @param rfcomm_channel_nr 763deb3ec6SMatthias Ringwald */ 77a0ffb263SMatthias Ringwald void hfp_ag_init(uint16_t rfcomm_channel_nr); 78a0ffb263SMatthias Ringwald 79a0ffb263SMatthias Ringwald /** 80a0ffb263SMatthias Ringwald * @brief Set codecs. 81a0ffb263SMatthias Ringwald * @param codecs_nr 82a0ffb263SMatthias Ringwald * @param codecs 83a0ffb263SMatthias Ringwald */ 84a0ffb263SMatthias Ringwald void hfp_ag_init_codecs(int codecs_nr, uint8_t * codecs); 85a0ffb263SMatthias Ringwald 86a0ffb263SMatthias Ringwald /** 87a0ffb263SMatthias Ringwald * @brief Set supported features. 88a0ffb263SMatthias Ringwald * @param supported_features 32-bit bitmap, see HFP_AGSF_* values in hfp.h 89a0ffb263SMatthias Ringwald */ 90a0ffb263SMatthias Ringwald void hfp_ag_init_supported_features(uint32_t supported_features); 91a0ffb263SMatthias Ringwald 92a0ffb263SMatthias Ringwald /** 93a0ffb263SMatthias Ringwald * @brief Set AG indicators. 94a0ffb263SMatthias Ringwald * @param indicators_nr 95a0ffb263SMatthias Ringwald * @param indicators 96a0ffb263SMatthias Ringwald */ 97a0ffb263SMatthias Ringwald void hfp_ag_init_ag_indicators(int ag_indicators_nr, hfp_ag_indicator_t * ag_indicators); 98a0ffb263SMatthias Ringwald 99a0ffb263SMatthias Ringwald /** 100a0ffb263SMatthias Ringwald * @brief Set HF indicators. 101a0ffb263SMatthias Ringwald * @param indicators_nr 102a0ffb263SMatthias Ringwald * @param indicators 103a0ffb263SMatthias Ringwald */ 104a0ffb263SMatthias Ringwald void hfp_ag_init_hf_indicators(int hf_indicators_nr, hfp_generic_status_indicator_t * hf_indicators); 105a0ffb263SMatthias Ringwald 106a0ffb263SMatthias Ringwald /** 107a0ffb263SMatthias Ringwald * @brief Set Call Hold services. 108a0ffb263SMatthias Ringwald * @param indicators_nr 109a0ffb263SMatthias Ringwald * @param indicators 110a0ffb263SMatthias Ringwald */ 111a0ffb263SMatthias Ringwald void hfp_ag_init_call_hold_services(int call_hold_services_nr, const char * call_hold_services[]); 112a0ffb263SMatthias Ringwald 1133deb3ec6SMatthias Ringwald 1143deb3ec6SMatthias Ringwald /** 1153deb3ec6SMatthias Ringwald * @brief Register callback for the HFP Audio Gateway (AG) client. 116a0ffb263SMatthias Ringwald * @param callback 1173deb3ec6SMatthias Ringwald */ 1183deb3ec6SMatthias Ringwald void hfp_ag_register_packet_handler(hfp_callback_t callback); 1193deb3ec6SMatthias Ringwald 1203deb3ec6SMatthias Ringwald /** 121a0ffb263SMatthias Ringwald * @brief Enable in-band ring tone. 122a0ffb263SMatthias Ringwald * @param use_in_band_ring_tone 12366a048abSMatthias Ringwald */ 12466a048abSMatthias Ringwald void hfp_ag_set_use_in_band_ring_tone(int use_in_band_ring_tone); 12566a048abSMatthias Ringwald 12666a048abSMatthias Ringwald 12766a048abSMatthias Ringwald // actions used by local device / user 12866a048abSMatthias Ringwald 12966a048abSMatthias Ringwald /** 1303deb3ec6SMatthias Ringwald * @brief Establish RFCOMM connection, and perform service level connection agreement: 1313deb3ec6SMatthias Ringwald * - exchange of supported features 1323deb3ec6SMatthias Ringwald * - report Audio Gateway (AG) indicators and their status 1333deb3ec6SMatthias Ringwald * - enable indicator status update in the AG 1343deb3ec6SMatthias Ringwald * - accept the information about available codecs in the Hands-Free (HF), if sent 1353deb3ec6SMatthias Ringwald * - report own information describing the call hold and multiparty services, if possible 1363deb3ec6SMatthias Ringwald * - report which HF indicators are enabled on the AG, if possible 137a0ffb263SMatthias Ringwald * The status of SLC connection establishment is reported via 138a0ffb263SMatthias Ringwald * HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED. 139a0ffb263SMatthias Ringwald * 140a0ffb263SMatthias Ringwald * @param bd_addr Bluetooth address of the HF 1413deb3ec6SMatthias Ringwald */ 1423deb3ec6SMatthias Ringwald void hfp_ag_establish_service_level_connection(bd_addr_t bd_addr); 1433deb3ec6SMatthias Ringwald 1443deb3ec6SMatthias Ringwald /** 1453deb3ec6SMatthias Ringwald * @brief Release the RFCOMM channel and the audio connection between the HF and the AG. 146a0ffb263SMatthias Ringwald * If the audio connection exists, it will be released. 147a0ffb263SMatthias Ringwald * The status of releasing the SLC connection is reported via 148a0ffb263SMatthias Ringwald * HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED. 149a0ffb263SMatthias Ringwald * 150a0ffb263SMatthias Ringwald * @param bd_addr Bluetooth address of the HF 1513deb3ec6SMatthias Ringwald */ 1523deb3ec6SMatthias Ringwald void hfp_ag_release_service_level_connection(bd_addr_t bd_addr); 1533deb3ec6SMatthias Ringwald 1543deb3ec6SMatthias Ringwald /** 155a0ffb263SMatthias Ringwald * @brief Establish audio connection. 156a0ffb263SMatthias Ringwald * The status of Audio connection establishment is reported via is reported via 157a0ffb263SMatthias Ringwald * HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE. 158a0ffb263SMatthias Ringwald * @param bd_addr Bluetooth address of the HF 159aa4dd815SMatthias Ringwald */ 1603deb3ec6SMatthias Ringwald void hfp_ag_establish_audio_connection(bd_addr_t bd_addr); 1613deb3ec6SMatthias Ringwald 1623deb3ec6SMatthias Ringwald /** 163a0ffb263SMatthias Ringwald * @brief Release audio connection. 164a0ffb263SMatthias Ringwald * The status of releasing the Audio connection is reported via is reported via 165a0ffb263SMatthias Ringwald * HSP_SUBEVENT_AUDIO_DISCONNECTION_COMPLETE. 166a0ffb263SMatthias Ringwald * @param bd_addr Bluetooth address of the HF 1673deb3ec6SMatthias Ringwald */ 1683deb3ec6SMatthias Ringwald void hfp_ag_release_audio_connection(bd_addr_t bd_addr); 1693deb3ec6SMatthias Ringwald 17066a048abSMatthias Ringwald /** 171a0ffb263SMatthias Ringwald * @brief Put the current call on hold, if it exists, and accept incoming call. 17266a048abSMatthias Ringwald */ 17366a048abSMatthias Ringwald void hfp_ag_answer_incoming_call(void); 1743deb3ec6SMatthias Ringwald 175aa4dd815SMatthias Ringwald /** 176a0ffb263SMatthias Ringwald * @brief Join held call with active call. 177aa4dd815SMatthias Ringwald */ 17866a048abSMatthias Ringwald void hfp_ag_join_held_call(void); 17966a048abSMatthias Ringwald 18066a048abSMatthias Ringwald /** 181a0ffb263SMatthias Ringwald * @brief Reject incoming call, if exists, or terminate active call. 18266a048abSMatthias Ringwald */ 18366a048abSMatthias Ringwald void hfp_ag_terminate_call(void); 18466a048abSMatthias Ringwald 18566a048abSMatthias Ringwald /* 186a0ffb263SMatthias Ringwald * @brief Put incoming call on hold. 18766a048abSMatthias Ringwald */ 18866a048abSMatthias Ringwald void hfp_ag_hold_incoming_call(void); 18966a048abSMatthias Ringwald 19066a048abSMatthias Ringwald /* 191a0ffb263SMatthias Ringwald * @brief Accept the held incoming call. 19266a048abSMatthias Ringwald */ 19366a048abSMatthias Ringwald void hfp_ag_accept_held_incoming_call(void); 19466a048abSMatthias Ringwald 19566a048abSMatthias Ringwald /* 196a0ffb263SMatthias Ringwald * @brief Reject the held incoming call. 19766a048abSMatthias Ringwald */ 19866a048abSMatthias Ringwald void hfp_ag_reject_held_incoming_call(void); 19966a048abSMatthias Ringwald 20066a048abSMatthias Ringwald /* 201a0ffb263SMatthias Ringwald * @brief Set microphone gain. 202a0ffb263SMatthias Ringwald * @param bd_addr Bluetooth address of the HF 203a0ffb263SMatthias Ringwald * @param gain Valid range: [0,15] 20466a048abSMatthias Ringwald */ 20566a048abSMatthias Ringwald void hfp_ag_set_microphone_gain(bd_addr_t bd_addr, int gain); 20666a048abSMatthias Ringwald 20766a048abSMatthias Ringwald /* 208a0ffb263SMatthias Ringwald * @brief Set speaker gain. 209a0ffb263SMatthias Ringwald * @param bd_addr Bluetooth address of the HF 210a0ffb263SMatthias Ringwald * @param gain Valid range: [0,15] 21166a048abSMatthias Ringwald */ 21266a048abSMatthias Ringwald void hfp_ag_set_speaker_gain(bd_addr_t bd_addr, int gain); 21366a048abSMatthias Ringwald 21466a048abSMatthias Ringwald /* 215a0ffb263SMatthias Ringwald * @brief Set battery level. 216a0ffb263SMatthias Ringwald * @param level Valid range: [0,5] 21766a048abSMatthias Ringwald */ 21866a048abSMatthias Ringwald void hfp_ag_set_battery_level(int level); 21966a048abSMatthias Ringwald 22066a048abSMatthias Ringwald /* 221a0ffb263SMatthias Ringwald * @brief Clear last dialed number. 22266a048abSMatthias Ringwald */ 22366a048abSMatthias Ringwald void hfp_ag_clear_last_dialed_number(void); 22466a048abSMatthias Ringwald 225a0ffb263SMatthias Ringwald /* 226a0ffb263SMatthias Ringwald * @brief Notify the HF that an incoming call is waiting 227a0ffb263SMatthias Ringwald * during an ongoing call. The notification will be sent only if the HF has 228a0ffb263SMatthias Ringwald * has previously enabled the "Call Waiting notification" in the AG. 229a0ffb263SMatthias Ringwald * @param bd_addr Bluetooth address of the HF 230a0ffb263SMatthias Ringwald */ 231a0ffb263SMatthias Ringwald void hfp_ag_notify_incoming_call_waiting(bd_addr_t bd_addr); 23266a048abSMatthias Ringwald 23366a048abSMatthias Ringwald // Voice Recognition 23466a048abSMatthias Ringwald 23566a048abSMatthias Ringwald /* 236a0ffb263SMatthias Ringwald * @brief Activate voice recognition. 237a0ffb263SMatthias Ringwald * @param bd_addr Bluetooth address of the HF 238a0ffb263SMatthias Ringwald * @param activate 23966a048abSMatthias Ringwald */ 24066a048abSMatthias Ringwald void hfp_ag_activate_voice_recognition(bd_addr_t bd_addr, int activate); 24166a048abSMatthias Ringwald 24266a048abSMatthias Ringwald /* 243a0ffb263SMatthias Ringwald * @brief Send a phone number back to the HF. 244a0ffb263SMatthias Ringwald * @param bd_addr Bluetooth address of the HF 245a0ffb263SMatthias Ringwald * @param phone_number 24666a048abSMatthias Ringwald */ 247a0ffb263SMatthias Ringwald void hfp_ag_send_phone_number_for_voice_tag(bd_addr_t bd_addr, const char * phone_number); 24866a048abSMatthias Ringwald 24966a048abSMatthias Ringwald /* 250a0ffb263SMatthias Ringwald * @brief Reject sending a phone number to the HF. 251a0ffb263SMatthias Ringwald * @param bd_addr Bluetooth address of the HF 25266a048abSMatthias Ringwald */ 25366a048abSMatthias Ringwald void hfp_ag_reject_phone_number_for_voice_tag(bd_addr_t bd_addr); 25466a048abSMatthias Ringwald 255a0ffb263SMatthias Ringwald /** 256a0ffb263SMatthias Ringwald * @brief Store phone number with initiated call. 257a0ffb263SMatthias Ringwald * @param type 258a0ffb263SMatthias Ringwald * @param number 259a0ffb263SMatthias Ringwald */ 260a0ffb263SMatthias Ringwald void hfp_ag_set_clip(uint8_t type, const char * number); 261a0ffb263SMatthias Ringwald 26266a048abSMatthias Ringwald 26366a048abSMatthias Ringwald // Cellular Actions 264aa4dd815SMatthias Ringwald 265aa4dd815SMatthias Ringwald /** 266a0ffb263SMatthias Ringwald * @brief Pass the accept incoming call event to the AG. 267aa4dd815SMatthias Ringwald */ 268aa4dd815SMatthias Ringwald void hfp_ag_incoming_call(void); 269aa4dd815SMatthias Ringwald 270aa4dd815SMatthias Ringwald /** 271a0ffb263SMatthias Ringwald * @brief Pass the reject outgoing call event to the AG. 272aa4dd815SMatthias Ringwald */ 273aa4dd815SMatthias Ringwald void hfp_ag_outgoing_call_rejected(void); 274aa4dd815SMatthias Ringwald 275aa4dd815SMatthias Ringwald /** 276a0ffb263SMatthias Ringwald * @brief Pass the accept outgoing call event to the AG. 277aa4dd815SMatthias Ringwald */ 278aa4dd815SMatthias Ringwald void hfp_ag_outgoing_call_accepted(void); 279aa4dd815SMatthias Ringwald 280aa4dd815SMatthias Ringwald /** 281a0ffb263SMatthias Ringwald * @brief Pass the outgoing call ringing event to the AG. 282aa4dd815SMatthias Ringwald */ 283aa4dd815SMatthias Ringwald void hfp_ag_outgoing_call_ringing(void); 284aa4dd815SMatthias Ringwald 285aa4dd815SMatthias Ringwald /** 286a0ffb263SMatthias Ringwald * @brief Pass the outgoing call established event to the AG. 287aa4dd815SMatthias Ringwald */ 288aa4dd815SMatthias Ringwald void hfp_ag_outgoing_call_established(void); 289aa4dd815SMatthias Ringwald 290aa4dd815SMatthias Ringwald /** 291a0ffb263SMatthias Ringwald * @brief Pass the call droped event to the AG. 292aa4dd815SMatthias Ringwald */ 293aa4dd815SMatthias Ringwald void hfp_ag_call_dropped(void); 294a0ffb263SMatthias Ringwald 295aa4dd815SMatthias Ringwald /* 296a0ffb263SMatthias Ringwald * @brief Set network registration status. 297a0ffb263SMatthias Ringwald * @param status 0 - not registered, 1 - registered 298aa4dd815SMatthias Ringwald */ 299aa4dd815SMatthias Ringwald void hfp_ag_set_registration_status(int status); 300aa4dd815SMatthias Ringwald 301aa4dd815SMatthias Ringwald /* 302a0ffb263SMatthias Ringwald * @brief Set network signal strength. 303a0ffb263SMatthias Ringwald * @param strength [0-5] 304aa4dd815SMatthias Ringwald */ 305aa4dd815SMatthias Ringwald void hfp_ag_set_signal_strength(int strength); 306aa4dd815SMatthias Ringwald 307aa4dd815SMatthias Ringwald /* 308a0ffb263SMatthias Ringwald * @brief Set roaming status. 309a0ffb263SMatthias Ringwald * @param status 0 - no roaming, 1 - roaming active 310aa4dd815SMatthias Ringwald */ 311aa4dd815SMatthias Ringwald void hfp_ag_set_roaming_status(int status); 312aa4dd815SMatthias Ringwald 313aa4dd815SMatthias Ringwald /* 314a0ffb263SMatthias Ringwald * @brief Set subcriber number information, e.g. the phone number 315a0ffb263SMatthias Ringwald * @param numbers 316a0ffb263SMatthias Ringwald * @param numbers_count 317aa4dd815SMatthias Ringwald */ 318ce263fc8SMatthias Ringwald void hfp_ag_set_subcriber_number_information(hfp_phone_number_t * numbers, int numbers_count); 319ce263fc8SMatthias Ringwald 320ce263fc8SMatthias Ringwald /* 321a0ffb263SMatthias Ringwald * @brief Called by cellular unit after a DTMF code was transmitted, so that the next one can be emitted. 322a0ffb263SMatthias Ringwald * @param bd_addr Bluetooth address of the HF 323ce263fc8SMatthias Ringwald */ 32466a048abSMatthias Ringwald void hfp_ag_send_dtmf_code_done(bd_addr_t bd_addr); 325ce263fc8SMatthias Ringwald 32666a048abSMatthias Ringwald /** 32766a048abSMatthias Ringwald * @brief Report Extended Audio Gateway Error result codes in the AG. 32866a048abSMatthias Ringwald * Whenever there is an error relating to the functionality of the AG as a 32966a048abSMatthias Ringwald * result of AT command, the AG shall send +CME ERROR: 33066a048abSMatthias Ringwald * - +CME ERROR: 0 - AG failure 33166a048abSMatthias Ringwald * - +CME ERROR: 1 - no connection to phone 33266a048abSMatthias Ringwald * - +CME ERROR: 3 - operation not allowed 33366a048abSMatthias Ringwald * - +CME ERROR: 4 - operation not supported 33466a048abSMatthias Ringwald * - +CME ERROR: 5 - PH-SIM PIN required 33566a048abSMatthias Ringwald * - +CME ERROR: 10 - SIM not inserted 33666a048abSMatthias Ringwald * - +CME ERROR: 11 - SIM PIN required 33766a048abSMatthias Ringwald * - +CME ERROR: 12 - SIM PUK required 33866a048abSMatthias Ringwald * - +CME ERROR: 13 - SIM failure 33966a048abSMatthias Ringwald * - +CME ERROR: 14 - SIM busy 34066a048abSMatthias Ringwald * - +CME ERROR: 16 - incorrect password 34166a048abSMatthias Ringwald * - +CME ERROR: 17 - SIM PIN2 required 34266a048abSMatthias Ringwald * - +CME ERROR: 18 - SIM PUK2 required 34366a048abSMatthias Ringwald * - +CME ERROR: 20 - memory full 34466a048abSMatthias Ringwald * - +CME ERROR: 21 - invalid index 34566a048abSMatthias Ringwald * - +CME ERROR: 23 - memory failure 34666a048abSMatthias Ringwald * - +CME ERROR: 24 - text string too long 34766a048abSMatthias Ringwald * - +CME ERROR: 25 - invalid characters in text string 34866a048abSMatthias Ringwald * - +CME ERROR: 26 - dial string too long 34966a048abSMatthias Ringwald * - +CME ERROR: 27 - invalid characters in dial string 35066a048abSMatthias Ringwald * - +CME ERROR: 30 - no network service 35166a048abSMatthias Ringwald * - +CME ERROR: 31 - network Timeout. 35266a048abSMatthias Ringwald * - +CME ERROR: 32 - network not allowed – Emergency calls only 353a0ffb263SMatthias Ringwald * 354a0ffb263SMatthias Ringwald * @param bd_addr Bluetooth address of the HF 355a0ffb263SMatthias Ringwald * @param error 356ce263fc8SMatthias Ringwald */ 35766a048abSMatthias Ringwald void hfp_ag_report_extended_audio_gateway_error_result_code(bd_addr_t bd_addr, hfp_cme_error_t error); 3589cae807eSMatthias Ringwald 3593deb3ec6SMatthias Ringwald /* API_END */ 3603deb3ec6SMatthias Ringwald 36166a048abSMatthias Ringwald 3623deb3ec6SMatthias Ringwald #if defined __cplusplus 3633deb3ec6SMatthias Ringwald } 3643deb3ec6SMatthias Ringwald #endif 3653deb3ec6SMatthias Ringwald 3663deb3ec6SMatthias Ringwald #endif