Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

LE advertisement and scan response packet information. More...

#include <bluetooth.h>

Data Fields

const bt_addr_le_t * addr
 Advertiser LE address and type.
uint8_t sid
 Advertising Set Identifier, valid range BT_GAP_SID_MIN to BT_GAP_SID_MAX.
int8_t rssi
 Strength of advertiser signal in dBm.
int8_t tx_power
 Transmit power of the advertiser in dBm.
uint8_t adv_type
 Advertising packet type.
uint16_t adv_props
 Advertising packet properties bitfield.
uint16_t interval
 Periodic advertising interval (N * 1.25 ms).
uint8_t primary_phy
 Primary advertising channel PHY.
uint8_t secondary_phy
 Secondary advertising channel PHY.
const bt_addr_le_t * direct_addr
 Target address of a directed advertisement.

Detailed Description

LE advertisement and scan response packet information.

Field Documentation

◆ addr

const bt_addr_le_t* bt_le_scan_recv_info::addr

Advertiser LE address and type.

If advertiser is anonymous then this address will be BT_ADDR_LE_ANY.

◆ adv_props

uint16_t bt_le_scan_recv_info::adv_props

Advertising packet properties bitfield.

Uses the bt_gap_adv_prop values. May indicate that this is a scan response if the value contains the BT_GAP_ADV_PROP_SCAN_RESPONSE bit.

◆ adv_type

uint8_t bt_le_scan_recv_info::adv_type

Advertising packet type.

Uses the bt_gap_adv_type value.

May indicate that this is a scan response if the type is BT_GAP_ADV_TYPE_SCAN_RSP.

◆ direct_addr

const bt_addr_le_t* bt_le_scan_recv_info::direct_addr

Target address of a directed advertisement.

NULL if the report carries no target address. Whether the advertisement was directed is given by BT_GAP_ADV_PROP_DIRECTED in bt_le_scan_recv_info::adv_props.

An LE Extended Advertising Report always carries the target address of a directed advertisement, whether or not the Controller resolved it. An LE Advertising Report has no target address field, so this is NULL for a directed advertisement the Controller resolved while scanning with the legacy scanning commands.

The address type is BT_ADDR_LE_UNRESOLVED if the Controller was unable to resolve it.

◆ interval

uint16_t bt_le_scan_recv_info::interval

Periodic advertising interval (N * 1.25 ms).

If 0 there is no periodic advertising.

◆ primary_phy

uint8_t bt_le_scan_recv_info::primary_phy

Primary advertising channel PHY.

◆ rssi

int8_t bt_le_scan_recv_info::rssi

Strength of advertiser signal in dBm.

Range: -127 to +20. May be set to BT_GAP_RSSI_INVALID when the value is not available.

◆ secondary_phy

uint8_t bt_le_scan_recv_info::secondary_phy

Secondary advertising channel PHY.

◆ sid

uint8_t bt_le_scan_recv_info::sid

Advertising Set Identifier, valid range BT_GAP_SID_MIN to BT_GAP_SID_MAX.

◆ tx_power

int8_t bt_le_scan_recv_info::tx_power

Transmit power of the advertiser in dBm.

Range: -127 to +20. May be set to BT_GAP_TX_POWER_INVALID when the value is not available.


The documentation for this struct was generated from the following file: