Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

PeriodicAdvertisingSyncEstablishedEvent Struct Reference

PeriodicAdvertisingSyncEstablishedEvent Struct Reference
[Gap]

Event generated when you first receive a periodic advertisement. More...

#include <Events.h>

Public Member Functions

 PeriodicAdvertisingSyncEstablishedEvent (ble_error_t status, periodic_sync_handle_t syncHandle, advertising_sid_t sid, const peer_address_type_t &peerAddressType, const address_t &peerAddress, const phy_t &peerPhy, uint16_t advertisingInterval, const clock_accuracy_t &peerClockAccuracy)
 Create advertising sync event.
ble_error_t getStatus () const
 Get sync establishment status.
periodic_sync_handle_t getSyncHandle () const
 Get periodic advertising sync handle.
advertising_sid_t getSid () const
 Get advertising set identifier.
const peer_address_type_tgetPeerAddressType () const
 Get peer address type.
const address_tgetPeerAddress () const
 Get peer address.
const phy_tgetPeerPhy () const
 Get PHY used.
uint16_t getAdvertisingInterval () const
 Get interval.
const clock_accuracy_tgetPeerClockAccuracy () const
 Get clock accuracy in parts per million.

Detailed Description

Event generated when you first receive a periodic advertisement.

See also:
ble::Gap::EventHandler::onPeriodicAdvertisingSyncEstablished().

Definition at line 315 of file Events.h.


Constructor & Destructor Documentation

PeriodicAdvertisingSyncEstablishedEvent ( ble_error_t  status,
periodic_sync_handle_t  syncHandle,
advertising_sid_t  sid,
const peer_address_type_t peerAddressType,
const address_t peerAddress,
const phy_t peerPhy,
uint16_t  advertisingInterval,
const clock_accuracy_t peerClockAccuracy 
)

Create advertising sync event.

Parameters:
successBLE_ERROR_NONE if synchronisation was achieved.
syncHandleAdvertising sync handle.
sidAdvertising set identifier.
peerAddressTypePeer address type.
peerAddressPeer address.
peerPhyPHY used for advertisements.
advertisingIntervalPeriodic advertising interval.
masterClockAccuracyPeer clock accuracy in parts per million.

Definition at line 329 of file Events.h.


Member Function Documentation

uint16_t getAdvertisingInterval (  ) const

Get interval.

Definition at line 389 of file Events.h.

const address_t& getPeerAddress (  ) const

Get peer address.

Definition at line 377 of file Events.h.

const peer_address_type_t& getPeerAddressType (  ) const

Get peer address type.

Definition at line 371 of file Events.h.

const clock_accuracy_t& getPeerClockAccuracy (  ) const

Get clock accuracy in parts per million.

Definition at line 395 of file Events.h.

const phy_t& getPeerPhy (  ) const

Get PHY used.

Definition at line 383 of file Events.h.

advertising_sid_t getSid (  ) const

Get advertising set identifier.

Definition at line 365 of file Events.h.

ble_error_t getStatus (  ) const

Get sync establishment status.

Definition at line 353 of file Events.h.

periodic_sync_handle_t getSyncHandle (  ) const

Get periodic advertising sync handle.

Definition at line 359 of file Events.h.