hfp_ag.h (154628cc9fe8290893caea2aecefe6f2cd4769bb) | hfp_ag.h (5be6b47a7f686392b26eff93e7600ba14ec6b01b) |
---|---|
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 --- 460 unchanged lines hidden (view full) --- 469 * @param error 470 * @return status ERROR_CODE_SUCCESS if successful, otherwise: 471 * - ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection does not exist, or 472 * - ERROR_CODE_COMMAND_DISALLOWED if extended audio gateway error report is disabled 473 */ 474uint8_t hfp_ag_report_extended_audio_gateway_error_result_code(hci_con_handle_t acl_handle, hfp_cme_error_t error); 475 476/** | 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 --- 460 unchanged lines hidden (view full) --- 469 * @param error 470 * @return status ERROR_CODE_SUCCESS if successful, otherwise: 471 * - ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection does not exist, or 472 * - ERROR_CODE_COMMAND_DISALLOWED if extended audio gateway error report is disabled 473 */ 474uint8_t hfp_ag_report_extended_audio_gateway_error_result_code(hci_con_handle_t acl_handle, hfp_cme_error_t error); 475 476/** |
477 * @brief Send unsolicited result code (most likely a response to a vendor-specific command not part of standard HFP). 478 * @note Emits HFP_SUBEVENT_COMPLETE when result code was sent 479 * 480 * @param unsolicited_result_code to send 481 * @return status ERROR_CODE_SUCCESS if successful, otherwise: 482 * - ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection does not exist, or 483 * - ERROR_CODE_COMMAND_DISALLOWED if extended audio gateway error report is disabled 484 */ 485uint8_t hfp_ag_send_unsolicited_result_code(hci_con_handle_t acl_handle, const char * unsolicited_result_code); 486 487/** |
|
477 * @brief De-Init HFP AG 478 */ 479void hfp_ag_deinit(void); 480 481/* API_END */ 482 483// testing 484hfp_ag_indicator_t * hfp_ag_get_ag_indicators(hfp_connection_t * hfp_connection); 485 486// @return true to process even as normal, false to cause HFP AG to ignore event 487void hfp_ag_register_custom_call_sm_handler(bool (*handler)(hfp_ag_call_event_t event)); 488 489#if defined __cplusplus 490} 491#endif 492 493#endif | 488 * @brief De-Init HFP AG 489 */ 490void hfp_ag_deinit(void); 491 492/* API_END */ 493 494// testing 495hfp_ag_indicator_t * hfp_ag_get_ag_indicators(hfp_connection_t * hfp_connection); 496 497// @return true to process even as normal, false to cause HFP AG to ignore event 498void hfp_ag_register_custom_call_sm_handler(bool (*handler)(hfp_ag_call_event_t event)); 499 500#if defined __cplusplus 501} 502#endif 503 504#endif |