Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
GenericGap< TPalGap, PalSecurityManager, ConnectionEventMonitorEventHandler > Class Template Reference
Generic implementation of the Gap class. More...
#include <GenericGap.h>
Inherits ConnectionEventMonitor< ConnectionEventMonitorEventHandler >, and ble::pal::GapEventHandler< GenericGap< TPalGap, PalSecurityManager, ConnectionEventMonitorEventHandler > >.
Public Member Functions | |
| GenericGap (pal::EventQueue &event_queue, PalGap &pal_gap, pal::GenericAccessService &generic_access_service, PalSecurityManager &pal_sm) | |
| Construct a GenericGap. | |
| ~GenericGap () | |
| bool | isFeatureSupported_ (controller_supported_features_t feature) |
| uint8_t | getMaxAdvertisingSetNumber_ () |
| uint16_t | getMaxAdvertisingDataLength_ () |
| uint16_t | getMaxConnectableAdvertisingDataLength_ () |
| uint16_t | getMaxActiveSetAdvertisingDataLength_ () |
| ble_error_t | createAdvertisingSet_ (advertising_handle_t *handle, const AdvertisingParameters ¶meters) |
| ble_error_t | destroyAdvertisingSet_ (advertising_handle_t handle) |
| ble_error_t | setAdvertisingParameters_ (advertising_handle_t handle, const AdvertisingParameters ¶ms) |
| ble_error_t | setAdvertisingPayload_ (advertising_handle_t handle, Span< const uint8_t > payload) |
| ble_error_t | setAdvertisingScanResponse_ (advertising_handle_t handle, Span< const uint8_t > response) |
| ble_error_t | startAdvertising_ (advertising_handle_t handle, adv_duration_t maxDuration, uint8_t maxEvents) |
| ble_error_t | stopAdvertising_ (advertising_handle_t handle) |
| bool | isAdvertisingActive_ (advertising_handle_t handle) |
| ble_error_t | setPeriodicAdvertisingParameters_ (advertising_handle_t handle, periodic_interval_t periodicAdvertisingIntervalMin, periodic_interval_t periodicAdvertisingIntervalMax, bool advertiseTxPower) |
| ble_error_t | setPeriodicAdvertisingPayload_ (advertising_handle_t handle, Span< const uint8_t > payload) |
| ble_error_t | startPeriodicAdvertising_ (advertising_handle_t handle) |
| ble_error_t | stopPeriodicAdvertising_ (advertising_handle_t handle) |
| bool | isPeriodicAdvertisingActive_ (advertising_handle_t handle) |
| ble_error_t | setScanParameters_ (const ScanParameters ¶ms) |
| ble_error_t | startScan_ (scan_duration_t duration, duplicates_filter_t filtering, scan_period_t period) |
| ble_error_t | createSync_ (peer_address_type_t peerAddressType, const ble::address_t &peerAddress, advertising_sid_t sid, slave_latency_t maxPacketSkip, sync_timeout_t timeout) |
| ble_error_t | createSync_ (slave_latency_t maxPacketSkip, sync_timeout_t timeout) |
| ble_error_t | cancelCreateSync_ () |
| ble_error_t | terminateSync_ (periodic_sync_handle_t handle) |
| ble_error_t | addDeviceToPeriodicAdvertiserList_ (peer_address_type_t peerAddressType, const ble::address_t &peerAddress, advertising_sid_t sid) |
| ble_error_t | removeDeviceFromPeriodicAdvertiserList_ (peer_address_type_t peerAddressType, const ble::address_t &peerAddress, advertising_sid_t sid) |
| ble_error_t | clearPeriodicAdvertiserList_ () |
| uint8_t | getMaxPeriodicAdvertiserListSize_ () |
| ble_error_t | setAddress_ (BLEProtocol::AddressType_t type, const BLEProtocol::AddressBytes_t address) |
| ble_error_t | getAddress_ (BLEProtocol::AddressType_t *type, BLEProtocol::AddressBytes_t address) |
| uint16_t | getMinAdvertisingInterval_ () const |
| uint16_t | getMinNonConnectableAdvertisingInterval_ () const |
| uint16_t | getMaxAdvertisingInterval_ () const |
| ble_error_t | stopAdvertising_ () |
| ble_error_t | stopScan_ () |
| ble_error_t | connect_ (const BLEProtocol::AddressBytes_t peerAddr, PeerAddressType_t peerAddrType, const ConnectionParams_t *connectionParams, const GapScanningParams *scanParams) |
| ble_error_t | connect_ (const BLEProtocol::AddressBytes_t peerAddr, BLEProtocol::AddressType_t peerAddrType, const ConnectionParams_t *connectionParams, const GapScanningParams *scanParams) |
| ble_error_t | connect_ (peer_address_type_t peerAddressType, const ble::address_t &peerAddress, const ConnectionParameters &connectionParams) |
| ble_error_t | cancelConnect_ () |
| ble_error_t | readPhy_ (Handle_t connection) |
| ble_error_t | setPreferredPhys_ (const phy_set_t *txPhys, const phy_set_t *rxPhys) |
| ble_error_t | setPhy_ (Handle_t connection, const phy_set_t *txPhys, const phy_set_t *rxPhys, CodedSymbolPerBit_t codedSymbol) |
| ble_error_t | disconnect_ (Handle_t connectionHandle, DisconnectionReason_t reason) |
| ble_error_t | disconnect_ (DisconnectionReason_t reason) |
| ble_error_t | updateConnectionParams_ (Handle_t handle, const ConnectionParams_t *params) |
| ble_error_t | getPreferredConnectionParams_ (ConnectionParams_t *params) |
| ble_error_t | setPreferredConnectionParams_ (const ConnectionParams_t *params) |
| ble_error_t | setDeviceName_ (const uint8_t *deviceName) |
| ble_error_t | getDeviceName_ (uint8_t *deviceName, unsigned *lengthP) |
| ble_error_t | setAppearance_ (GapAdvertisingData::Appearance appearance) |
| ble_error_t | getAppearance_ (GapAdvertisingData::Appearance *appearanceP) |
| ble_error_t | setTxPower_ (int8_t txPower) |
| void | getPermittedTxPowerValues_ (const int8_t **valueArrayPP, size_t *countP) |
| uint8_t | getMaxWhitelistSize_ (void) const |
| ble_error_t | getWhitelist_ (Whitelist_t &whitelist) const |
| ble_error_t | setWhitelist_ (const Whitelist_t &whitelist) |
| ble_error_t | setAdvertisingPolicyMode_ (AdvertisingPolicyMode_t mode) |
| ble_error_t | setScanningPolicyMode_ (ScanningPolicyMode_t mode) |
| ble_error_t | setInitiatorPolicyMode_ (InitiatorPolicyMode_t mode) |
| AdvertisingPolicyMode_t | getAdvertisingPolicyMode_ (void) const |
| ScanningPolicyMode_t | getScanningPolicyMode_ (void) const |
| InitiatorPolicyMode_t | getInitiatorPolicyMode_ (void) const |
| ble_error_t | startRadioScan_ (const GapScanningParams &scanningParams) |
| ble_error_t | initRadioNotification_ (void) |
| ble_error_t | enablePrivacy_ (bool enable) |
| ble_error_t | setPeripheralPrivacyConfiguration_ (const PeripheralPrivacyConfiguration_t *configuration) |
| ble_error_t | getPeripheralPrivacyConfiguration_ (PeripheralPrivacyConfiguration_t *configuration) |
| ble_error_t | setCentralPrivacyConfiguration_ (const CentralPrivacyConfiguration_t *configuration) |
| ble_error_t | getCentralPrivacyConfiguration_ (CentralPrivacyConfiguration_t *configuration) |
| ble_error_t | setAdvertisingData_ (const GapAdvertisingData &advData, const GapAdvertisingData &scanResponse) |
| ble_error_t | startAdvertising_ (const GapAdvertisingParams ¶ms) |
| ble_error_t | reset_ (void) |
| void | processConnectionEvent (Handle_t handle, Role_t role, peer_address_type_t peerAddrType, const BLEProtocol::AddressBytes_t peerAddr, BLEProtocol::AddressType_t ownAddrType, const BLEProtocol::AddressBytes_t ownAddr, const ConnectionParams_t *connectionParams, const uint8_t *peerResolvableAddr, const uint8_t *localResolvableAddr) |
| void | processDisconnectionEvent (Handle_t handle, DisconnectionReason_t reason) |
| void | set_connection_event_handler (ConnectionEventMonitorEventHandler *connection_event_handler) |
| Register a handler for connection events to be used internally and serviced first. | |
| void | on_read_phy (pal::hci_error_code_t status, connection_handle_t connectionHandle, ble::phy_t tx_phy, ble::phy_t rx_phy) |
| void | on_data_length_change (connection_handle_t connection_handle, uint16_t tx_size, uint16_t rx_size) |
| void | on_phy_update_complete (pal::hci_error_code_t status, connection_handle_t connection_handle, ble::phy_t tx_phy, ble::phy_t rx_phy) |
| void | on_enhanced_connection_complete (hci_error_code_t status, connection_handle_t connection_handle, connection_role_t own_role, connection_peer_address_type_t peer_address_type, const address_t &peer_address, const address_t &local_resolvable_private_address, const address_t &peer_resolvable_private_address, uint16_t connection_interval, uint16_t connection_latency, uint16_t supervision_timeout, clock_accuracy_t master_clock_accuracy) |
| Should be invoked by the Gap implementation when an enhanced connection complete event happens. | |
| void | on_extended_advertising_report (advertising_event_t event_type, const connection_peer_address_type_t *address_type, const address_t &address, phy_t primary_phy, const phy_t *secondary_phy, advertising_sid_t advertising_sid, advertising_power_t tx_power, rssi_t rssi, uint16_t periodic_advertising_interval, direct_address_type_t direct_address_type, const address_t &direct_address, uint8_t data_length, const uint8_t *data_size) |
| Called on advertising report event. | |
| void | on_periodic_advertising_sync_established (pal::hci_error_code_t error, pal::sync_handle_t sync_handle, advertising_sid_t advertising_sid, connection_peer_address_type_t advertiser_address_type, const ble::address_t &advertiser_address, phy_t advertiser_phy, uint16_t periodic_advertising_interval, pal::clock_accuracy_t clock_accuracy) |
| Called on advertising sync event. | |
| void | on_periodic_advertising_report (sync_handle_t sync_handle, advertising_power_t tx_power, rssi_t rssi, advertising_data_status_t data_status, uint8_t data_length, const uint8_t *data) |
| Called after a periodic advertising report event. | |
| void | on_periodic_advertising_sync_loss (sync_handle_t sync_handle) |
| Called on periodic advertising sync loss event. | |
| void | on_scan_timeout () |
| Called when scanning times out. | |
| void | on_advertising_set_terminated (hci_error_code_t status, advertising_handle_t advertising_handle, connection_handle_t connection_handle, uint8_t number_of_completed_extended_advertising_events) |
| Called when advertising set stops advertising. | |
| void | on_scan_request_received (advertising_handle_t advertising_handle, connection_peer_address_type_t scanner_address_type, const address_t &address) |
| Called when a device receives a scan request from an active scanning device. | |
| Impl * | impl () |
| const Impl * | impl () const |
Detailed Description
template<template< class > class TPalGap, class PalSecurityManager, class ConnectionEventMonitorEventHandler>
class ble::generic::GenericGap< TPalGap, PalSecurityManager, ConnectionEventMonitorEventHandler >
Generic implementation of the Gap class.
It requires a pal::Gap and a pal::GenericAccessService injected at construction site.
- Attention:
- : Not part of the public interface of BLE API.
Definition at line 51 of file GenericGap.h.
Constructor & Destructor Documentation
| GenericGap | ( | pal::EventQueue & | event_queue, |
| PalGap & | pal_gap, | ||
| pal::GenericAccessService & | generic_access_service, | ||
| PalSecurityManager & | pal_sm | ||
| ) |
Construct a GenericGap.
- Parameters:
-
event_queue Event queue used to serialise execution. pal_gap GAP Platform abstraction instance containing the base GAP primitives. generic_access_service Platform abstraction instance managing the GATT generic access service. pal_sm Security Manager Platform abstraction instance containing the base Security Manager primitives.
| ~GenericGap | ( | ) |
- See also:
- Gap::~Gap
Member Function Documentation
| ble_error_t addDeviceToPeriodicAdvertiserList_ | ( | peer_address_type_t | peerAddressType, |
| const ble::address_t & | peerAddress, | ||
| advertising_sid_t | sid | ||
| ) |
| ble_error_t cancelConnect_ | ( | ) |
- See also:
- Gap::cancelConnect
| ble_error_t cancelCreateSync_ | ( | ) |
| ble_error_t clearPeriodicAdvertiserList_ | ( | ) |
| ble_error_t connect_ | ( | const BLEProtocol::AddressBytes_t | peerAddr, |
| PeerAddressType_t | peerAddrType, | ||
| const ConnectionParams_t * | connectionParams, | ||
| const GapScanningParams * | scanParams | ||
| ) |
- See also:
- Gap::connect
| ble_error_t connect_ | ( | const BLEProtocol::AddressBytes_t | peerAddr, |
| BLEProtocol::AddressType_t | peerAddrType, | ||
| const ConnectionParams_t * | connectionParams, | ||
| const GapScanningParams * | scanParams | ||
| ) |
- See also:
- Gap::connect
| ble_error_t connect_ | ( | peer_address_type_t | peerAddressType, |
| const ble::address_t & | peerAddress, | ||
| const ConnectionParameters & | connectionParams | ||
| ) |
- See also:
- Gap::connect
| ble_error_t createAdvertisingSet_ | ( | advertising_handle_t * | handle, |
| const AdvertisingParameters & | parameters | ||
| ) |
| ble_error_t createSync_ | ( | peer_address_type_t | peerAddressType, |
| const ble::address_t & | peerAddress, | ||
| advertising_sid_t | sid, | ||
| slave_latency_t | maxPacketSkip, | ||
| sync_timeout_t | timeout | ||
| ) |
| ble_error_t createSync_ | ( | slave_latency_t | maxPacketSkip, |
| sync_timeout_t | timeout | ||
| ) |
| ble_error_t destroyAdvertisingSet_ | ( | advertising_handle_t | handle ) |
| ble_error_t disconnect_ | ( | Handle_t | connectionHandle, |
| DisconnectionReason_t | reason | ||
| ) |
- See also:
- Gap::disconnect
| ble_error_t disconnect_ | ( | DisconnectionReason_t | reason ) |
- See also:
- Gap::disconnect
| ble_error_t enablePrivacy_ | ( | bool | enable ) |
- See also:
- Gap::enablePrivacy
| ble_error_t getAddress_ | ( | BLEProtocol::AddressType_t * | type, |
| BLEProtocol::AddressBytes_t | address | ||
| ) |
- See also:
- Gap::getAddress
| AdvertisingPolicyMode_t getAdvertisingPolicyMode_ | ( | void | ) | const |
- See also:
- Gap::getAdvertisingPolicyMode
| ble_error_t getAppearance_ | ( | GapAdvertisingData::Appearance * | appearanceP ) |
- See also:
- Gap::getAppearance
| ble_error_t getCentralPrivacyConfiguration_ | ( | CentralPrivacyConfiguration_t * | configuration ) |
- See also:
- Gap::getCentralPrivacyConfiguration
| ble_error_t getDeviceName_ | ( | uint8_t * | deviceName, |
| unsigned * | lengthP | ||
| ) |
- See also:
- Gap::getDeviceName
| InitiatorPolicyMode_t getInitiatorPolicyMode_ | ( | void | ) | const |
- See also:
- Gap::getInitiatorPolicyMode
| uint16_t getMaxActiveSetAdvertisingDataLength_ | ( | ) |
| uint16_t getMaxAdvertisingDataLength_ | ( | ) |
| uint16_t getMaxAdvertisingInterval_ | ( | ) | const |
- See also:
- Gap::getMaxAdvertisingInterval
| uint8_t getMaxAdvertisingSetNumber_ | ( | ) |
| uint16_t getMaxConnectableAdvertisingDataLength_ | ( | ) |
| uint8_t getMaxPeriodicAdvertiserListSize_ | ( | ) |
| uint8_t getMaxWhitelistSize_ | ( | void | ) | const |
- See also:
- Gap::getMaxWhitelistSize
| uint16_t getMinAdvertisingInterval_ | ( | ) | const |
- See also:
- Gap::getMinAdvertisingInterval
| uint16_t getMinNonConnectableAdvertisingInterval_ | ( | ) | const |
- See also:
- Gap::getMinNonConnectableAdvertisingInterval
| ble_error_t getPeripheralPrivacyConfiguration_ | ( | PeripheralPrivacyConfiguration_t * | configuration ) |
- See also:
- Gap::getPeripheralPrivacyConfiguration
| void getPermittedTxPowerValues_ | ( | const int8_t ** | valueArrayPP, |
| size_t * | countP | ||
| ) |
- See also:
- Gap::getPermittedTxPowerValues
| ble_error_t getPreferredConnectionParams_ | ( | ConnectionParams_t * | params ) |
- See also:
- Gap::getPreferredConnectionParams
| ScanningPolicyMode_t getScanningPolicyMode_ | ( | void | ) | const |
- See also:
- Gap::getScanningPolicyMode
| ble_error_t getWhitelist_ | ( | Whitelist_t & | whitelist ) | const |
- See also:
- Gap::getWhitelist
| Impl* impl | ( | ) | [inherited] |
- Returns:
- A pointer to the implementation class.
Definition at line 35 of file StaticInterface.h.
| const Impl* impl | ( | ) | const [inherited] |
- Returns:
- A pointer to the implementation class.
Definition at line 43 of file StaticInterface.h.
| ble_error_t initRadioNotification_ | ( | void | ) |
- See also:
- Gap::initRadioNotification
| bool isAdvertisingActive_ | ( | advertising_handle_t | handle ) |
| bool isFeatureSupported_ | ( | controller_supported_features_t | feature ) |
| bool isPeriodicAdvertisingActive_ | ( | advertising_handle_t | handle ) |
| void on_advertising_set_terminated | ( | hci_error_code_t | status, |
| advertising_handle_t | advertising_handle, | ||
| connection_handle_t | connection_handle, | ||
| uint8_t | number_of_completed_extended_advertising_events | ||
| ) | [inherited] |
Called when advertising set stops advertising.
- Parameters:
-
status SUCCESS if connection has been established. advertising_handle Advertising set handle. advertising_handle Connection handle. number_of_completed_extended_advertising_events Number of events created during before advertising end.
| void on_data_length_change | ( | connection_handle_t | connection_handle, |
| uint16_t | tx_size, | ||
| uint16_t | rx_size | ||
| ) | [inherited] |
| void on_enhanced_connection_complete | ( | hci_error_code_t | status, |
| connection_handle_t | connection_handle, | ||
| connection_role_t | own_role, | ||
| connection_peer_address_type_t | peer_address_type, | ||
| const address_t & | peer_address, | ||
| const address_t & | local_resolvable_private_address, | ||
| const address_t & | peer_resolvable_private_address, | ||
| uint16_t | connection_interval, | ||
| uint16_t | connection_latency, | ||
| uint16_t | supervision_timeout, | ||
| clock_accuracy_t | master_clock_accuracy | ||
| ) | [inherited] |
Should be invoked by the Gap implementation when an enhanced connection complete event happens.
- Parameters:
-
status hci_error_code::SUCCESS in case of success or an error code. connection_handle The handle of the connection created. own_role Indicate if the local device operates as slave or master. peer_address_type Type of address of the peer. peer_address Address of the peer connected. local_resolvable_private_address Resolvable private address being used by the controller. If not applicable, the address is full of zeroes. peer_resolvable_private_address Resolvable private address being used by the peer. If not applicable, the address is full of zeroes. connection_interval Interval between two connection events. Unit is 1.25ms. connection_latency Slave latency for the connection in number of connection events. supervision_timeout Connection supervision timeout. Unit is 10ms. master_clock_accuracy This parameter is only valid for a slave. On a master it must be set to 0x00.
- Note:
- : See Bluetooth 5 Vol 2 PartE: 7.7.65.10 LE enhanced connection complete event.
| void on_extended_advertising_report | ( | advertising_event_t | event_type, |
| const connection_peer_address_type_t * | address_type, | ||
| const address_t & | address, | ||
| phy_t | primary_phy, | ||
| const phy_t * | secondary_phy, | ||
| advertising_sid_t | advertising_sid, | ||
| advertising_power_t | tx_power, | ||
| rssi_t | rssi, | ||
| uint16_t | periodic_advertising_interval, | ||
| direct_address_type_t | direct_address_type, | ||
| const address_t & | direct_address, | ||
| uint8_t | data_length, | ||
| const uint8_t * | data_size | ||
| ) | [inherited] |
Called on advertising report event.
- Parameters:
-
event_type Type of advertising used. address_type Peer address type of advertiser. address Peer address of advertiser. primary_phy PHY used on the primary channels. secondary_phy PHY used on secondary channels. advertising_sid Set identification number. tx_power Transmission power reported by the packet. rssi Measured signal strength. periodic_advertising_interval Interval of periodic advertising. direct_address_type Directed advertising target address type. direct_address Directed advertising target address. data_length Advertising payload length. data Advertising payload.
- Note:
- : See Bluetooth 5 Vol 2 PartE: 7.7.65.13 LE extended advertising report event.
| void on_periodic_advertising_report | ( | sync_handle_t | sync_handle, |
| advertising_power_t | tx_power, | ||
| rssi_t | rssi, | ||
| advertising_data_status_t | data_status, | ||
| uint8_t | data_length, | ||
| const uint8_t * | data | ||
| ) | [inherited] |
Called after a periodic advertising report event.
- Parameters:
-
sync_handle Periodic advertising sync handle tx_power TX power. rssi Received signal strength. data_status Status to indicate the completeness of the payload. data_length Periodic advertisement payload length. data Periodic advertisement payload.
| void on_periodic_advertising_sync_established | ( | pal::hci_error_code_t | error, |
| pal::sync_handle_t | sync_handle, | ||
| advertising_sid_t | advertising_sid, | ||
| connection_peer_address_type_t | advertiser_address_type, | ||
| const ble::address_t & | advertiser_address, | ||
| phy_t | advertiser_phy, | ||
| uint16_t | periodic_advertising_interval, | ||
| pal::clock_accuracy_t | clock_accuracy | ||
| ) | [inherited] |
Called on advertising sync event.
- Parameters:
-
error SUCCESS if synchronisation was achieved. sync_handle Advertising sync handle. advertising_sid Advertising set identifier. advertiser_address_type Peer address type. advertiser_address Peer address. advertiser_phy PHY used for advertisements. periodic_advertising_interval Periodic advertising interval. clock_accuracy Peer clock accuracy.
| void on_periodic_advertising_sync_loss | ( | sync_handle_t | sync_handle ) | [inherited] |
| void on_phy_update_complete | ( | pal::hci_error_code_t | status, |
| connection_handle_t | connection_handle, | ||
| ble::phy_t | tx_phy, | ||
| ble::phy_t | rx_phy | ||
| ) | [inherited] |
| void on_read_phy | ( | pal::hci_error_code_t | status, |
| connection_handle_t | connectionHandle, | ||
| ble::phy_t | tx_phy, | ||
| ble::phy_t | rx_phy | ||
| ) | [inherited] |
| void on_scan_request_received | ( | advertising_handle_t | advertising_handle, |
| connection_peer_address_type_t | scanner_address_type, | ||
| const address_t & | address | ||
| ) | [inherited] |
| void on_scan_timeout | ( | ) | [inherited] |
| void processConnectionEvent | ( | Handle_t | handle, |
| Role_t | role, | ||
| peer_address_type_t | peerAddrType, | ||
| const BLEProtocol::AddressBytes_t | peerAddr, | ||
| BLEProtocol::AddressType_t | ownAddrType, | ||
| const BLEProtocol::AddressBytes_t | ownAddr, | ||
| const ConnectionParams_t * | connectionParams, | ||
| const uint8_t * | peerResolvableAddr, | ||
| const uint8_t * | localResolvableAddr | ||
| ) |
| void processDisconnectionEvent | ( | Handle_t | handle, |
| DisconnectionReason_t | reason | ||
| ) |
| ble_error_t readPhy_ | ( | Handle_t | connection ) |
- See also:
- Gap::readPhy
| ble_error_t removeDeviceFromPeriodicAdvertiserList_ | ( | peer_address_type_t | peerAddressType, |
| const ble::address_t & | peerAddress, | ||
| advertising_sid_t | sid | ||
| ) |
| ble_error_t reset_ | ( | void | ) |
- See also:
- Gap::reset
| void set_connection_event_handler | ( | ConnectionEventMonitorEventHandler * | connection_event_handler ) | [inherited] |
Register a handler for connection events to be used internally and serviced first.
- Parameters:
-
[in] connection_event_handler Event handler being registered.
Definition at line 105 of file ConnectionEventMonitor.h.
| ble_error_t setAddress_ | ( | BLEProtocol::AddressType_t | type, |
| const BLEProtocol::AddressBytes_t | address | ||
| ) |
- See also:
- Gap::setAddress
| ble_error_t setAdvertisingData_ | ( | const GapAdvertisingData & | advData, |
| const GapAdvertisingData & | scanResponse | ||
| ) |
- See also:
- Gap::setAdvertisingData
| ble_error_t setAdvertisingParameters_ | ( | advertising_handle_t | handle, |
| const AdvertisingParameters & | params | ||
| ) |
| ble_error_t setAdvertisingPayload_ | ( | advertising_handle_t | handle, |
| Span< const uint8_t > | payload | ||
| ) |
| ble_error_t setAdvertisingPolicyMode_ | ( | AdvertisingPolicyMode_t | mode ) |
- See also:
- Gap::setAdvertisingPolicyMode
| ble_error_t setAdvertisingScanResponse_ | ( | advertising_handle_t | handle, |
| Span< const uint8_t > | response | ||
| ) |
| ble_error_t setAppearance_ | ( | GapAdvertisingData::Appearance | appearance ) |
- See also:
- Gap::setAppearance
| ble_error_t setCentralPrivacyConfiguration_ | ( | const CentralPrivacyConfiguration_t * | configuration ) |
- See also:
- Gap::setCentralPrivacyConfiguration
| ble_error_t setDeviceName_ | ( | const uint8_t * | deviceName ) |
- See also:
- Gap::setDeviceName
| ble_error_t setInitiatorPolicyMode_ | ( | InitiatorPolicyMode_t | mode ) |
- See also:
- Gap::setInitiatorPolicyMode
| ble_error_t setPeriodicAdvertisingParameters_ | ( | advertising_handle_t | handle, |
| periodic_interval_t | periodicAdvertisingIntervalMin, | ||
| periodic_interval_t | periodicAdvertisingIntervalMax, | ||
| bool | advertiseTxPower | ||
| ) |
| ble_error_t setPeriodicAdvertisingPayload_ | ( | advertising_handle_t | handle, |
| Span< const uint8_t > | payload | ||
| ) |
| ble_error_t setPeripheralPrivacyConfiguration_ | ( | const PeripheralPrivacyConfiguration_t * | configuration ) |
- See also:
- Gap::setPeripheralPrivacyConfiguration
| ble_error_t setPhy_ | ( | Handle_t | connection, |
| const phy_set_t * | txPhys, | ||
| const phy_set_t * | rxPhys, | ||
| CodedSymbolPerBit_t | codedSymbol | ||
| ) |
- See also:
- Gap::setPhy
| ble_error_t setPreferredConnectionParams_ | ( | const ConnectionParams_t * | params ) |
- See also:
- Gap::setPreferredConnectionParams
| ble_error_t setPreferredPhys_ | ( | const phy_set_t * | txPhys, |
| const phy_set_t * | rxPhys | ||
| ) |
- See also:
- Gap::setPreferredPhys
| ble_error_t setScanningPolicyMode_ | ( | ScanningPolicyMode_t | mode ) |
- See also:
- Gap::setScanningPolicyMode
| ble_error_t setScanParameters_ | ( | const ScanParameters & | params ) |
| ble_error_t setTxPower_ | ( | int8_t | txPower ) |
- See also:
- Gap::setTxPower
| ble_error_t setWhitelist_ | ( | const Whitelist_t & | whitelist ) |
- See also:
- Gap::setWhitelist
| ble_error_t startAdvertising_ | ( | const GapAdvertisingParams & | params ) |
- See also:
- Gap::startAdvertising
| ble_error_t startAdvertising_ | ( | advertising_handle_t | handle, |
| adv_duration_t | maxDuration, | ||
| uint8_t | maxEvents | ||
| ) |
| ble_error_t startPeriodicAdvertising_ | ( | advertising_handle_t | handle ) |
| ble_error_t startRadioScan_ | ( | const GapScanningParams & | scanningParams ) |
- See also:
- Gap::startRadioScan
| ble_error_t startScan_ | ( | scan_duration_t | duration, |
| duplicates_filter_t | filtering, | ||
| scan_period_t | period | ||
| ) |
| ble_error_t stopAdvertising_ | ( | ) |
- See also:
- Gap::stopAdvertising
| ble_error_t stopAdvertising_ | ( | advertising_handle_t | handle ) |
| ble_error_t stopPeriodicAdvertising_ | ( | advertising_handle_t | handle ) |
| ble_error_t stopScan_ | ( | ) |
- See also:
- Gap::stopScan
| ble_error_t terminateSync_ | ( | periodic_sync_handle_t | handle ) |
| ble_error_t updateConnectionParams_ | ( | Handle_t | handle, |
| const ConnectionParams_t * | params | ||
| ) |
- See also:
- Gap::updateConnectionParams
Generated on Tue Jul 12 2022 13:55:40 by
1.7.2