|
|
@@ -274,7 +274,7 @@ typedef void (* esp_hf_cb_t) (esp_hf_cb_event_t event, esp_hf_cb_param_t *param)
|
|
|
*
|
|
|
* @return
|
|
|
* - ESP_OK: success
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: if callback is a NULL function pointer
|
|
|
*
|
|
|
*/
|
|
|
@@ -287,7 +287,7 @@ esp_err_t esp_hf_ag_register_callback(esp_hf_cb_t callback);
|
|
|
*
|
|
|
* @return
|
|
|
* - ESP_OK: if the initialization request is sent successfully
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -300,7 +300,7 @@ esp_err_t esp_hf_ag_init(void);
|
|
|
*
|
|
|
* @return
|
|
|
* - ESP_OK: success
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -315,7 +315,7 @@ esp_err_t esp_hf_ag_deinit(void);
|
|
|
*
|
|
|
* @return
|
|
|
* - ESP_OK: connect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -330,7 +330,7 @@ esp_err_t esp_hf_ag_slc_connect(esp_bd_addr_t remote_bda);
|
|
|
*
|
|
|
* @return
|
|
|
* - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -344,8 +344,8 @@ esp_err_t esp_hf_ag_slc_disconnect(esp_bd_addr_t remote_bda);
|
|
|
* @param[in] remote_bda: remote bluetooth device address
|
|
|
*
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: audio connect request is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -359,8 +359,8 @@ esp_err_t esp_hf_ag_audio_connect(esp_bd_addr_t remote_bda);
|
|
|
* @param[in] remote_bda: remote bluetooth device address
|
|
|
*
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: audio disconnect request is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -376,8 +376,8 @@ esp_err_t esp_hf_ag_audio_disconnect(esp_bd_addr_t remote_bda);
|
|
|
* @param[in] value: 0 - voice recognition disabled, 1- voice recognition enabled
|
|
|
*
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: response of volume recognition is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -395,8 +395,8 @@ esp_err_t esp_hf_ag_vra_control(esp_bd_addr_t remote_bda, esp_hf_vr_state_t valu
|
|
|
* @param[in] volume: gain of the speaker of microphone, ranges 0 to 15
|
|
|
*
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: volume synchronization control is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_ERR_INVALID_ARG: if arguments are invalid
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
@@ -413,8 +413,8 @@ esp_err_t esp_hf_ag_volume_control(esp_bd_addr_t remote_bda, esp_hf_volume_contr
|
|
|
* @param[in] unat: User AT command response to HF Client.
|
|
|
* It will response "ERROR" by default if unat is NULL.
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: response of unknown AT command is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -429,8 +429,8 @@ esp_err_t esp_hf_ag_unknown_at_send(esp_bd_addr_t remote_addr, char *unat);
|
|
|
* @param[in] response_code: AT command response code
|
|
|
* @param[in] error_code: CME error code
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: extend error code is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -447,8 +447,8 @@ esp_err_t esp_hf_ag_cmee_send(esp_bd_addr_t remote_bda, esp_hf_at_response_code_
|
|
|
* @param[in] ntk_state: network service state
|
|
|
* @param[in] signal: signal strength from 0 to 5
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: device status notification is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_ERR_INVALID_ARG: if arguments are invalid
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
@@ -469,8 +469,8 @@ esp_err_t esp_hf_ag_devices_status_indchange(esp_bd_addr_t remote_addr, esp_hf_c
|
|
|
* @param[in] ind_type: indicator type
|
|
|
* @param[in] value: indicator value
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: indicator report is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -490,8 +490,8 @@ esp_err_t esp_hf_ag_ciev_report(esp_bd_addr_t remote_addr, esp_hf_ciev_report_ty
|
|
|
* @param[in] batt_lev: battery level from 0 to 5
|
|
|
* @param[in] call_held_status: call held status
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: response to device individual indicators is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_ERR_INVALID_ARG: if the arguments are invalid
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
@@ -510,8 +510,8 @@ esp_err_t esp_hf_ag_cind_response(esp_bd_addr_t remote_addr,
|
|
|
* @param[in] remote_addr: remote bluetooth device address
|
|
|
* @param[in] name: current operator name
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: reponse for AT+COPS command is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -531,8 +531,8 @@ esp_err_t esp_hf_ag_cops_response(esp_bd_addr_t remote_addr, char *name);
|
|
|
* @param[in] number: current call number
|
|
|
* @param[in] type: international type or unknow
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: response to AT+CLCC command is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -553,8 +553,8 @@ esp_err_t esp_hf_ag_clcc_response(esp_bd_addr_t remote_addr, int index, esp_hf_c
|
|
|
* 160-175: national, but no prefix nor escape digits
|
|
|
* @param[in] service_type: service type (unknown/voice/fax)
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: response for AT+CNUM command is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -568,8 +568,8 @@ esp_err_t esp_hf_ag_cnum_response(esp_bd_addr_t remote_addr, char *number, int n
|
|
|
* @param[in] remote_addr: remote bluetooth device address
|
|
|
* @param[in] state: in-band ring tone state
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: information of in-band ring tone is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_ERR_INVALID_ARG: if arguments are invalid
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
@@ -589,8 +589,8 @@ esp_err_t esp_hf_ag_bsir(esp_bd_addr_t remote_addr, esp_hf_in_band_ring_state_t
|
|
|
* @param[in] number: number of the incoming call
|
|
|
* @param[in] call_addr_type: call address type
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: answer incoming call is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -611,8 +611,8 @@ esp_err_t esp_hf_ag_answer_call(esp_bd_addr_t remote_addr, int num_active, int n
|
|
|
* @param[in] number: number of the incoming call
|
|
|
* @param[in] call_addr_type: call address type
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: reject incoming call is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -636,8 +636,8 @@ esp_err_t esp_hf_ag_reject_call(esp_bd_addr_t remote_addr, int num_active, int n
|
|
|
* @param[in] number: number of the outgoing call
|
|
|
* @param[in] call_addr_type: call address type
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: a call initiation is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -658,8 +658,8 @@ esp_err_t esp_hf_ag_out_call(esp_bd_addr_t remote_addr, int num_active, int num_
|
|
|
* @param[in] number: number of the call
|
|
|
* @param[in] call_addr_type: call address type
|
|
|
* @return
|
|
|
- * - ESP_OK: disconnect request is sent to lower layer
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_OK: end an ongoing call is sent to lower layer
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|
|
|
@@ -676,7 +676,7 @@ esp_err_t esp_hf_ag_end_call(esp_bd_addr_t remote_addr, int num_active, int num_
|
|
|
*
|
|
|
* @return
|
|
|
* - ESP_OK: success
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: if callback is a NULL function pointer
|
|
|
*
|
|
|
*/
|
|
|
@@ -693,7 +693,7 @@ esp_err_t esp_hf_ag_register_data_callback(esp_hf_incoming_data_cb_t recv, esp_h
|
|
|
*
|
|
|
* @return
|
|
|
* - ESP_OK: if the request is sent successfully
|
|
|
- * - ESP_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
+ * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled
|
|
|
* - ESP_FAIL: others
|
|
|
*
|
|
|
*/
|