mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-30 15:32:41 +00:00
hfp: update API docu and CHANGELOG
This commit is contained in:
parent
3cfa2dc3c7
commit
e8e7290180
@ -21,6 +21,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
|
||||
### Changed
|
||||
- HFP: API functions return status code if appropriate
|
||||
- HFP: removed one parameter from hfp_ag/hf_activate_voice_recognition function, instead introduced hfp_ag/hf_deactivate_voice_recognition
|
||||
- HFP: event HFP_SUBEVENT_VOICE_RECOGNITION_STATUS emitted on (enhanced) voice recognition status change. Field "activated" replaced with "state". Added additional "status" field that indicates if the command was succesful.
|
||||
- HFP: streamlined enhanced voice recognition function names
|
||||
- Run Loop: new functionality for HCI transport drivers and inter-process communication
|
||||
- *btstack_run_loop_poll_data_sources_from_irq*: used to transfer control from IRQ handler to main thread/run loop
|
||||
- *btstack_run_loop_execute_on_main_thread*: schedule code exection on main thread from other thread
|
||||
|
@ -298,7 +298,8 @@ uint8_t hfp_ag_deactivate_voice_recognition(hci_con_handle_t acl_handle);
|
||||
uint8_t hfp_ag_activate_enhanced_voice_recognition(hci_con_handle_t acl_handle);
|
||||
|
||||
/*
|
||||
* @brief Notify HF that sound will be played.
|
||||
* @brief Notify HF that sound will be played and HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_STARTING_SOUND event with status ERROR_CODE_SUCCESS
|
||||
* if successful, otherwise ERROR_CODE_COMMAND_DISALLOWED.
|
||||
*
|
||||
* @param acl_handle
|
||||
* @param activate
|
||||
@ -309,7 +310,8 @@ uint8_t hfp_ag_activate_enhanced_voice_recognition(hci_con_handle_t acl_handle);
|
||||
uint8_t hfp_ag_enhanced_voice_recognition_report_sending_audio(hci_con_handle_t acl_handle);
|
||||
|
||||
/*
|
||||
* @brief Notify HF that AG is ready for input.
|
||||
* @brief Notify HF that AG is ready for input and emit HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_READY_TO_ACCEPT_AUDIO_INPUT event with status ERROR_CODE_SUCCESS
|
||||
* if successful, otherwise ERROR_CODE_COMMAND_DISALLOWED.
|
||||
*
|
||||
* @param acl_handle
|
||||
* @param activate
|
||||
@ -320,7 +322,8 @@ uint8_t hfp_ag_enhanced_voice_recognition_report_sending_audio(hci_con_handle_t
|
||||
uint8_t hfp_ag_enhanced_voice_recognition_report_ready_for_audio(hci_con_handle_t acl_handle);
|
||||
|
||||
/*
|
||||
* @brief Notify that AG is processing input.
|
||||
* @brief Notify that AG is processing input and emit HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_IS_PROCESSING_AUDIO_INPUT event with status ERROR_CODE_SUCCESS
|
||||
* if successful, otherwise ERROR_CODE_COMMAND_DISALLOWED.
|
||||
*
|
||||
* @param acl_handle
|
||||
* @param activate
|
||||
@ -331,7 +334,8 @@ uint8_t hfp_ag_enhanced_voice_recognition_report_ready_for_audio(hci_con_handle_
|
||||
uint8_t hfp_ag_enhanced_voice_recognition_report_processing_input(hci_con_handle_t acl_handle);
|
||||
|
||||
/*
|
||||
* @brief Send enhanced audio recognition message.
|
||||
* @brief Send enhanced audio recognition message and HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE_SENT event with status ERROR_CODE_SUCCESS
|
||||
* if successful, otherwise ERROR_CODE_COMMAND_DISALLOWED.
|
||||
*
|
||||
* @param acl_handle
|
||||
* @param activate
|
||||
|
@ -388,7 +388,7 @@ uint8_t hfp_hf_activate_voice_recognition(hci_con_handle_t acl_handle);
|
||||
uint8_t hfp_hf_deactivate_voice_recognition(hci_con_handle_t acl_handle);
|
||||
|
||||
/**
|
||||
* @brief Activate enhanced voice recognition (EVR) and emit HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_STATUS event with status ERROR_CODE_SUCCESS
|
||||
* @brief Activate enhanced voice recognition (EVR) and emit HFP_SUBEVENT_VOICE_RECOGNITION_STATUS event with status ERROR_CODE_SUCCESS
|
||||
* if successful, otherwise ERROR_CODE_COMMAND_DISALLOWED. The state field of this event is to the current state of EVR: 1 if activated, otherwise 0.
|
||||
* Prerequisite is established SLC.
|
||||
*
|
||||
@ -401,7 +401,7 @@ uint8_t hfp_hf_activate_enhanced_voice_recognition(hci_con_handle_t acl_handle);
|
||||
|
||||
/**
|
||||
* @brief Indicate that the HF is ready to accept audio. Prerequisite is established voice recognition session.
|
||||
* The HF may send this value during an ongoing VR (Voice Recognition) session to terminate audio output from
|
||||
* The HF may call this function during an ongoing AVR (Audio Voice Recognition) session to terminate audio output from
|
||||
* the AG (if there is any) and prepare the AG for new audio input.
|
||||
*
|
||||
* @param acl_handle
|
||||
@ -411,7 +411,7 @@ uint8_t hfp_hf_activate_enhanced_voice_recognition(hci_con_handle_t acl_handle);
|
||||
uint8_t hfp_hf_enhanced_voice_recognition_report_ready_for_audio(hci_con_handle_t acl_handle);
|
||||
|
||||
/**
|
||||
* @brief Deactivate enhanced voice recognition (EVR) and emit HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_STATUS event with status ERROR_CODE_SUCCESS
|
||||
* @brief Deactivate enhanced voice recognition (EVR) and emit HFP_SUBEVENT_VOICE_RECOGNITION_STATUS event with status ERROR_CODE_SUCCESS
|
||||
* if successful, otherwise ERROR_CODE_COMMAND_DISALLOWED. The state field of this event is to the current state of EVR: 1 if activated, otherwise 0.
|
||||
* Prerequisite is established SLC.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user