bthf_interface_t構造体リファレンス

bthf_interface_t構造体リファレンス

#include < bt_hf.h >

データフィールド

size_tサイズ
bt_status_t (* init )( bthf_callbacks_t * callbacks、int max_hf_clients)
bt_status_t (*接続)(bt_bdaddr_t * bd_addr)
bt_status_t (*切断)(bt_bdaddr_t * bd_addr)
bt_status_t (* connect_audio )(bt_bdaddr_t * bd_addr)
bt_status_t (*切断オーディオ)(bt_bdaddr_t * bd_addr)
bt_status_t (* start_voice_recognition )(bt_bdaddr_t * bd_addr)
bt_status_t (* stop_voice_recognition )(bt_bdaddr_t * bd_addr)
bt_status_t (* volume_control )( bthf_volume_type_t type、int volume、bt_bdaddr_t * bd_addr)
bt_status_t (* device_status_notification )( bthf_network_state_t ntk_state、 bthf_service_type_t svc_type、int signal、int batt_chg)
bt_status_t (* cops_response )(const char * cops、bt_bdaddr_t * bd_addr)
bt_status_t (* cind_response )(int svc、int num_active、int num_held、 bthf_call_state_t call_setup_state、int signal、int roam、int batt_chg、bt_bdaddr_t * bd_addr)
bt_status_t (* formated_at_response )(const char * rsp、bt_bdaddr_t * bd_addr)
bt_status_t (* at_response )( bthf_at_response_t response_code、int error_code、bt_bdaddr_t * bd_addr)
bt_status_t (* clcc_response )(int index、 bthf_call_direction_t dir、 bthf_call_state_t state、 bthf_call_mode_t mode、 bthf_call_mpty_type_t mpty、const char * number、 bthf_call_addrtype_t type、bt_bdaddr_t * bd_addr)
bt_status_t (* phone_state_change )(int num_active、int num_held、 bthf_call_state_t call_setup_state、const char * number、 bthf_call_addrtype_t type)
空所(*クリーンアップ)(void)
bt_status_t (* configure_wbs )(bt_bdaddr_t * bd_addr、 bthf_wbs_config_t config)

詳細な説明

標準のBT-HFインターフェースを表します。

ファイルbt_hf.h223行で定義されています。

フィールドドキュメント

bt_status_t (* at_response)( bthf_at_response_t response_code、int error_code、bt_bdaddr_t * bd_addr)

ok /エラー応答ERROR(0)OK(1)

ファイルbt_hf.h271行で定義されています。

bt_status_t (* cind_response)(int svc、int num_active、int num_held、 bthf_call_state_t call_setup_state、int signal、int roam、int batt_chg、bt_bdaddr_t * bd_addr)

CINDコマンドの応答

ファイルbt_hf.h261行で定義されています。

bt_status_t (* clcc_response)(int index、 bthf_call_direction_t dir、 bthf_call_state_t state、 bthf_call_mode_t mode、 bthf_call_mpty_type_t mpty、const char * number、 bthf_call_addrtype_t type、bt_bdaddr_t * bd_

CLCCコマンドの応答呼び出しインデックスごとに繰り返し呼び出すことができます呼び出しインデックス0は、NULL終了として扱われます(応答を完了します)

ファイルbt_hf.h277行で定義されています。

void(*クリーンアップ)(void)

インターフェイスを閉じます。

ファイルbt_hf.h293行で定義されています。

bt_status_t (* configure_wbs)(bt_bdaddr_t * bd_addr、 bthf_wbs_config_t config)

SCOコーデックの構成

ファイルbt_hf.h296行で定義されています。

bt_status_t (*接続)(bt_bdaddr_t * bd_addr)

ヘッドセットに接続する

ファイルbt_hf.h233行で定義されています。

bt_status_t (* connect_audio)(bt_bdaddr_t * bd_addr)

オーディオ接続を作成する

ファイルbt_hf.h239行で定義されています。

bt_status_t (* cops_response)(const char * cops、bt_bdaddr_t * bd_addr)

COPSコマンドの応答

ファイルbt_hf.h258行で定義されています。

bt_status_t (* device_status_notification)( bthf_network_state_t ntk_state、 bthf_service_type_t svc_type、int signal、int batt_chg)

結合されたデバイスステータス変更通知

ファイルbt_hf.h254行で定義されています。

bt_status_t (*切断)(bt_bdaddr_t * bd_addr)

ヘッドセットから切断します

ファイルbt_hf.h236行で定義されています。

bt_status_t (*disconnect_audio)(bt_bdaddr_t * bd_addr)

オーディオ接続を閉じます

ファイルbt_hf.h242行で定義されています。

bt_status_t (* formated_at_response)(const char * rsp、bt_bdaddr_t * bd_addr)

事前にフォーマットされたAT応答、通常は不明なATコマンドへの応答

ファイルbt_hf.h265行で定義されています。

bt_status_t (* init)( bthf_callbacks_t * callbacks、int max_hf_clients)

BtHfコールバックを登録する

ファイルbt_hf.h230行で定義されています。

bt_status_t (* phone_state_change)(int num_active、int num_held、 bthf_call_state_t call_setup_state、const char * number、 bthf_call_addrtype_t type)

通話状態の変更を通知する更新ごとに通知します

  1. アクティブ/保留/呼び出し中の通話の数
  2. call_state:これは、このメッセージをトリガーした状態変化を示します。これは、BtHfCallStateから値の1つを取得します。
  3. 番号とタイプ:着信と待機中の通話にのみ有効

ファイルbt_hf.h289行で定義されています。

size_tサイズ

sizeof(BtHfInterface)に設定

ファイルbt_hf.h226行で定義されています。

bt_status_t (* start_voice_recognition)(bt_bdaddr_t * bd_addr)

音声認識を開始します

ファイルbt_hf.h245行で定義されています。

bt_status_t (* stop_voice_recognition)(bt_bdaddr_t * bd_addr)

音声認識を停止します

ファイルbt_hf.h248行で定義されています。

bt_status_t (* volume_control)( bthf_volume_type_t type、int volume、bt_bdaddr_t * bd_addr)

音量調節

ファイルbt_hf.h251行で定義されています。


この構造体のドキュメントは、次のファイルから生成されました。