17 #ifndef BLE_GAP_ADVERTISINGDATATYPES_H 18 #define BLE_GAP_ADVERTISINGDATATYPES_H 20 #include "ble/SafeEnum.h" 165 LE_LIMITED_DISCOVERABLE = 0x01,
166 LE_GENERAL_DISCOVERABLE = 0x02,
167 BREDR_NOT_SUPPORTED = 0x04,
168 SIMULTANEOUS_LE_BREDR_C = 0x08,
169 SIMULTANEOUS_LE_BREDR_H = 0x10
172 static const uint8_t default_flags = BREDR_NOT_SUPPORTED | LE_GENERAL_DISCOVERABLE;
183 _value |= LE_GENERAL_DISCOVERABLE;
192 _value |= LE_LIMITED_DISCOVERABLE;
199 _value &= ~BREDR_NOT_SUPPORTED;
201 _value |= BREDR_NOT_SUPPORTED;
208 _value &= ~SIMULTANEOUS_LE_BREDR_C;
210 _value |= SIMULTANEOUS_LE_BREDR_C;
217 _value &= ~SIMULTANEOUS_LE_BREDR_H;
219 _value |= SIMULTANEOUS_LE_BREDR_H;
224 bool getGeneralDiscoverable()
226 return _value & LE_GENERAL_DISCOVERABLE;
229 bool getlimitedDiscoverable()
231 return _value & LE_LIMITED_DISCOVERABLE;
234 bool getBrEdrNotSupported()
236 return _value & BREDR_NOT_SUPPORTED;
239 bool getSimultaneousLeBredrC()
241 return _value & SIMULTANEOUS_LE_BREDR_C;
244 bool getSimultaneousLeBredrH()
246 return _value & SIMULTANEOUS_LE_BREDR_H;
291 GENERIC_COMPUTER = 128,
301 WATCH_SPORTS_WATCH = 193,
311 GENERIC_DISPLAY = 320,
316 GENERIC_REMOTE_CONTROL = 384,
321 GENERIC_EYE_GLASSES = 448,
331 GENERIC_KEYRING = 576,
336 GENERIC_MEDIA_PLAYER = 640,
341 GENERIC_BARCODE_SCANNER = 704,
346 GENERIC_THERMOMETER = 768,
351 THERMOMETER_EAR = 769,
356 GENERIC_HEART_RATE_SENSOR = 832,
361 HEART_RATE_SENSOR_HEART_RATE_BELT = 833,
366 GENERIC_BLOOD_PRESSURE = 896,
371 BLOOD_PRESSURE_ARM = 897,
376 BLOOD_PRESSURE_WRIST = 898,
381 HUMAN_INTERFACE_DEVICE_HID = 960,
406 DIGITIZER_TABLET = 965,
421 BARCODE_SCANNER = 968,
426 GENERIC_GLUCOSE_METER = 1024,
431 GENERIC_RUNNING_WALKING_SENSOR = 1088,
436 RUNNING_WALKING_SENSOR_IN_SHOE = 1089,
441 RUNNING_WALKING_SENSOR_ON_SHOE = 1090,
446 RUNNING_WALKING_SENSOR_ON_HIP = 1091,
451 GENERIC_CYCLING = 1152,
456 CYCLING_CYCLING_COMPUTER = 1153,
461 CYCLING_SPEED_SENSOR = 1154,
466 CYCLING_CADENCE_SENSOR = 1155,
471 CYCLING_POWER_SENSOR = 1156,
476 CYCLING_SPEED_AND_CADENCE_SENSOR = 1157,
481 PULSE_OXIMETER_GENERIC = 3136,
486 PULSE_OXIMETER_FINGERTIP = 3137,
491 PULSE_OXIMETER_WRIST_WORN = 3138,
496 GENERIC_WEIGHT_SCALE = 3200,
501 OUTDOOR_GENERIC = 5184,
506 OUTDOOR_LOCATION_DISPLAY_DEVICE = 5185,
511 OUTDOOR_LOCATION_AND_NAVIGATION_DISPLAY_DEVICE = 5186,
516 OUTDOOR_LOCATION_POD = 5187,
521 OUTDOOR_LOCATION_AND_NAVIGATION_POD = 5188
539 #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.