hfp_hf.h (2be52304616e5a00f00bd6b28e1a44dccce31d09) | hfp_hf.h (42aadee500c4b13e2a892e81e2d6db7fc4b68e70) |
---|---|
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 --- 87 unchanged lines hidden (view full) --- 96 97/** 98 * @brief Register callback for the HFP Hands-Free (HF) client. 99 * @param callback 100 */ 101void hfp_hf_register_packet_handler(btstack_packet_handler_t callback); 102 103/** | 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 --- 87 unchanged lines hidden (view full) --- 96 97/** 98 * @brief Register callback for the HFP Hands-Free (HF) client. 99 * @param callback 100 */ 101void hfp_hf_register_packet_handler(btstack_packet_handler_t callback); 102 103/** |
104 * @brief Set microphone gain used during SLC for Volume Synchronization. 105 * 106 * @param gain Valid range: [0,15] 107 * @return status ERROR_CODE_SUCCESS if successful, otherwise: 108 * - ERROR_CODE_INVALID_HCI_COMMAND_PARAMETERS if invalid gain range 109 */ 110uint8_t hfp_hf_set_default_microphone_gain(uint8_t gain); 111 112/** 113 * @brief Set speaker gain used during SLC for Volume Synchronization. 114 * 115 * @param gain Valid range: [0,15] 116 * @return status ERROR_CODE_SUCCESS if successful, otherwise: 117 * - ERROR_CODE_INVALID_HCI_COMMAND_PARAMETERS if invalid gain range 118 */ 119uint8_t hfp_hf_set_default_speaker_gain(uint8_t gain); 120 121/** |
|
104 * @brief Establish RFCOMM connection with the AG with given Bluetooth address, 105 * and perform service level connection (SLC) agreement: 106 * - exchange supported features 107 * - retrieve Audio Gateway (AG) indicators and their status 108 * - enable indicator status update in the AG 109 * - notify the AG about its own available codecs, if possible 110 * - retrieve the AG information describing the call hold and multiparty services, if possible 111 * - retrieve which HF indicators are enabled on the AG, if possible --- 444 unchanged lines hidden --- | 122 * @brief Establish RFCOMM connection with the AG with given Bluetooth address, 123 * and perform service level connection (SLC) agreement: 124 * - exchange supported features 125 * - retrieve Audio Gateway (AG) indicators and their status 126 * - enable indicator status update in the AG 127 * - notify the AG about its own available codecs, if possible 128 * - retrieve the AG information describing the call hold and multiparty services, if possible 129 * - retrieve which HF indicators are enabled on the AG, if possible --- 444 unchanged lines hidden --- |