btgatt_client_interface_t مرجع الهيكل
#include < bt_gatt_client.h >
حقول البيانات | |
bt_status_t (* | register_client ) ( bt_uuid_t * uuid) |
bt_status_t (* | unregister_client ) (int client_if) |
bt_status_t (* | مسح ) (بداية منطقية) |
bt_status_t (* | connect ) (int client_if ، const bt_bdaddr_t * bd_addr ، bool is_direct ، int transport) |
bt_status_t (* | قطع الاتصال ) (int client_if، const bt_bdaddr_t * bd_addr، int conn_id) |
bt_status_t (* | استمع ) (int client_if ، bool start) |
bt_status_t (* | تحديث ) (int client_if ، const bt_bdaddr_t * bd_addr) |
bt_status_t (* | search_service ) (int conn_id، bt_uuid_t * filter_uid) |
bt_status_t (* | read_characteristic ) (int conn_id، uint16_t handle، int auth_req) |
bt_status_t (* | write_characteristic ) (int conn_id، uint16_t handle، int write_type، int auth_req، vector <uint8_t> value) |
bt_status_t (* | read_descriptor ) (int conn_id، uint16_t handle، int auth_req) |
bt_status_t (* | write_descriptor ) (int conn_id، uint16_t handle، int write_type، int auth_req، vector <uint8_t> value) |
bt_status_t (* | execute_write ) (int conn_id، int execute) |
bt_status_t (* | register_for_notification ) (int client_if، const bt_bdaddr_t * bd_addr، uint16_t handle) |
bt_status_t (* | deregister_for_notification ) (int client_if ، const bt_bdaddr_t * bd_addr ، uint16_t handle) |
bt_status_t (* | read_remote_rssi ) (int client_if، const bt_bdaddr_t * bd_addr) |
bt_status_t (* | scan_filter_param_setup ) ( btgatt_filt_param_setup_t filt_param) |
bt_status_t (* | scan_filter_add_remove ) (int client_if، int action، int filt_type، int filt_index، int company_id، int company_id_mask، const bt_uuid_t * p_uuid، const bt_uuid_t * p_uuid_mask، const bt_bdaddrpe_t * ) |
bt_status_t (* | scan_filter_clear ) (int client_if ، int filt_index) |
bt_status_t (* | scan_filter_enable ) (int client_if ، bool enable) |
int (* | get_device_type ) (const bt_bdaddr_t * bd_addr) |
bt_status_t (* | set_adv_data ) (int client_if، bool set_scan_rsp، bool include_name، bool include_txpower، int min_interval، int max_interval، int look، vector <uint8_t> Manufacturer_data، vector <uint8_t> service_data، vector <uint8_t> service_uuid) |
bt_status_t (* | config_mtu ) (int conn_id، int mtu) |
bt_status_t (* | conn_parameter_update ) (const bt_bdaddr_t * bd_addr ، int min_interval ، int max_interval ، int latency ، int timeout) |
bt_status_t (* | set_scan_parameters ) (int client_if ، int scan_interval ، int scan_window) |
bt_status_t (* | multi_adv_enable ) (int client_if ، int min_interval ، int max_interval ، int adv_type ، int chnl_map ، int tx_power ، int timeout_s) |
bt_status_t (* | multi_adv_update ) (int client_if ، int min_interval ، int max_interval ، int adv_type ، int chnl_map ، int tx_power ، int timeout_s) |
bt_status_t (* | multi_adv_set_inst_data ) (int client_if، bool set_scan_rsp، bool include_name، bool incl_txpower، int look، vector <uint8_t> Manufacturer_data، vector <uint8_t> service_data، vector <uint8_t> service_uuid) |
bt_status_t (* | multi_adv_disable ) (int client_if) |
bt_status_t (* | batchscan_cfg_storage ) (int client_if، int batch_scan_full_max، int batch_scan_trunc_max، int batch_scan_notify_threshold) |
bt_status_t (* | batchscan_enb_batch_scan ) (int client_if، int scan_mode، int scan_interval، int scan_window، int addr_type، int discard_rule) |
bt_status_t (* | batchscan_dis_batch_scan ) (int client_if) |
bt_status_t (* | batchscan_read_reports ) (int client_if، int scan_mode) |
bt_status_t (* | test_command ) (الأمر int ، btgatt_test_params_t * params) |
bt_status_t (* | get_gatt_db ) (int conn_id) |
وصف مفصل
يمثل واجهة عميل BT-GATT القياسية.
التعريف في السطر 274 من الملف bt_gatt_client.h .
التوثيق الميداني
bt_status_t (* batchscan_cfg_storage) (int client_if، int batch_scan_full_max، int batch_scan_trunc_max، int batch_scan_notify_threshold) |
التعريف في السطر 393 للملف bt_gatt_client.h .
bt_status_t (* batchscan_dis_batch_scan) (int client_if) |
التعريف في السطر 401 للملف bt_gatt_client.h .
bt_status_t (* batchscan_enb_batch_scan) (int client_if، int scan_mode، int scan_interval، int scan_window، int addr_type، int discard_rule) |
التعريف في السطر 397 للملف bt_gatt_client.h .
bt_status_t (* batchscan_read_reports) (int client_if، int scan_mode) |
التعريف في السطر 404 للملف bt_gatt_client.h .
bt_status_t (* configuration_mtu) (int conn_id ، int mtu) |
تكوين MTU لاتصال معين
التعريف في السطر 367 للملف bt_gatt_client.h .
bt_status_t (* conn_parameter_update) (const bt_bdaddr_t * bd_addr ، int min_interval ، int max_interval ، int latency ، int timeout) |
اطلب تحديث معلمة الاتصال
التعريف في السطر 370 للملف bt_gatt_client.h .
bt_status_t (* connect) (int client_if ، const bt_bdaddr_t * bd_addr ، bool is_direct ، int transport) |
قم بإنشاء اتصال بجهاز LE عن بُعد أو بجهاز ثنائي الوضع
التعريف في السطر 285 من الملف bt_gatt_client.h .
bt_status_t (* deregister_for_notification) (int client_if ، const bt_bdaddr_t * bd_addr ، uint16_t handle) |
إلغاء تسجيل طلب سابق للإخطارات / المؤشرات
التعريف في السطر 332 للملف bt_gatt_client.h .
bt_status_t (* قطع الاتصال) (int client_if ، const bt_bdaddr_t * bd_addr ، int conn_id) |
افصل جهاز بعيد أو قم بإلغاء اتصال معلق
التعريف في السطر 289 للملف bt_gatt_client.h .
bt_status_t (* execute_write) (int conn_id، int execute) |
تنفيذ عملية كتابة معدة
التعريف في السطر 322 للملف bt_gatt_client.h .
int (* get_device_type) (const bt_bdaddr_t * bd_addr) |
تحديد نوع الجهاز البعيد (LE ، BR / EDR ، الوضع المزدوج)
التعريف في السطر 357 للملف bt_gatt_client.h .
bt_status_t (* get_gatt_db) (int conn_id) |
احصل على محتوى gatt db
التعريف في السطر 410 من الملف bt_gatt_client.h .
bt_status_t (* استمع) (int client_if ، بداية منطقية) |
ابدأ أو أوقف الإعلانات للاستماع إلى الاتصالات الواردة
التعريف في السطر 293 للملف bt_gatt_client.h .
bt_status_t (* multi_adv_disable) (int client_if) |
التعريف في السطر 390 من الملف bt_gatt_client.h .
bt_status_t (* multi_adv_enable) (int client_if ، int min_interval ، int max_interval ، int adv_type ، int chnl_map ، int tx_power ، int timeout_s) |
التعريف في السطر 377 للملف bt_gatt_client.h .
bt_status_t (* multi_adv_set_inst_data) (int client_if، bool set_scan_rsp، bool include_name، bool incl_txpower، int look، vector <uint8_t> Manufacturer_data، vector <uint8_t> service_data، vector <uint8_t> service_uuid) |
التعريف في السطر 385 من الملف bt_gatt_client.h .
bt_status_t (* multi_adv_update) (int client_if ، int min_interval ، int max_interval ، int adv_type ، int chnl_map ، int tx_power ، int timeout_s) |
التعريف في السطر 381 للملف bt_gatt_client.h .
bt_status_t (* read_characteristic) (int conn_id ، uint16_t handle ، int auth_req) |
اقرأ خاصية على جهاز بعيد
التعريف في السطر 305 من الملف bt_gatt_client.h .
bt_status_t (* read_descriptor) (int conn_id ، uint16_t handle ، int auth_req) |
اقرأ الوصف الخاص بخاصية معينة
التعريف في السطر 314 للملف bt_gatt_client.h .
bt_status_t (* read_remote_rssi) (int client_if ، const bt_bdaddr_t * bd_addr) |
اطلب RSSI لجهاز بعيد محدد
التعريف في السطر 336 من الملف bt_gatt_client.h .
bt_status_t (* تحديث) (int client_if ، const bt_bdaddr_t * bd_addr) |
امسح ذاكرة التخزين المؤقت للسمات لجهاز معين
التعريف في السطر 296 للملف bt_gatt_client.h .
bt_status_t (* register_client) ( bt_uuid_t * uuid) |
يسجل تطبيق عميل GATT مع المكدس
التعريف في السطر 276 من الملف bt_gatt_client.h .
bt_status_t (* register_for_notification) (int client_if ، const bt_bdaddr_t * bd_addr ، uint16_t handle) |
سجل لتلقي إخطارات أو مؤشرات عن خاصية معينة
التعريف في السطر 328 للملف bt_gatt_client.h .
bt_status_t (* مسح) (بداية منطقية) |
ابدأ أو أوقف فحص جهاز LE
التعريف في السطر 282 للملف bt_gatt_client.h .
bt_status_t (* scan_filter_add_remove) (int client_if، int action، int filt_type، int filt_index، int company_id، int company_id_mask، const bt_uuid_t * p_uuid، const bt_uuid_t * p_uuid_mask، const bt_d_addr * vector> uint8_t> p_mask) |
تكوين حالة مرشح الفحص
التعريف في السطر 343 من الملف bt_gatt_client.h .
bt_status_t (* scan_filter_clear) (int client_if ، int filt_index) |
امسح جميع شروط مرشح المسح لفهرس مرشح معين
التعريف في السطر 351 للملف bt_gatt_client.h .
bt_status_t (* scan_filter_enable) (int client_if ، bool enable) |
تمكين / تعطيل ميزة مرشح المسح الضوئي
التعريف في السطر 354 للملف bt_gatt_client.h .
bt_status_t (* scan_filter_param_setup) ( btgatt_filt_param_setup_t filt_param) |
إعداد عوامل تصفية المسح الضوئي
التعريف في السطر 339 للملف bt_gatt_client.h .
bt_status_t (* search_service) (int conn_id، bt_uuid_t * filter_uuid) |
تعداد جميع خدمات الجات على جهاز متصل. اختياريًا ، يمكن تصفية النتائج لمعرف UUID محدد.
التعريف في السطر 302 للملف bt_gatt_client.h .
bt_status_t (* set_adv_data) (int client_if، bool set_scan_rsp، bool include_name، bool include_txpower، int min_interval، int max_interval، int look، vector <uint8_t> Manufacturer_data، vector <uint8_t> service_data، vector <uint8_t> service_uuid) |
قم بتعيين بيانات الإعلان أو مسح بيانات الاستجابة
التعريف في السطر 360 من الملف bt_gatt_client.h .
bt_status_t (* set_scan_parameters) (int client_if ، int scan_interval ، int scan_window) |
يضبط الفاصل الزمني للمسح الضوئي والنافذة بوحدات N * 0.625 مللي ثانية
التعريف في السطر 374 للملف bt_gatt_client.h .
bt_status_t (* test_command) (الأمر int ، btgatt_test_params_t * params) |
واجهة وضع الاختبار
التعريف في السطر 407 للملف bt_gatt_client.h .
bt_status_t (* unregister_client) (int client_if) |
قم بإلغاء تسجيل تطبيق عميل من المكدس
التعريف في السطر 279 للملف bt_gatt_client.h .
bt_status_t (* write_characteristic) (int conn_id، uint16_t handle، int write_type، int auth_req، vector <uint8_t> value) |
اكتب خاصية بعيدة
التعريف في السطر 309 للملف bt_gatt_client.h .
bt_status_t (* write_descriptor) (int conn_id، uint16_t handle، int write_type، int auth_req، vector <uint8_t> value) |
اكتب واصفًا بعيدًا لخاصية معينة
التعريف في السطر 317 للملف bt_gatt_client.h .
تم إنشاء وثائق هذه البنية من الملف التالي:
- الأجهزة / libhardware / تشمل / الأجهزة / bt_gatt_client.h