19#ifndef MBED_CHAINABLEGAPEVENTHANDLER_H_
20#define MBED_CHAINABLEGAPEVENTHANDLER_H_
23#include "ble/common/ChainableEventHandler.h"
99 connectionHandle, txPhy, rxPhy);
108 connectionHandle, txPhy, rxPhy);
114 uint16_t rxSize)
override {
116 connectionHandle, txSize, rxSize);
Base class for chainable EventHandlers.
Gap::EventHandler implementation that allows the application to register multiple separate EventHandl...
void onDataLengthChange(ble::connection_handle_t connectionHandle, uint16_t txSize, uint16_t rxSize) override
Function invoked when the connections changes the maximum number of octets that can be sent or receiv...
void onReadPhy(ble_error_t status, ble::connection_handle_t connectionHandle, ble::phy_t txPhy, ble::phy_t rxPhy) override
Function invoked when the current transmitter and receiver PHY have been read for a given connection.
void onUpdateConnectionParametersRequest(const ble::UpdateConnectionParametersRequestEvent &event) override
Called when the peer request connection parameters updates.
void onAdvertisingStart(const ble::AdvertisingStartEvent &event) override
Called when advertising starts.
void onScanRequestReceived(const ble::ScanRequestEvent &event) override
Called when an advertising device receive a scan request.
void onPeriodicAdvertisingSyncLoss(const ble::PeriodicAdvertisingSyncLoss &event) override
Called when a periodic advertising sync has been lost.
void onPeriodicAdvertisingReport(const ble::PeriodicAdvertisingReportEvent &event) override
Called when a periodic advertising packet is received.
void onScanTimeout(const ble::ScanTimeoutEvent &event) override
Called when scan times out.
void onPrivacyEnabled() override
Function invoked when the privacy subsystem has been enabled and is ready to be used.
void onPhyUpdateComplete(ble_error_t status, ble::connection_handle_t connectionHandle, ble::phy_t txPhy, ble::phy_t rxPhy) override
Function invoked when the update process of the PHY has been completed.
void onAdvertisingReport(const ble::AdvertisingReportEvent &event) override
Called when a scanner receives an advertising or a scan response packet.
void onAdvertisingEnd(const ble::AdvertisingEndEvent &event) override
Called when advertising ends.
void onDisconnectionComplete(const ble::DisconnectionCompleteEvent &event) override
Called when a connection has been disconnected.
void onConnectionComplete(const ble::ConnectionCompleteEvent &event) override
Called when connection attempt ends.
void onPeriodicAdvertisingSyncEstablished(const ble::PeriodicAdvertisingSyncEstablishedEvent &event) override
Called when first advertising packet in periodic advertising is received.
void onConnectionParametersUpdateComplete(const ble::ConnectionParametersUpdateCompleteEvent &event) override
Called when connection parameters have been updated.
ble_error_t
Error codes for the BLE API.
uintptr_t connection_handle_t
Opaque reference to a connection.
Event produced when advertising ends.
Event generated when an advertising packet is seen during passive scanning or a scan response is rece...
Event produced when advertising start.
Event generated when a connection initiation ends (successfully or not).
Event received when connection parameters have been updated.
Event produced when a disconnection is complete.
Definition of the general handler of Gap related events.
virtual void onAdvertisingStart(const AdvertisingStartEvent &event)
Called when advertising starts.
virtual void onAdvertisingReport(const AdvertisingReportEvent &event)
Called when a scanner receives an advertising or a scan response packet.
virtual void onPeriodicAdvertisingReport(const PeriodicAdvertisingReportEvent &event)
Called when a periodic advertising packet is received.
virtual void onPeriodicAdvertisingSyncEstablished(const PeriodicAdvertisingSyncEstablishedEvent &event)
Called when first advertising packet in periodic advertising is received.
virtual void onDataLengthChange(connection_handle_t connectionHandle, uint16_t txSize, uint16_t rxSize)
Function invoked when the connections changes the maximum number of octets that can be sent or receiv...
virtual void onScanTimeout(const ScanTimeoutEvent &event)
Called when scan times out.
virtual void onPrivacyEnabled()
Function invoked when the privacy subsystem has been enabled and is ready to be used.
virtual void onAdvertisingEnd(const AdvertisingEndEvent &event)
Called when advertising ends.
virtual void onReadPhy(ble_error_t status, connection_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 onUpdateConnectionParametersRequest(const UpdateConnectionParametersRequestEvent &event)
Called when the peer request connection parameters updates.
virtual void onConnectionComplete(const ConnectionCompleteEvent &event)
Called when connection attempt ends.
virtual void onDisconnectionComplete(const DisconnectionCompleteEvent &event)
Called when a connection has been disconnected.
virtual void onPhyUpdateComplete(ble_error_t status, connection_handle_t connectionHandle, phy_t txPhy, phy_t rxPhy)
Function invoked when the update process of the PHY has been completed.
virtual void onConnectionParametersUpdateComplete(const ConnectionParametersUpdateCompleteEvent &event)
Called when connection parameters have been updated.
virtual void onScanRequestReceived(const ScanRequestEvent &event)
Called when an advertising device receive a scan request.
virtual void onPeriodicAdvertisingSyncLoss(const PeriodicAdvertisingSyncLoss &event)
Called when a periodic advertising sync has been lost.
Event generated when periodic advertising packet is received.
Event generated when you first receive a periodic advertisement.
Event generated when periodic advertising sync is lost.
Event produced when a peer requests a scan response from the advertiser.
Event generated when scan times out.
Event received when a peer wants to change the connection parameters.
Type that describes a bluetooth PHY(sical) transport.