Skip to content

Commit 72e5d3f

Browse files
committed
BLE - Filter user facing implementation based on configuration
1 parent 4e172ba commit 72e5d3f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

features/FEATURE_BLE/source/LegacyGap.tpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,7 @@ void LegacyGap<Impl>::processAdvertisementReport(
856856
#pragma pop
857857
#endif
858858

859+
#if BLE_ROLE_BROADCASTER
859860
template<class Impl>
860861
uint16_t LegacyGap<Impl>::getMinAdvertisingInterval(void) const
861862
{
@@ -873,6 +874,9 @@ uint16_t LegacyGap<Impl>::getMaxAdvertisingInterval(void) const
873874
{
874875
return impl()->getMaxAdvertisingInterval_();
875876
}
877+
#endif // BLE_ROLE_BROADCASTER
878+
879+
#if BLE_FEATURE_CONNECTABLE
876880

877881
template<class Impl>
878882
ble_error_t LegacyGap<Impl>::getPreferredConnectionParams(ConnectionParams_t *params)
@@ -888,6 +892,10 @@ ble_error_t LegacyGap<Impl>::setPreferredConnectionParams(
888892
return impl()->setPreferredConnectionParams_(params);
889893
}
890894

895+
#endif // BLE_FEATURE_CONNECTABLE
896+
897+
#if BLE_FEATURE_GATT_SERVER
898+
891899
template<class Impl>
892900
ble_error_t LegacyGap<Impl>::setDeviceName(const uint8_t *deviceName)
893901
{
@@ -912,6 +920,9 @@ ble_error_t LegacyGap<Impl>::getAppearance(GapAdvertisingData::Appearance *appea
912920
return impl()->getAppearance_(appearanceP);
913921
}
914922

923+
#endif // BLE_FEATURE_GATT_SERVER
924+
925+
#if BLE_ROLE_BROADCASTER
915926
template<class Impl>
916927
ble_error_t LegacyGap<Impl>::setAdvertisingData(
917928
const GapAdvertisingData &advData,
@@ -924,6 +935,7 @@ template<class Impl>
924935
ble_error_t LegacyGap<Impl>::startAdvertising(const GapAdvertisingParams &params) {
925936
return impl()->startAdvertising_(params);
926937
}
938+
#endif // BLE_ROLE_BROADCASTER
927939

928940
template<class Impl>
929941
ble_error_t LegacyGap<Impl>::reset(void)

0 commit comments

Comments
 (0)