Filtering of advertisement packets based on their advertisement type. More...
Enumerations | |
enum | adv_packet_filter_mode_t { ADV_FILTER_WHITELIST_MODE, ADV_FILTER_BLACKLIST_MODE } |
Possible working modes for BLE advertisement packet type filter. More... | |
Functions | |
void | bearer_adv_packet_filtering_set (bool onoff) |
Enable or disable the advertisement type filtering. More... | |
void | bearer_adv_packet_remove (ble_packet_type_t type) |
Remove the advertisement type from the list of accepted advertisement types. More... | |
void | bearer_adv_packet_add (ble_packet_type_t type) |
Add the advertisement type to the list of accepted advertisement types. More... | |
void | bearer_adv_packet_clear (void) |
Remove all set advertisement types from the list of accepted advertisement types. | |
void | bearer_adv_packet_filter_mode_set (adv_packet_filter_mode_t mode) |
Set mode of the advertisement type filter. More... | |
uint32_t | bearer_adv_packet_filtered_amount_get (void) |
Read out amount filtered packets according the BLE advertisement type settings. More... | |
Filtering of advertisement packets based on their advertisement type.
Possible working modes for BLE advertisement packet type filter.
ADV_FILTER_WHITELIST_MODE is default mode
Enumerator | |
---|---|
ADV_FILTER_WHITELIST_MODE | Whitelist mode. |
ADV_FILTER_BLACKLIST_MODE | Blacklist mode. |
Definition at line 54 of file adv_packet_filter.h.
void bearer_adv_packet_filtering_set | ( | bool | onoff | ) |
Enable or disable the advertisement type filtering.
If enabled, only the packets with the advertisement types added via bearer_adv_packet_add() will be kept and processed by the bearer.
[in] | onoff | advertisement type filtering state; set to true to enable the advertisement type filter, and false to disable |
void bearer_adv_packet_remove | ( | ble_packet_type_t | type | ) |
Remove the advertisement type from the list of accepted advertisement types.
[in] | type | The advertisement type that will be removed from the filter. |
void bearer_adv_packet_add | ( | ble_packet_type_t | type | ) |
Add the advertisement type to the list of accepted advertisement types.
[in] | type | The advertisement type that will be added to the filter. |
void bearer_adv_packet_filter_mode_set | ( | adv_packet_filter_mode_t | mode | ) |
Set mode of the advertisement type filter.
[in] | mode | Mode of the advertisement type filter. |
uint32_t bearer_adv_packet_filtered_amount_get | ( | void | ) |
Read out amount filtered packets according the BLE advertisement type settings.