hfp_ag.h (471dea41ab395d4c7fcbf32edf8a18b239742ccb) hfp_ag.h (7f8f119190fb5c4dbcc499490b8408ac3b4e4539)
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

--- 467 unchanged lines hidden (view full) ---

476 * @return status ERROR_CODE_SUCCESS if successful, otherwise:
477 * - ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection does not exist, or
478 * - ERROR_CODE_COMMAND_DISALLOWED if extended audio gateway error report is disabled
479 */
480uint8_t hfp_ag_report_extended_audio_gateway_error_result_code(hci_con_handle_t acl_handle, hfp_cme_error_t error);
481
482/**
483 * @brief Send unsolicited result code (most likely a response to a vendor-specific command not part of standard HFP).
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

--- 467 unchanged lines hidden (view full) ---

476 * @return status ERROR_CODE_SUCCESS if successful, otherwise:
477 * - ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection does not exist, or
478 * - ERROR_CODE_COMMAND_DISALLOWED if extended audio gateway error report is disabled
479 */
480uint8_t hfp_ag_report_extended_audio_gateway_error_result_code(hci_con_handle_t acl_handle, hfp_cme_error_t error);
481
482/**
483 * @brief Send unsolicited result code (most likely a response to a vendor-specific command not part of standard HFP).
484 * @note Emits HFP_SUBEVENT_COMPLETE when result code was sent
484 * @note Emits HFP_SUBEVENT_CUSTOM_AT_MESSAGE_SENT when result code was sent
485 *
486 * @param unsolicited_result_code to send
487 * @return status ERROR_CODE_SUCCESS if successful, otherwise:
488 * - ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection does not exist, or
489 * - ERROR_CODE_COMMAND_DISALLOWED if extended audio gateway error report is disabled
490 */
491uint8_t hfp_ag_send_unsolicited_result_code(hci_con_handle_t acl_handle, const char * unsolicited_result_code);
492

--- 29 unchanged lines hidden ---
485 *
486 * @param unsolicited_result_code to send
487 * @return status ERROR_CODE_SUCCESS if successful, otherwise:
488 * - ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection does not exist, or
489 * - ERROR_CODE_COMMAND_DISALLOWED if extended audio gateway error report is disabled
490 */
491uint8_t hfp_ag_send_unsolicited_result_code(hci_con_handle_t acl_handle, const char * unsolicited_result_code);
492

--- 29 unchanged lines hidden ---