![]() |
Mbed OS Reference
|
Namespaces | |
| namespace | ble |
| Entry namespace for all BLE API definitions. | |
| namespace | SafeBool_ |
| Private namespace used to host details of the SafeBool implementation. | |
Data Structures | |
| class | CallChainOfFunctionPointersWithContext< ContextType > |
| Function like object hosting a list of FunctionPointerWithContext. More... | |
| class | FunctionPointerWithContext< ContextType > |
| Function like object adapter over freestanding and member functions. More... | |
| class | SafeBool< T > |
| Safe conversion of objects in boolean context. More... | |
| class | UUID |
| Representation of a Universally Unique Identifier (UUID). More... | |
Functions | |
| template<typename T , typename ContextType > | |
| FunctionPointerWithContext< ContextType > | makeFunctionPointer (T *object, void(T::*member)(ContextType context)) |
| Factory of adapted member function pointers. | |
| template<typename T , typename U > | |
| void | operator== (const SafeBool< T > &lhs, const SafeBool< U > &rhs) |
| Avoid conversion to bool between different classes. | |
| template<typename T , typename U > | |
| void | operator!= (const SafeBool< T > &lhs, const SafeBool< U > &rhs) |
| Avoid conversion to bool between different classes. | |
| anonymous enum |
Assigned values for BLE UUIDs.
| Enumerator | |
|---|---|
| BLE_UUID_UNKNOWN | Reserved UUID. |
| BLE_UUID_SERVICE_PRIMARY | Primary Service. |
| BLE_UUID_SERVICE_SECONDARY | Secondary Service. |
| BLE_UUID_SERVICE_INCLUDE | Included service. |
| BLE_UUID_CHARACTERISTIC | Characteristic. |
| BLE_UUID_DESCRIPTOR_CHAR_EXT_PROP | Characteristic Extended Properties Descriptor. |
| BLE_UUID_DESCRIPTOR_CHAR_USER_DESC | Characteristic User Description Descriptor. |
| BLE_UUID_DESCRIPTOR_CLIENT_CHAR_CONFIG | Client Characteristic Configuration Descriptor. |
| BLE_UUID_DESCRIPTOR_SERVER_CHAR_CONFIG | Server Characteristic Configuration Descriptor. |
| BLE_UUID_DESCRIPTOR_CHAR_PRESENTATION_FORMAT | Characteristic Presentation Format Descriptor. |
| BLE_UUID_DESCRIPTOR_CHAR_AGGREGATE_FORMAT | Characteristic Aggregate Format Descriptor. |
| BLE_UUID_GATT | Generic Attribute Profile. |
| BLE_UUID_GATT_CHARACTERISTIC_SERVICE_CHANGED | Service Changed Characteristic. |
| BLE_UUID_GAP | Generic Access Profile. |
| BLE_UUID_GAP_CHARACTERISTIC_DEVICE_NAME | Device Name Characteristic. |
| BLE_UUID_GAP_CHARACTERISTIC_APPEARANCE | Appearance Characteristic. |
| BLE_UUID_GAP_CHARACTERISTIC_PPF | Peripheral Privacy Flag Characteristic. |
| BLE_UUID_GAP_CHARACTERISTIC_RECONN_ADDR | Reconnection Address Characteristic. |
| BLE_UUID_GAP_CHARACTERISTIC_PPCP | Peripheral Preferred Connection Parameters Characteristic. |
Definition at line 37 of file common/blecommon.h.
| enum ble_error_t |
Error codes for the BLE API.
The value 0 means that no error was reported; therefore, it allows an API user to cleanly test for errors.
Definition at line 150 of file common/blecommon.h.
| enum HVXType_t |
Handle Value Notification/Indication event.
Emmitted when a notification or indication has been received from a GATT server.
| Enumerator | |
|---|---|
| BLE_HVX_NOTIFICATION | Handle Value Notification. |
| BLE_HVX_INDICATION | Handle Value Indication. |
Definition at line 244 of file common/blecommon.h.
| FunctionPointerWithContext< ContextType > makeFunctionPointer | ( | T * | object, |
| void(T::*)(ContextType context) | member | ||
| ) |
Factory of adapted member function pointers.
This factory eliminates the need to invoke the qualified constructor of FunctionPointerWithContext by using automatic type deduction of function templates.
| [in] | object | Instance to bound with member. |
| member | The member being adapted. |
Definition at line 355 of file common/FunctionPointerWithContext.h.
| void operator== | ( | const SafeBool< T > & | lhs, |
| const SafeBool< U > & | rhs | ||
| ) |
Avoid conversion to bool between different classes.
Definition at line 132 of file common/SafeBool.h.
| void operator!= | ( | const SafeBool< T > & | lhs, |
| const SafeBool< U > & | rhs | ||
| ) |
Avoid conversion to bool between different classes.
Definition at line 144 of file common/SafeBool.h.