hfp_ag.h (d7d354cb400cea9d9f085617fdcb0688b42744fe) hfp_ag.h (d84719b14b724e9967aeab5d871d19d77c4c56ef)
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

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

256 * - ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection does not exist, or
257 * - ERROR_CODE_COMMAND_DISALLOWED if call waiting notification is not enabled
258 */
259uint8_t hfp_ag_notify_incoming_call_waiting(hci_con_handle_t acl_handle);
260
261// Voice Recognition
262
263/*
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

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

256 * - ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection does not exist, or
257 * - ERROR_CODE_COMMAND_DISALLOWED if call waiting notification is not enabled
258 */
259uint8_t hfp_ag_notify_incoming_call_waiting(hci_con_handle_t acl_handle);
260
261// Voice Recognition
262
263/*
264 * @brief Activate voice recognition.
264 * @brief Activate voice recognition and emit HFP_SUBEVENT_VOICE_RECOGNITION_STATUS event with status ERROR_CODE_SUCCESS
265 * if successful, otherwise ERROR_CODE_COMMAND_DISALLOWED. The state field of this event is set to 1.
265 *
266 * @param acl_handle
266 *
267 * @param acl_handle
267 * @param activate
268 * @return status ERROR_CODE_SUCCESS if successful, otherwise:
269 * - ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection does not exist, or
268 * @return status ERROR_CODE_SUCCESS if successful, otherwise:
269 * - ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection does not exist, or
270 * - ERROR_CODE_COMMAND_DISALLOWED if AG or HF does not support voice recognition
270 * - ERROR_CODE_COMMAND_DISALLOWED if AG or HF does not support voice recognition, or already activated
271 */
271 */
272uint8_t hfp_ag_activate_voice_recognition(hci_con_handle_t acl_handle, int activate);
272uint8_t hfp_ag_activate_voice_recognition(hci_con_handle_t acl_handle);
273
274/*
273
274/*
275 * @brief Deactivate voice recognition and emit HFP_SUBEVENT_VOICE_RECOGNITION_STATUS event with status ERROR_CODE_SUCCESS
276 * if successful, otherwise ERROR_CODE_COMMAND_DISALLOWED. The state field of this event is set to 0.
277 *
278 * @param acl_handle
279 * @return status ERROR_CODE_SUCCESS if successful, otherwise:
280 * - ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection does not exist, or
281 * - ERROR_CODE_COMMAND_DISALLOWED if AG or HF does not support voice recognition, or already deactivated
282 */
283uint8_t hfp_ag_deactivate_voice_recognition(hci_con_handle_t acl_handle);
284
285/*
275 * @brief Activate enhanced voice recognition.
276 *
277 * @param acl_handle
278 * @param activate
279 * @return status ERROR_CODE_SUCCESS if successful, otherwise:
280 * - ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection does not exist, or
281 * - ERROR_CODE_COMMAND_DISALLOWED if AG or HF does not support enhanced voice recognition
282 */

--- 225 unchanged lines hidden ---
286 * @brief Activate enhanced voice recognition.
287 *
288 * @param acl_handle
289 * @param activate
290 * @return status ERROR_CODE_SUCCESS if successful, otherwise:
291 * - ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection does not exist, or
292 * - ERROR_CODE_COMMAND_DISALLOWED if AG or HF does not support enhanced voice recognition
293 */

--- 225 unchanged lines hidden ---