HCI Extended Advertisment Filtering#

Provides API to filter HCI extended advertising reports using RSSI and UUID values

Modules#

SL_ATTRIBUTE_PACKED

Functions#

Macros#

#define
SL_BT_HCI_FILTER_CONFIG_RSSI_ENABLE_MASK (1 << SL_BT_HCI_FILTER_CONFIG_RSSI_ENABLE)
#define

Maximum RSSI threshold value for RSSI filtering.

#define

Minumum RSSI threshold value for RSSI filtering.

#define
SL_BT_HCI_FILTER_CONFIG_SERVICE_DATA_UUID_16_BIT_ENABLE_MASK (1 << SL_BT_HCI_FILTER_CONFIG_SERVICE_DATA_UUID_16_BIT_ENABLE)
#define
SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_16_BIT_ENABLE_MASK (1 << SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_16_BIT_ENABLE)
#define
SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_16_BIT_ENABLE_MASK (1 << SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_16_BIT_ENABLE)
#define
SL_BT_HCI_FILTER_CONFIG_SERVICE_DATA_UUID_32_BIT_ENABLE_MASK (1 << SL_BT_HCI_FILTER_CONFIG_SERVICE_DATA_UUID_32_BIT_ENABLE)
#define
SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_32_BIT_ENABLE_MASK (1 << SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_32_BIT_ENABLE)
#define
SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_32_BIT_ENABLE_MASK (1 << SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_32_BIT_ENABLE)

Function Documentation#

sl_btctrl_hci_event_configure_filtering#

sl_status_t sl_btctrl_hci_event_configure_filtering (void * filter)
Parameters
N/Afilter

Definition at line 126 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

sl_btctrl_rssi_uuid_filtering_init#

sl_status_t sl_btctrl_rssi_uuid_filtering_init (void )
Parameters
N/A

Definition at line 132 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

Macro Definition Documentation#

SL_BT_HCI_FILTER_CONFIG_RSSI_ENABLE#

#define SL_BT_HCI_FILTER_CONFIG_RSSI_ENABLE
Value:
0

Enable RSSI filtering. The bit position in the filter bitmap to enable RSSI filtering


Definition at line 47 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

SL_BT_HCI_FILTER_CONFIG_RSSI_ENABLE_MASK#

#define SL_BT_HCI_FILTER_CONFIG_RSSI_ENABLE_MASK
Value:
  (1 << SL_BT_HCI_FILTER_CONFIG_RSSI_ENABLE)

Definition at line 48 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

SL_BT_HCI_FILTER_RSSI_MAX#

#define SL_BT_HCI_FILTER_RSSI_MAX
Value:
-30

Maximum RSSI threshold value for RSSI filtering.


Definition at line 52 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

SL_BT_HCI_FILTER_RSSI_MIN#

#define SL_BT_HCI_FILTER_RSSI_MIN
Value:
-120

Minumum RSSI threshold value for RSSI filtering.


Definition at line 55 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

SL_BT_HCI_FILTER_CONFIG_SERVICE_DATA_UUID_16_BIT_ENABLE#

#define SL_BT_HCI_FILTER_CONFIG_SERVICE_DATA_UUID_16_BIT_ENABLE
Value:
1

The bit position in the filter bitmap to enable 16-bit Service Data UUIDs filtering


Definition at line 59 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

SL_BT_HCI_FILTER_CONFIG_SERVICE_DATA_UUID_16_BIT_ENABLE_MASK#

#define SL_BT_HCI_FILTER_CONFIG_SERVICE_DATA_UUID_16_BIT_ENABLE_MASK
Value:
  (1 << SL_BT_HCI_FILTER_CONFIG_SERVICE_DATA_UUID_16_BIT_ENABLE)

Definition at line 60 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_16_BIT_ENABLE#

#define SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_16_BIT_ENABLE
Value:
2

The bit position in the filter bitmap to enable filtering of Incomplete Lists of 16-bit Service Class UUIDs


Definition at line 65 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_16_BIT_ENABLE_MASK#

#define SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_16_BIT_ENABLE_MASK
Value:
  (1 << SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_16_BIT_ENABLE)

Definition at line 66 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_16_BIT_ENABLE#

#define SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_16_BIT_ENABLE
Value:
3

The Bit position in the filter bitmap to enable filtering of Complete lists of 16-bit Service Class UUIDs


Definition at line 71 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_16_BIT_ENABLE_MASK#

#define SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_16_BIT_ENABLE_MASK
Value:
  (1 << SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_16_BIT_ENABLE)

Definition at line 72 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

SL_BT_HCI_FILTER_CONFIG_SERVICE_DATA_UUID_32_BIT_ENABLE#

#define SL_BT_HCI_FILTER_CONFIG_SERVICE_DATA_UUID_32_BIT_ENABLE
Value:
4

The bit position in the filter bitmap to enable 32-bit Service Data UUID filtering


Definition at line 77 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

SL_BT_HCI_FILTER_CONFIG_SERVICE_DATA_UUID_32_BIT_ENABLE_MASK#

#define SL_BT_HCI_FILTER_CONFIG_SERVICE_DATA_UUID_32_BIT_ENABLE_MASK
Value:
  (1 << SL_BT_HCI_FILTER_CONFIG_SERVICE_DATA_UUID_32_BIT_ENABLE)

Definition at line 78 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_32_BIT_ENABLE#

#define SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_32_BIT_ENABLE
Value:
5

The bit position in the filter bitmap to enable filtering of Incomplete Lists of 32-bit Service Class UUIDs


Definition at line 83 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_32_BIT_ENABLE_MASK#

#define SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_32_BIT_ENABLE_MASK
Value:
  (1 << SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_32_BIT_ENABLE)

Definition at line 84 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_32_BIT_ENABLE#

#define SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_32_BIT_ENABLE
Value:
6

The bit position in the filter bitmap to enable filtering of Complete Lists of 32-bit Service Class UUIDs


Definition at line 89 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_32_BIT_ENABLE_MASK#

#define SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_32_BIT_ENABLE_MASK
Value:
  (1 << SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_32_BIT_ENABLE)

Definition at line 90 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h

SL_BT_HCI_FILTER_CONFIG_MASK#

#define SL_BT_HCI_FILTER_CONFIG_MASK
Value:
(SL_BT_HCI_FILTER_CONFIG_RSSI_ENABLE_MASK \
| SL_BT_HCI_FILTER_CONFIG_SERVICE_DATA_UUID_16_BIT_ENABLE_MASK \
| SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_16_BIT_ENABLE_MASK \
| SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_16_BIT_ENABLE_MASK \
| SL_BT_HCI_FILTER_CONFIG_SERVICE_DATA_UUID_32_BIT_ENABLE_MASK \
| SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_32_BIT_ENABLE_MASK \
| SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_32_BIT_ENABLE_MASK)

Definition at line 93 of file common/hci_ext_adv_filter_rssi_uuid/inc/sl_bt_hci_ext_adv_filter.h