diff options
author | Satya Calloji <satyac@broadcom.com> | 2014-06-11 22:53:12 -0700 |
---|---|---|
committer | Wei Wang <weiwa@google.com> | 2014-06-30 10:43:31 -0700 |
commit | a28f92a7f5737bb89fd4667d52ae325a4b6aa40b (patch) | |
tree | d5ec094f6859c350660a73160f284bc140d6cc13 /include/hardware/bt_gatt_client.h | |
parent | 20a1a059961502e828521dda07e768d1dabcca9e (diff) | |
download | hardware_libhardware-a28f92a7f5737bb89fd4667d52ae325a4b6aa40b.zip hardware_libhardware-a28f92a7f5737bb89fd4667d52ae325a4b6aa40b.tar.gz hardware_libhardware-a28f92a7f5737bb89fd4667d52ae325a4b6aa40b.tar.bz2 |
LE ADV Filter changes
Header changes for ADV filter feature
Change-Id: Ib568f422c4171ed8a3bb42d9e75af5250edf98b6
Diffstat (limited to 'include/hardware/bt_gatt_client.h')
-rw-r--r-- | include/hardware/bt_gatt_client.h | 40 |
1 files changed, 30 insertions, 10 deletions
diff --git a/include/hardware/bt_gatt_client.h b/include/hardware/bt_gatt_client.h index c23f942..fea7260 100644 --- a/include/hardware/bt_gatt_client.h +++ b/include/hardware/bt_gatt_client.h @@ -160,7 +160,15 @@ typedef void (*listen_callback)(int status, int server_if); typedef void (*configure_mtu_callback)(int conn_id, int status, int mtu); /** Callback invoked when a scan filter configuration command has completed */ -typedef void (*scan_filter_callback)(int action, int status); +typedef void (*scan_filter_cfg_callback)(int action, int client_if, int status, int filt_type, + int avbl_space); + +/** Callback invoked when scan param has been added, cleared, or deleted */ +typedef void (*scan_filter_param_callback)(int action, int client_if, int status, + int avbl_space); + +/** Callback invoked when a scan filter configuration command has completed */ +typedef void (*scan_filter_status_callback)(int enable, int client_if, int status); /** Callback invoked when multi-adv enable operation has completed */ typedef void (*multi_adv_enable_callback)(int client_if, int status); @@ -214,7 +222,9 @@ typedef struct { read_remote_rssi_callback read_remote_rssi_cb; listen_callback listen_cb; configure_mtu_callback configure_mtu_cb; - scan_filter_callback scan_filter_cb; + scan_filter_cfg_callback scan_filter_cfg_cb; + scan_filter_param_callback scan_filter_param_cb; + scan_filter_status_callback scan_filter_status_cb; multi_adv_enable_callback multi_adv_enable_cb; multi_adv_update_callback multi_adv_update_cb; multi_adv_data_callback multi_adv_data_cb; @@ -321,16 +331,26 @@ typedef struct { /** Request RSSI for a given remote device */ bt_status_t (*read_remote_rssi)( int client_if, const bt_bdaddr_t *bd_addr); - /** Enable or disable scan filtering */ - bt_status_t (*scan_filter_enable)( int enable ); + /** Setup scan filter params */ + bt_status_t (*scan_filter_param_setup)(int client_if, int action, int filt_index, int feat_seln, + int list_logic_type, int filt_logic_type, int rssi_high_thres, + int rssi_low_thres, int dely_mode, int found_timeout, + int lost_timeout, int found_timeout_cnt); - /** Configure a scan filter condition */ - bt_status_t (*scan_filter_add)(int type, int company_id, int company_mask, - int len, const bt_uuid_t *p_uuid, const bt_uuid_t *p_uuid_mask, - const bt_bdaddr_t *bd_addr, char addr_type, const char* p_value); - /** Clear all scan filter conditions */ - bt_status_t (*scan_filter_clear)(); + /** Configure a scan filter condition */ + 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, int data_len, char* p_data, int mask_len, + char* p_mask); + + /** Clear all scan filter conditions for specific filter index*/ + bt_status_t (*scan_filter_clear)(int client_if, int filt_index); + + /** Enable / disable scan filter feature*/ + bt_status_t (*scan_filter_enable)(int client_if, bool enable); /** Determine the type of the remote device (LE, BR/EDR, Dual-mode) */ int (*get_device_type)( const bt_bdaddr_t *bd_addr ); |