Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

AdvertisingReportEvent Struct Reference

AdvertisingReportEvent Struct Reference
[Gap]

Event generated when an advertising packet is seen during passive scanning or a scan response is received during active scanning. More...

#include <Events.h>

Public Member Functions

 AdvertisingReportEvent (const advertising_event_t &type, const peer_address_type_t &peerAddressType, const address_t &peerAddress, const phy_t &primaryPhy, const phy_t &secondaryPhy, advertising_sid_t SID, advertising_power_t txPower, rssi_t rssi, uint16_t periodicInterval, const peer_address_type_t &directAddressType, const address_t &directAddress, const mbed::Span< const uint8_t > &advertisingData)
 Create an advertising report event.
const advertising_event_tgetType () const
 Get event type.
const peer_address_type_tgetPeerAddressType () const
 Get peer address type.
const address_tgetPeerAddress () const
 Get peer address.
const phy_tgetPrimaryPhy () const
 Get primary PHY.
const phy_tgetSecondaryPhy () const
 Get secondary PHY.
advertising_sid_t getSID () const
 Get advertising set identifier.
advertising_power_t getTxPower () const
 Get TX power.
rssi_t getRssi () const
 Get received signal strength.
bool isPeriodicIntervalPresent () const
 Indicate if periodic interval is valid.
periodic_interval_t getPeriodicInterval () const
 Get interval.
const peer_address_type_tgetDirectAddressType () const
 Get target address type in directed advertising.
const address_tgetDirectAddress () const
 Get target address in directed advertising.
const mbed::Span< const uint8_t > & getPayload () const
 Get payload.

Detailed Description

Event generated when an advertising packet is seen during passive scanning or a scan response is received during active scanning.

See also:
ble::Gap::EventHandler::onPeriodicAdvertisingReport()

Definition at line 38 of file Events.h.


Constructor & Destructor Documentation

AdvertisingReportEvent ( const advertising_event_t type,
const peer_address_type_t peerAddressType,
const address_t peerAddress,
const phy_t primaryPhy,
const phy_t secondaryPhy,
advertising_sid_t  SID,
advertising_power_t  txPower,
rssi_t  rssi,
uint16_t  periodicInterval,
const peer_address_type_t directAddressType,
const address_t directAddress,
const mbed::Span< const uint8_t > &  advertisingData 
)

Create an advertising report event.

Parameters:
typeType of advertising used.
peerAddressTypePeer address type of advertiser.
peerAddressPeer address of advertiser.
primaryPhyPHY used on the primary channels.
secondaryPhyPHY used on secondary channels.
SIDSet identification number.
txPowerTransmission power reported by the packet.
rssiMeasured signal strength.
periodicIntervalInterval of periodic advertising.
directAddressTypeDirected advertising target address type.
directAddressDirected advertising target address.
advertisingDataAdvertising payload.

Definition at line 56 of file Events.h.


Member Function Documentation

const address_t& getDirectAddress (  ) const

Get target address in directed advertising.

Definition at line 153 of file Events.h.

const peer_address_type_t& getDirectAddressType (  ) const

Get target address type in directed advertising.

Definition at line 147 of file Events.h.

const mbed::Span<const uint8_t>& getPayload (  ) const

Get payload.

Definition at line 159 of file Events.h.

const address_t& getPeerAddress (  ) const

Get peer address.

Definition at line 100 of file Events.h.

const peer_address_type_t& getPeerAddressType (  ) const

Get peer address type.

Definition at line 94 of file Events.h.

periodic_interval_t getPeriodicInterval (  ) const

Get interval.

Definition at line 141 of file Events.h.

const phy_t& getPrimaryPhy (  ) const

Get primary PHY.

Definition at line 106 of file Events.h.

rssi_t getRssi (  ) const

Get received signal strength.

Definition at line 130 of file Events.h.

const phy_t& getSecondaryPhy (  ) const

Get secondary PHY.

Definition at line 112 of file Events.h.

advertising_sid_t getSID (  ) const

Get advertising set identifier.

Definition at line 118 of file Events.h.

advertising_power_t getTxPower (  ) const

Get TX power.

Definition at line 124 of file Events.h.

const advertising_event_t& getType (  ) const

Get event type.

Definition at line 88 of file Events.h.

bool isPeriodicIntervalPresent (  ) const

Indicate if periodic interval is valid.

Definition at line 136 of file Events.h.