takashi kadono / Mbed OS Nucleo_446

Dependencies:   ssd1331

Embed: (wiki syntax)

« Back to documentation index

Gap::EventHandler Struct Reference

Gap::EventHandler Struct Reference

Definition of the general handler of Gap related events. More...

#include <Gap.h>

Public Member Functions

virtual void onReadPhy (ble_error_t status, Handle_t connectionHandle, Phy_t txPhy, Phy_t rxPhy)
 Function invoked when the current transmitter and receiver PHY have been read for a given connection.
virtual void onPhyUpdateComplete (ble_error_t status, Handle_t connectionHandle, Phy_t txPhy, Phy_t rxPhy)
 Function invoked when the update process of the PHY has been completed.

Protected Member Functions

 ~EventHandler ()
 Prevent polymorphic deletion and avoid uncessery virtual destructor as the Gap class will never delete the instance it contains.

Detailed Description

Definition of the general handler of Gap related events.

Definition at line 1127 of file Gap.h.


Constructor & Destructor Documentation

~EventHandler (  ) [protected]

Prevent polymorphic deletion and avoid uncessery virtual destructor as the Gap class will never delete the instance it contains.

Definition at line 1192 of file Gap.h.


Member Function Documentation

virtual void onPhyUpdateComplete ( ble_error_t  status,
Handle_t  connectionHandle,
Phy_t  txPhy,
Phy_t  rxPhy 
) [virtual]

Function invoked when the update process of the PHY has been completed.

The process can be initiated by a call to the function setPhy, the local bluetooth subsystem or the peer.

Parameters:
statusStatus of the operation: BLE_ERROR_NONE in case of success or an appropriate error code.
connectionHandle,:The handle of the connection on which the operation was made.
txPhyPHY used by the transmitter.
rxPhyPHY used by the receiver.
Note:
Success doesn't mean the PHY has been updated it means both ends have negociated the best phy according to their configuration and capabilities. The PHY currently used are present in the txPhy and rxPhy parameters.

Definition at line 1175 of file Gap.h.

virtual void onReadPhy ( ble_error_t  status,
Handle_t  connectionHandle,
Phy_t  txPhy,
Phy_t  rxPhy 
) [virtual]

Function invoked when the current transmitter and receiver PHY have been read for a given connection.

Parameters:
statusStatus of the operation: BLE_ERROR_NONE in case of success or an appropriate error code.
connectionHandle,:The handle of the connection for which the PHYs have been read.
txPhyPHY used by the transmitter.
rxPhyPHY used by the receiver.

Definition at line 1142 of file Gap.h.