hfp_hf.h (ab2445a0204a8deaee8d62e6d3fba1e51a226576) | hfp_hf.h (51a2ebde0031fdd3ad6bb64362108b25da7cb703) |
---|---|
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 --- 506 unchanged lines hidden (view full) --- 515/* 516 * @brief Tests if in-band ringtone is active on AG (requires SLC) 517 * 518 * @param acl_handler 519 * @return 0 if unknown acl_handle or in-band ring-tone disabled, otherwise 1 520 */ 521int hfp_hf_in_band_ringtone_active(hci_con_handle_t acl_handle); 522 | 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 --- 506 unchanged lines hidden (view full) --- 515/* 516 * @brief Tests if in-band ringtone is active on AG (requires SLC) 517 * 518 * @param acl_handler 519 * @return 0 if unknown acl_handle or in-band ring-tone disabled, otherwise 1 520 */ 521int hfp_hf_in_band_ringtone_active(hci_con_handle_t acl_handle); 522 |
523/* 524 * @brief Send AT command (most likely a vendor-specific command not part of standard HFP). 525 * @note Result (OK/ERROR) is reported via HFP_SUBEVENT_COMPLETE 526 * To receive potential unsolicited result code, add ENABLE_HFP_AT_MESSAGES to get all message via HFP_SUBEVENT_AT_MESSAGE_RECEIVED 527 * 528 * @param at_command to send 529 * @return status ERROR_CODE_SUCCESS if successful, otherwise: 530 * - ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection does not exist, or 531 * - ERROR_CODE_COMMAND_DISALLOWED if extended audio gateway error report is disabled 532 */ 533uint8_t hfp_hf_send_at_command(hci_con_handle_t hfp_ag_acl_handle, const char * at_command); 534 |
|
523/** 524 * @brief De-Init HFP HF 525 */ 526void hfp_hf_deinit(void); 527 528/* API_END */ 529 530#if defined __cplusplus 531} 532#endif 533 534#endif // BTSTACK_HFP_HF_H | 535/** 536 * @brief De-Init HFP HF 537 */ 538void hfp_hf_deinit(void); 539 540/* API_END */ 541 542#if defined __cplusplus 543} 544#endif 545 546#endif // BTSTACK_HFP_HF_H |