@@ -126,13 +126,9 @@ class GenericGap :
126
126
*/
127
127
GenericGap (
128
128
pal::EventQueue &event_queue,
129
- PalGap &pal_gap
130
- #if BLE_FEATURE_GATT_SERVER
131
- , pal::GenericAccessService &generic_access_service
132
- #endif
133
- #if BLE_FEATURE_SECURITY
134
- , PalSecurityManager &pal_sm
135
- #endif
129
+ PalGap &pal_gap,
130
+ pal::GenericAccessService &generic_access_service,
131
+ PalSecurityManager &pal_sm
136
132
);
137
133
138
134
/* *
@@ -550,13 +546,11 @@ class GenericGap :
550
546
*/
551
547
ble_error_t initRadioNotification_ (void );
552
548
553
- #if BLE_FEATURE_PRIVACY
554
549
/* *
555
550
* @see Gap::enablePrivacy
556
551
*/
557
552
ble_error_t enablePrivacy_ (bool enable);
558
553
559
- #if BLE_ROLE_BROADCASTER
560
554
/* *
561
555
* @see Gap::setPeripheralPrivacyConfiguration
562
556
*/
@@ -570,8 +564,7 @@ class GenericGap :
570
564
ble_error_t getPeripheralPrivacyConfiguration_ (
571
565
PeripheralPrivacyConfiguration_t *configuration
572
566
);
573
- #endif // BLE_ROLE_BROADCASTER
574
- #if BLE_ROLE_OBSERVER
567
+
575
568
/* *
576
569
* @see Gap::setCentralPrivacyConfiguration
577
570
*/
@@ -585,8 +578,6 @@ class GenericGap :
585
578
ble_error_t getCentralPrivacyConfiguration_ (
586
579
CentralPrivacyConfiguration_t *configuration
587
580
);
588
- #endif // BLE_ROLE_OBSERVER
589
- #endif // BLE_FEATURE_PRIVACY
590
581
591
582
/* *
592
583
* @see Gap::setAdvertisingData
@@ -792,40 +783,25 @@ class GenericGap :
792
783
793
784
private:
794
785
pal::EventQueue &_event_queue;
795
- #if BLE_FEATURE_GATT_SERVER
796
786
PalGap &_pal_gap;
797
787
pal::GenericAccessService &_gap_service;
798
- #endif
799
- #if BLE_FEATURE_SECURITY
800
788
PalSecurityManager &_pal_sm;
801
- #endif
802
789
BLEProtocol::AddressType_t _address_type;
803
790
ble::address_t _address;
804
- #if BLE_FEATURE_WHITELIST
805
791
pal::initiator_policy_t _initiator_policy_mode;
806
792
pal::scanning_filter_policy_t _scanning_filter_policy;
807
793
pal::advertising_filter_policy_t _advertising_filter_policy;
808
794
mutable Whitelist_t _whitelist;
809
- #endif // BLE_FEATURE_WHITELIST
810
- #if BLE_FEATURE_PRIVACY
795
+
811
796
bool _privacy_enabled;
812
- #if BLE_ROLE_BROADCASTER
813
797
PeripheralPrivacyConfiguration_t _peripheral_privacy_configuration;
814
- #endif
815
- #if BLE_ROLE_OBSERVER
816
798
CentralPrivacyConfiguration_t _central_privacy_configuration;
817
- #endif
818
- #endif // BLE_FEATURE_PRIVACY
819
799
ble::address_t _random_static_identity_address;
820
800
bool _random_address_rotating;
821
801
822
802
bool _scan_enabled;
823
- #if BLE_ROLE_BROADCASTER
824
803
mbed::Timeout _advertising_timeout;
825
- #endif
826
- #if BLE_ROLE_OBSERVER
827
804
mbed::Timeout _scan_timeout;
828
- #endif
829
805
mbed::Ticker _address_rotation_ticker;
830
806
831
807
template <size_t bit_size>
@@ -874,13 +850,9 @@ class GenericGap :
874
850
uint8_t data[bit_size / 8 + 1 ];
875
851
};
876
852
877
- #if BLE_FEATURE_EXTENDED_ADVERTISING
878
853
BitArray<MAX_ADVERTISING_SETS> _existing_sets;
879
- #endif // BLE_FEATURE_EXTENDED_ADVERTISING
880
- #if BLE_FEATURE_PERIODIC_ADVERTISING
881
- BitArray<MAX_ADVERTISING_SETS> _active_periodic_sets;
882
- #endif
883
854
BitArray<MAX_ADVERTISING_SETS> _active_sets;
855
+ BitArray<MAX_ADVERTISING_SETS> _active_periodic_sets;
884
856
BitArray<MAX_ADVERTISING_SETS> _connectable_payload_size_exceeded;
885
857
BitArray<MAX_ADVERTISING_SETS> _set_is_connectable;
886
858
0 commit comments