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 (* | 连接)(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_uuid) |
bt_status_t (* | read_characteristic )(int conn_id, uint16_t 句柄, int auth_req) |
bt_status_t (* | write_characteristic )(int conn_id, uint16_t 句柄, int write_type, int auth_req, vector<uint8_t > value) |
bt_status_t (* | read_descriptor )(int conn_id, uint16_t 句柄, int auth_req) |
bt_status_t (* | write_descriptor )(int conn_id, uint16_t 句柄, int write_type, int auth_req, vector<uint8_t > value) |
bt_status_t (* | 执行写入)(int conn_id ,int执行) |
bt_status_t (* | register_for_notification )(int client_if, const bt_bdaddr_t *bd_addr, uint16_t 句柄) |
bt_status_t (* | deregister_for_notification )(int client_if, const bt_bdaddr_t *bd_addr, uint16_t 句柄) |
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_bdaddr_t *bd_addr, char addr_type, vector<uint8_t> data, vector<uint_mask ) |
bt_status_t (* | scan_filter_clear )(int client_if, int filt_index) |
bt_status_t (* | scan_filter_enable )(int client_if, bool enable) |
整数(* | 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 appearance, vector<uint8_t>manufacturer_data, vector<uint8_t> service_data, vector<uint8_t> service_uuid) |
bt_status_t (* | configure_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 外观, 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 客户端接口。
在文件bt_gatt_client.h的第274行定义。
现场文件
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_gatt_client.h的第393行定义。
bt_status_t (* batchscan_dis_batch_scan)(int client_if) |
在文件bt_gatt_client.h的第401行定义。
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_gatt_client.h的第397行定义。
bt_status_t (* batchscan_read_reports)(int client_if, int scan_mode) |
在文件bt_gatt_client.h的第404行定义。
bt_status_t (* configure_mtu)(int conn_id, int mtu) |
为给定连接配置 MTU
在文件bt_gatt_client.h的第367行定义。
bt_status_t (* conn_parameter_update)(const bt_bdaddr_t *bd_addr, int min_interval, int max_interval, int latency, int timeout) |
请求连接参数更新
在文件bt_gatt_client.h的第370行定义。
bt_status_t (* connect)(int client_if, const bt_bdaddr_t *bd_addr, bool is_direct, int transport) |
创建与远程 LE 或双模设备的连接
在文件bt_gatt_client.h的第285行定义。
bt_status_t (* deregister_for_notification)(int client_if, const bt_bdaddr_t *bd_addr, uint16_t 句柄) |
取消注册先前的通知/指示请求
在文件bt_gatt_client.h的第332行定义。
bt_status_t (* disconnect)(int client_if, const bt_bdaddr_t *bd_addr, int conn_id) |
断开远程设备或取消挂起的连接
在文件bt_gatt_client.h的第289行定义。
bt_status_t (* execute_write)(int conn_id, int execute) |
执行准备好的写操作
在文件bt_gatt_client.h的第322行定义。
int(* get_device_type)(const bt_bdaddr_t *bd_addr) |
确定远程设备的类型(LE、BR/EDR、双模)
在文件bt_gatt_client.h的第357行定义。
bt_status_t (* get_gatt_db)(int conn_id) |
获取 gatt 数据库内容
在文件bt_gatt_client.h的第410行定义。
bt_status_t (* 听)(int client_if, bool start) |
启动或停止广告以侦听传入连接
在文件bt_gatt_client.h的第293行定义。
bt_status_t (* multi_adv_disable)(int client_if) |
在文件bt_gatt_client.h的第390行定义。
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_gatt_client.h的第377行定义。
bt_status_t (* multi_adv_set_inst_data)(int client_if, bool set_scan_rsp, bool include_name, bool incl_txpower, int 外观, vector<uint8_t>manufacturer_data, vector<uint8_t> service_data, vector<uint8_t> service_uuid) |
在文件bt_gatt_client.h的第385行定义。
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_gatt_client.h的第381行定义。
bt_status_t (* read_characteristic)(int conn_id, uint16_t handle, int auth_req) |
读取远程设备上的特征
在文件bt_gatt_client.h的第305行定义。
bt_status_t (* read_descriptor)(int conn_id, uint16_t handle, int auth_req) |
读取给定特征的描述符
在文件bt_gatt_client.h的第314行定义。
bt_status_t (* read_remote_rssi)(int client_if, const bt_bdaddr_t *bd_addr) |
为给定的远程设备请求 RSSI
在文件bt_gatt_client.h的第336行定义。
bt_status_t (* refresh)(int client_if, const bt_bdaddr_t *bd_addr) |
清除给定设备的属性缓存
在文件bt_gatt_client.h的第296行定义。
bt_status_t (* register_client)( bt_uuid_t *uuid) |
向堆栈注册 GATT 客户端应用程序
在文件bt_gatt_client.h的第276行定义。
bt_status_t (* register_for_notification)(int client_if, const bt_bdaddr_t *bd_addr, uint16_t 句柄) |
注册以接收给定特征的通知或指示
在文件bt_gatt_client.h的第328行定义。
bt_status_t (* scan)(bool start) |
开始或停止 LE 设备扫描
在文件bt_gatt_client.h的第282行定义。
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_bdaddr_t *bd_addr, char addr_type, vector<uint8_ uint8_t > p_mask) |
配置扫描过滤条件
在文件bt_gatt_client.h的第343行定义。
bt_status_t (* scan_filter_clear)(int client_if, int filt_index) |
清除特定过滤器索引的所有扫描过滤器条件
在文件bt_gatt_client.h的第351行定义。
bt_status_t (* scan_filter_enable)(int client_if, bool enable) |
启用/禁用扫描过滤器功能
在文件bt_gatt_client.h的第354行定义。
bt_status_t (* scan_filter_param_setup)( btgatt_filt_param_setup_t filt_param) |
设置扫描过滤器参数
在文件bt_gatt_client.h的第339行定义。
bt_status_t (* search_service)(int conn_id, bt_uuid_t *filter_uuid) |
枚举连接设备上的所有 GATT 服务。或者,可以针对给定的 UUID 过滤结果。
在文件bt_gatt_client.h的第302行定义。
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 appearance, vector<uint8_t> Manufacturer_data, vector<uint8_t> service_data, vector<uint8_t> service_uuid) |
设置广告数据或扫描响应数据
在文件bt_gatt_client.h的第360行定义。
bt_status_t (* set_scan_parameters)(int client_if, int scan_interval, int scan_window) |
以 N*0.625 毫秒为单位设置 LE 扫描间隔和窗口
在文件bt_gatt_client.h的第374行定义。
bt_status_t (* test_command)(int command, btgatt_test_params_t *params) |
测试模式界面
在文件bt_gatt_client.h的第407行定义。
bt_status_t (* unregister_client)(int client_if) |
从堆栈中注销客户端应用程序
在文件bt_gatt_client.h的第279行定义。
bt_status_t (* write_characteristic)(int conn_id, uint16_t handle, int write_type, int auth_req, vector<uint8_t > value) |
写一个远程特征
在文件bt_gatt_client.h的第309行定义。
bt_status_t (* write_descriptor)(int conn_id, uint16_t handle, int write_type, int auth_req, vector<uint8_t > value) |
为给定特征编写远程描述符
在文件bt_gatt_client.h的第317行定义。
此结构的文档是从以下文件生成的: