Data structure of the scan_report event.
Public Attribute Documentation#
packet_type#
uint8_t sl_bt_evt_scanner_scan_report_s::packet_type
Bits 0..2 : advertising packet type
- 000 : Connectable scannable undirected advertising 
- 001 : Connectable undirected advertising 
- 010 : Scannable undirected advertising 
- 011 : Non-connectable non-scannable undirected advertising 
- 100 : Scan Response. Note that this is received only if the device is in active scan mode. 
Bits 3..4 : Reserved for future
Bits 5..6 : data completeness
- 00: Complete 
- 01: Incomplete, more data to come in new events 
- 10: Incomplete, data truncated, no more to come 
Bit 7 : legacy or extended advertising
- 0: Legacy advertising PDUs used 
- 1: Extended advertising PDUs used 
address_type#
uint8_t sl_bt_evt_scanner_scan_report_s::address_type
Enum sl_bt_gap_address_type_t.
Advertiser address type.
If the application does not include the bluetooth_feature_use_accurate_api_address_types component, address_type uses the following values:
- 0: Public address 
- 1: Random address 
- 255: No address provided (anonymous advertising) 
If the application includes the bluetooth_feature_use_accurate_api_address_types component, address_type uses enum sl_bt_gap_address_type_t values:
- sl_bt_gap_public_address (0x0): Public device address 
- sl_bt_gap_static_address (0x1): Static device address 
- sl_bt_gap_random_resolvable_address (0x2): Resolvable private random address 
- sl_bt_gap_random_nonresolvable_address (0x3): Non-resolvable private random address 
- sl_bt_gap_anonymous_address (0xff): No address provided (anonymous advertising) 
- sl_bt_gap_public_address_resolved_from_rpa (0x4): Public identity address resolved from a resolvable private address (RPA) 
- sl_bt_gap_static_address_resolved_from_rpa (0x5): Static identity address resolved from a resolvable private address (RPA) 
bonding#
uint8_t sl_bt_evt_scanner_scan_report_s::bonding
Bonding handle if the remote advertising device has previously bonded with the local device. Values:
- SL_BT_INVALID_BONDING_HANDLE (0xff): No bonding 
- Other: Bonding handle 
primary_phy#
uint8_t sl_bt_evt_scanner_scan_report_s::primary_phy
Enum sl_bt_gap_phy_t. The PHY on which advertising packets are transmitted on the primary advertising channel. Ignore this field if the report is for a legacy advertising PDU. Values:
- sl_bt_gap_phy_1m (0x1): 1M PHY 
- sl_bt_gap_phy_coded (0x4): Coded PHY, 125k (S=8) or 500k (S=2) 
secondary_phy#
uint8_t sl_bt_evt_scanner_scan_report_s::secondary_phy
Enum sl_bt_gap_phy_t. The PHY on which advertising packets are transmitted on the secondary advertising channel. Ignore this field if the report is for a legacy advertising PDU. Values:
- sl_bt_gap_phy_1m (0x1): 1M PHY 
- sl_bt_gap_phy_2m (0x2): 2M PHY 
- sl_bt_gap_phy_coded (0x4): Coded PHY, 125k (S=8) or 500k (S=2) 
tx_power#
int8_t sl_bt_evt_scanner_scan_report_s::tx_power
TX power value in the received packet header. Units: dBm
- Valid value range: -127 to 126 
- Value 127: information unavailable 
rssi#
int8_t sl_bt_evt_scanner_scan_report_s::rssi
Signal strength indicator (RSSI) in the last received packet. Units: dBm
- Range: -127 to +20 
channel#
uint8_t sl_bt_evt_scanner_scan_report_s::channel
The channel number on which the last packet was received
periodic_interval#
uint16_t sl_bt_evt_scanner_scan_report_s::periodic_interval
The periodic advertising interval. Value 0 indicates no periodic advertising. Otherwise,
- Range: 0x06 to 0xFFFF 
- Unit: 1.25 ms 
- Time range: 7.5 ms to 81.92 s