19 #ifndef BLE_GAP_ADVERTISINGDATATYPES_H 20 #define BLE_GAP_ADVERTISINGDATATYPES_H 22 #include "ble/common/SafeEnum.h" 167 LE_LIMITED_DISCOVERABLE = 0x01,
168 LE_GENERAL_DISCOVERABLE = 0x02,
169 BREDR_NOT_SUPPORTED = 0x04,
170 SIMULTANEOUS_LE_BREDR_C = 0x08,
171 SIMULTANEOUS_LE_BREDR_H = 0x10
174 static const uint8_t default_flags = BREDR_NOT_SUPPORTED | LE_GENERAL_DISCOVERABLE;
185 _value |= LE_GENERAL_DISCOVERABLE;
194 _value |= LE_LIMITED_DISCOVERABLE;
201 _value &= ~BREDR_NOT_SUPPORTED;
203 _value |= BREDR_NOT_SUPPORTED;
210 _value &= ~SIMULTANEOUS_LE_BREDR_C;
212 _value |= SIMULTANEOUS_LE_BREDR_C;
219 _value &= ~SIMULTANEOUS_LE_BREDR_H;
221 _value |= SIMULTANEOUS_LE_BREDR_H;
226 bool getGeneralDiscoverable()
const 228 return _value & LE_GENERAL_DISCOVERABLE;
231 bool getlimitedDiscoverable()
const 233 return _value & LE_LIMITED_DISCOVERABLE;
236 bool getBrEdrNotSupported()
const 238 return _value & BREDR_NOT_SUPPORTED;
241 bool getSimultaneousLeBredrC()
const 243 return _value & SIMULTANEOUS_LE_BREDR_C;
246 bool getSimultaneousLeBredrH()
const 248 return _value & SIMULTANEOUS_LE_BREDR_H;
256 uint8_t
value()
const 293 GENERIC_COMPUTER = 128,
303 WATCH_SPORTS_WATCH = 193,
313 GENERIC_DISPLAY = 320,
318 GENERIC_REMOTE_CONTROL = 384,
323 GENERIC_EYE_GLASSES = 448,
333 GENERIC_KEYRING = 576,
338 GENERIC_MEDIA_PLAYER = 640,
343 GENERIC_BARCODE_SCANNER = 704,
348 GENERIC_THERMOMETER = 768,
353 THERMOMETER_EAR = 769,
358 GENERIC_HEART_RATE_SENSOR = 832,
363 HEART_RATE_SENSOR_HEART_RATE_BELT = 833,
368 GENERIC_BLOOD_PRESSURE = 896,
373 BLOOD_PRESSURE_ARM = 897,
378 BLOOD_PRESSURE_WRIST = 898,
383 HUMAN_INTERFACE_DEVICE_HID = 960,
408 DIGITIZER_TABLET = 965,
423 BARCODE_SCANNER = 968,
428 GENERIC_GLUCOSE_METER = 1024,
433 GENERIC_RUNNING_WALKING_SENSOR = 1088,
438 RUNNING_WALKING_SENSOR_IN_SHOE = 1089,
443 RUNNING_WALKING_SENSOR_ON_SHOE = 1090,
448 RUNNING_WALKING_SENSOR_ON_HIP = 1091,
453 GENERIC_CYCLING = 1152,
458 CYCLING_CYCLING_COMPUTER = 1153,
463 CYCLING_SPEED_SENSOR = 1154,
468 CYCLING_CADENCE_SENSOR = 1155,
473 CYCLING_POWER_SENSOR = 1156,
478 CYCLING_SPEED_AND_CADENCE_SENSOR = 1157,
483 PULSE_OXIMETER_GENERIC = 3136,
488 PULSE_OXIMETER_FINGERTIP = 3137,
493 PULSE_OXIMETER_WRIST_WORN = 3138,
498 GENERIC_WEIGHT_SCALE = 3200,
503 OUTDOOR_GENERIC = 5184,
508 OUTDOOR_LOCATION_DISPLAY_DEVICE = 5185,
513 OUTDOOR_LOCATION_AND_NAVIGATION_DISPLAY_DEVICE = 5186,
518 OUTDOOR_LOCATION_POD = 5187,
523 OUTDOOR_LOCATION_AND_NAVIGATION_POD = 5188
541 #endif //BLE_GAP_ADVERTISINGDATATYPES_H adv_data_flags_t(uint8_t value=0)
Create from raw value.
type
struct scoped enum wrapped by the class
Flags, refer to AdvertisingData::Flags_t.
Enumeration of values for the adv_data_type_t::APPEARANCE.
Manufacturer Specific Data.
adv_data_type_t(type value)
Construct a new instance of adv_data_type_t.
uint8_t value() const
Explicit access to the inner value of the SafeEnum instance.
Helper class used to define safe enumerations.
Incomplete list of 16-bit Service IDs.
Set of advertising flags.
List of 128-bit service UUIDs the device is looking for.
Complete list of 128-bit Service IDs.
Slave Connection Interval Range.
Complete list of 16-bit Service IDs.
Incomplete list of 32-bit Service IDs (not relevant for Bluetooth 4.0).
Complete list of 32-bit Service IDs (not relevant for Bluetooth 4.0).
Incomplete list of 128-bit Service IDs.
Entry namespace for all BLE API definitions.
adv_data_appearance_t(type value)
Construct a new instance of adv_data_appearance_t.
Appearance, refer to AdvertisingData::Appearance_t.
type
struct scoped enum wrapped by the class
List of 128-bit service UUIDs the device is looking for.