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);
Event generated when a connection initiation ends (successfully or not).
Gap::EventHandler implementation that allows the application to register multiple separate EventHandl...
Event produced when advertising ends.
virtual void onPrivacyEnabled()
Function invoked when the privacy subsystem has been enabled and is ready to be used.
virtual void onScanRequestReceived(const ScanRequestEvent &event)
Called when an advertising device receive a scan response.
void onConnectionComplete(const ble::ConnectionCompleteEvent &event) override
Called when connection attempt ends or an advertising device has been connected.
Event received when connection parameters have been updated.
Event generated when periodic advertising sync is lost.
void onPrivacyEnabled() override
Function invoked when the privacy subsystem has been enabled and is ready to be used.
uintptr_t connection_handle_t
Opaque reference to a connection.
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...
Event produced when advertising start.
Event generated when an advertising packet is seen during passive scanning or a scan response is rece...
virtual void onUpdateConnectionParametersRequest(const UpdateConnectionParametersRequestEvent &event)
Called when the peer request connection parameters updates.
void onScanRequestReceived(const ble::ScanRequestEvent &event) override
Called when an advertising device receive a scan response.
void onScanTimeout(const ble::ScanTimeoutEvent &event) override
Called when scan times out.
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...
virtual void onConnectionComplete(const ConnectionCompleteEvent &event)
Called when connection attempt ends or an advertising device has been connected.
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...
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.
virtual void onAdvertisingStart(const AdvertisingStartEvent &event)
Called when advertising starts.
void onAdvertisingEnd(const ble::AdvertisingEndEvent &event) override
Called when advertising ends.
void onPeriodicAdvertisingSyncLoss(const ble::PeriodicAdvertisingSyncLoss &event) override
Called when a periodic advertising sync has been lost.
Type that describes a bluetooth PHY(sical) transport.
virtual void onAdvertisingEnd(const AdvertisingEndEvent &event)
Called when advertising ends.
void onAdvertisingStart(const ble::AdvertisingStartEvent &event) override
Called when advertising starts.
virtual void onScanTimeout(const ScanTimeoutEvent &event)
Called when scan times out.
virtual void onConnectionParametersUpdateComplete(const ConnectionParametersUpdateCompleteEvent &event)
Called when connection parameters have been updated.
Base class for chainable EventHandlers.
Event generated when you first receive a periodic advertisement.
void onPeriodicAdvertisingSyncEstablished(const ble::PeriodicAdvertisingSyncEstablishedEvent &event) override
Called when first advertising packet in periodic advertising is received.
void onPeriodicAdvertisingReport(const ble::PeriodicAdvertisingReportEvent &event) override
Called when a periodic advertising packet is received.
Event generated when scan times out.
Event produced when a disconnection is complete.
Definition of the general handler of Gap related events.
virtual void onDisconnectionComplete(const DisconnectionCompleteEvent &event)
Called when a connection has been disconnected.
Event generated when periodic advertising packet is received.
Event received when a peer wants to change the connection parameters.
virtual void onPeriodicAdvertisingSyncLoss(const PeriodicAdvertisingSyncLoss &event)
Called when a periodic advertising sync has been lost.
virtual void onPeriodicAdvertisingReport(const PeriodicAdvertisingReportEvent &event)
Called when a periodic advertising packet is received.
virtual void onAdvertisingReport(const AdvertisingReportEvent &event)
Called when a scanner receives an advertising or a scan response packet.
void onAdvertisingReport(const ble::AdvertisingReportEvent &event) override
Called when a scanner receives an advertising or a scan response packet.
void onConnectionParametersUpdateComplete(const ble::ConnectionParametersUpdateCompleteEvent &event) override
Called when connection parameters have been updated.
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.
void onDisconnectionComplete(const ble::DisconnectionCompleteEvent &event) override
Called when a connection has been disconnected.
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.
Event produced when a peer requests a scan response from the advertiser.
virtual void onPeriodicAdvertisingSyncEstablished(const PeriodicAdvertisingSyncEstablishedEvent &event)
Called when first advertising packet in periodic advertising is received.
ble_error_t
Error codes for the BLE API.