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
adv_data_appearance_t Struct Reference
[Gap]
Enumeration of values for the adv_data_type_t::APPEARANCE. More...
#include <AdvertisingDataTypes.h>
Inherits SafeEnum< adv_data_appearance_t, uint16_t >.
Public Types | |
enum | type { UNKNOWN = 0, GENERIC_PHONE = 64, GENERIC_COMPUTER = 128, GENERIC_WATCH = 192, WATCH_SPORTS_WATCH = 193, GENERIC_CLOCK = 256, GENERIC_DISPLAY = 320, GENERIC_REMOTE_CONTROL = 384, GENERIC_EYE_GLASSES = 448, GENERIC_TAG = 512, GENERIC_KEYRING = 576, GENERIC_MEDIA_PLAYER = 640, GENERIC_BARCODE_SCANNER = 704, GENERIC_THERMOMETER = 768, THERMOMETER_EAR = 769, GENERIC_HEART_RATE_SENSOR = 832, HEART_RATE_SENSOR_HEART_RATE_BELT = 833, GENERIC_BLOOD_PRESSURE = 896, BLOOD_PRESSURE_ARM = 897, BLOOD_PRESSURE_WRIST = 898, HUMAN_INTERFACE_DEVICE_HID = 960, KEYBOARD = 961, MOUSE = 962, JOYSTICK = 963, GAMEPAD = 964, DIGITIZER_TABLET = 965, CARD_READER = 966, DIGITAL_PEN = 967, BARCODE_SCANNER = 968, GENERIC_GLUCOSE_METER = 1024, GENERIC_RUNNING_WALKING_SENSOR = 1088, RUNNING_WALKING_SENSOR_IN_SHOE = 1089, RUNNING_WALKING_SENSOR_ON_SHOE = 1090, RUNNING_WALKING_SENSOR_ON_HIP = 1091, GENERIC_CYCLING = 1152, CYCLING_CYCLING_COMPUTER = 1153, CYCLING_SPEED_SENSOR = 1154, CYCLING_CADENCE_SENSOR = 1155, CYCLING_POWER_SENSOR = 1156, CYCLING_SPEED_AND_CADENCE_SENSOR = 1157, PULSE_OXIMETER_GENERIC = 3136, PULSE_OXIMETER_FINGERTIP = 3137, PULSE_OXIMETER_WRIST_WORN = 3138, GENERIC_WEIGHT_SCALE = 3200, OUTDOOR_GENERIC = 5184, OUTDOOR_LOCATION_DISPLAY_DEVICE = 5185, OUTDOOR_LOCATION_AND_NAVIGATION_DISPLAY_DEVICE = 5186, OUTDOOR_LOCATION_POD = 5187, OUTDOOR_LOCATION_AND_NAVIGATION_POD = 5188 } |
struct scoped enum wrapped by the class More... | |
typedef uint16_t | representation_t |
Type of the representation. | |
Public Member Functions | |
adv_data_appearance_t (type value) | |
Construct a new instance of adv_data_appearance_t. | |
uint16_t | value () const |
Explicit access to the inner value of the SafeEnum instance. | |
const uint16_t * | storage () const |
Return a pointer to the inner storage. | |
Friends | |
bool | operator== (adv_data_appearance_tlhs, adv_data_appearance_trhs) |
Equal to operator for Target instances. | |
bool | operator!= (adv_data_appearance_tlhs, adv_data_appearance_trhs) |
Not equal to operator for Target instances. | |
bool | operator< (adv_data_appearance_tlhs, adv_data_appearance_trhs) |
Less than operator for Target instances. | |
bool | operator<= (adv_data_appearance_tlhs, adv_data_appearance_trhs) |
Less than or equal to operator for Target instances. | |
bool | operator> (adv_data_appearance_tlhs, adv_data_appearance_trhs) |
Greater than operator for Target instances. | |
bool | operator>= (adv_data_appearance_tlhs, adv_data_appearance_trhs) |
Greater than or equal to operator for Target instances. |
Detailed Description
Enumeration of values for the adv_data_type_t::APPEARANCE.
These values describe the physical shape or appearance of the device.
- Source
Bluetooth
Core Specification Supplement, Part A, Section 1.12.Bluetooth
Core Specification 4.0 (Vol. 3), Part C, Section 12.2.https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.gap.appearance.xml.
Definition at line 275 of file AdvertisingDataTypes.h.
Member Typedef Documentation
typedef uint16_t representation_t [inherited] |
Type of the representation.
Definition at line 113 of file SafeEnum.h.
Member Enumeration Documentation
enum type |
struct scoped enum wrapped by the class
- Enumerator:
Definition at line 277 of file AdvertisingDataTypes.h.
Constructor & Destructor Documentation
adv_data_appearance_t | ( | type | value ) |
Construct a new instance of adv_data_appearance_t.
Definition at line 527 of file AdvertisingDataTypes.h.
Member Function Documentation
const uint16_t * storage | ( | ) | const [inherited] |
Return a pointer to the inner storage.
Definition at line 209 of file SafeEnum.h.
uint16_t value | ( | ) | const [inherited] |
Explicit access to the inner value of the SafeEnum instance.
Definition at line 202 of file SafeEnum.h.
Friends And Related Function Documentation
bool operator!= | ( | adv_data_appearance_t | lhs, |
adv_data_appearance_t | rhs | ||
) | [friend, inherited] |
Not equal to operator for Target instances.
- Parameters:
-
lhs left hand side of the comparison rhs right hand side of the comparison
- Returns:
- true if the inner value of lhs and rhs are not equal and false otherwise.
Definition at line 144 of file SafeEnum.h.
bool operator< | ( | adv_data_appearance_t | lhs, |
adv_data_appearance_t | rhs | ||
) | [friend, inherited] |
Less than operator for Target instances.
- Parameters:
-
lhs left hand side of the comparison rhs right hand side of the comparison
- Returns:
- true if the inner value of lhs is less than rhs and false otherwise.
Definition at line 156 of file SafeEnum.h.
bool operator<= | ( | adv_data_appearance_t | lhs, |
adv_data_appearance_t | rhs | ||
) | [friend, inherited] |
Less than or equal to operator for Target instances.
- Parameters:
-
lhs left hand side of the comparison rhs right hand side of the comparison
- Returns:
- true if the inner value of lhs is less than or equal to rhs and false otherwise.
Definition at line 169 of file SafeEnum.h.
bool operator== | ( | adv_data_appearance_t | lhs, |
adv_data_appearance_t | rhs | ||
) | [friend, inherited] |
Equal to operator for Target instances.
- Parameters:
-
lhs left hand side of the comparison rhs right hand side of the comparison
- Returns:
- true if the inner value of lhs and rhs are equal and false otherwise.
Definition at line 131 of file SafeEnum.h.
bool operator> | ( | adv_data_appearance_t | lhs, |
adv_data_appearance_t | rhs | ||
) | [friend, inherited] |
Greater than operator for Target instances.
- Parameters:
-
lhs left hand side of the comparison rhs right hand side of the comparison
- Returns:
- true if the inner value of lhs is greater than rhs; false otherwise.
Definition at line 182 of file SafeEnum.h.
bool operator>= | ( | adv_data_appearance_t | lhs, |
adv_data_appearance_t | rhs | ||
) | [friend, inherited] |
Greater than or equal to operator for Target instances.
- Parameters:
-
lhs left hand side of the comparison rhs right hand side of the comparison
- Returns:
- true if the inner value of lhs is greater than or equal to rhs; false otherwise.
Definition at line 195 of file SafeEnum.h.
Generated on Tue Jul 12 2022 13:55:39 by
