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 (* connect ) (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 (* disconnect_audio ) (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 ، int_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_hold ، bthf_call_state_t call_setup_state ، int إشارة ، تجوال دولي ، int batt_chg ، bt_bdaddr_t * bd_addr)
bt_status_t (* formatted_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 ، 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)
فارغ(* تنظيف ) (باطل)
bt_status_t (* config_wbs ) (bt_bdaddr_t * bd_addr ، bthf_wbs_config_t config)

وصف مفصل

يمثل واجهة BT-HF القياسية.

التعريف في السطر 223 من الملف bt_hf.h .

التوثيق الميداني

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

موافق / خطأ الاستجابة خطأ (0) موافق (1)

التعريف في السطر 271 من الملف bt_hf.h .

bt_status_t (* cind_response) (int svc ، int num_active ، int num_held ، bthf_call_state_t call_setup_state ، إشارة int ، تجوال داخلي ، int batt_chg ، bt_bdaddr_t * bd_addr)

استجابة لأمر CIND

التعريف في السطر 261 من الملف bt_hf.h .

bt_status_t (* clcc_response) (فهرس int ، 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_addr

استجابة لأمر CLCC يمكن استدعاؤها بشكل متكرر لكل فهرس مكالمة سيتم التعامل مع فهرس المكالمة 0 على أنه إنهاء NULL (إكمال الاستجابة)

التعريف في السطر 277 من الملف bt_hf.h .

باطل (* تنظيف) (باطل)

يغلق الواجهة.

التعريف في السطر 293 من الملف bt_hf.h .

bt_status_t (* configuration_wbs) (bt_bdaddr_t * bd_addr ، bthf_wbs_config_t config)

التكوين لبرنامج ترميز SCO

التعريف في السطر 296 من الملف bt_hf.h .

bt_status_t (* connect) (bt_bdaddr_t * bd_addr)

الاتصال بسماعة الرأس

التعريف في السطر 233 من الملف bt_hf.h .

bt_status_t (* connect_audio) (bt_bdaddr_t * bd_addr)

إنشاء اتصال صوتي

التعريف في السطر 239 من الملف bt_hf.h .

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

الاستجابة لأمر COPS

التعريف في السطر 258 من الملف bt_hf.h .

bt_status_t (* device_status_notification) ( bthf_network_state_t ntk_state ، bthf_service_type_t svc_type ، إشارة int ، int batt_chg)

مجتمعة إشعار تغيير حالة الجهاز

التعريف في السطر 254 من الملف bt_hf.h .

bt_status_t (* قطع الاتصال) (bt_bdaddr_t * bd_addr)

فصل من سماعة الرأس

التعريف في السطر 236 من الملف bt_hf.h .

bt_status_t (* disconnect_audio) (bt_bdaddr_t * bd_addr)

أغلق الاتصال الصوتي

التعريف في السطر 242 من الملف bt_hf.h .

bt_status_t (* formatted_at_response) (const char * rsp ، bt_bdaddr_t * bd_addr)

استجابة AT مهيأة مسبقًا ، عادةً استجابةً لمجهول AT cmd

التعريف في السطر 265 من الملف bt_hf.h .

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

تسجيل عمليات الاسترجاعات BtHf

التعريف في السطر 230 من الملف bt_hf.h .

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
  3. الرقم والنوع: صالح فقط للمكالمات الواردة والانتظار

التعريف في السطر 289 من الملف bt_hf.h .

size_t size

ضبط على sizeof (BtHfInterface)

التعريف في السطر 226 من الملف bt_hf.h .

bt_status_t (* start_voice_recognition) (bt_bdaddr_t * bd_addr)

بدء التعرف على الصوت

التعريف في السطر 245 من الملف bt_hf.h .

bt_status_t (* stop_voice_recognition) (bt_bdaddr_t * bd_addr)

وقف التعرف على الصوت

التعريف في السطر 248 من الملف bt_hf.h .

bt_status_t (* volume_control) (نوع bthf_volume_type_t ، حجم int ، bt_bdaddr_t * bd_addr)

التحكم في مستوى الصوت

التعريف في السطر 251 من الملف bt_hf.h .


تم إنشاء وثائق هذه البنية من الملف التالي:
  • الأجهزة / libhardware / تشمل / الأجهزة / bt_hf.h