HCI Extended Advertisment Filtering#

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

Modules#

sl_btctrl_hci_event_filter_config_t

sl_btctrl_hci_event_uuid_filter_t

Functions#

Macros#

#define

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

#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

The bit position in the filter bitmap to enable 16-bit Service Data UUIDs 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

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

#define
SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_16_BIT_ENABLE_MASK (1 << SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_16_BIT_ENABLE)
#define

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

#define
SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_16_BIT_ENABLE_MASK (1 << SL_BT_HCI_FILTER_CONFIG_COMPLETE_UUID_16_BIT_ENABLE)
#define

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

#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

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

#define
SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_32_BIT_ENABLE_MASK (1 << SL_BT_HCI_FILTER_CONFIG_INCOMPLETE_UUID_32_BIT_ENABLE)
#define

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

#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
TypeDirectionArgument NameDescription
void *N/Afilter

sl_btctrl_rssi_uuid_filtering_init#

sl_status_t sl_btctrl_rssi_uuid_filtering_init (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

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


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)

SL_BT_HCI_FILTER_RSSI_MAX#

#define SL_BT_HCI_FILTER_RSSI_MAX
Value:
-30

Maximum RSSI threshold value for RSSI filtering.


SL_BT_HCI_FILTER_RSSI_MIN#

#define SL_BT_HCI_FILTER_RSSI_MIN
Value:
-120

Minumum RSSI threshold value for RSSI filtering.


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


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)

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


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)

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


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)

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


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)

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


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)

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


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)

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)