Namespaces | |
ble | |
Entry namespace for all BLE API definitions. | |
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... | |
Enumerations |
Functions | |
template<typename T , typename ContextType > | |
FunctionPointerWithContext< ContextType > | makeFunctionPointer (T *object, void(T::*member)(ContextType context)) |
Factory of adapted member function pointers. More... | |
template<typename T , typename U > | |
void | operator== (const SafeBool< T > &lhs, const SafeBool< U > &rhs) |
Avoid conversion to bool between different classes. More... | |
template<typename T , typename U > | |
void | operator!= (const SafeBool< T > &lhs, const SafeBool< U > &rhs) |
Avoid conversion to bool between different classes. More... | |
static uint8_t | char2int (char c) |
Convert a character containing an hexadecimal digit into an unsigned integer. More... | |
Variables | |
static const unsigned | BLE_GATT_MTU_SIZE_DEFAULT = 23 |
Default MTU size. More... | |
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 36 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 149 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 243 of file common/blecommon.h.
|
static |
Convert a character containing an hexadecimal digit into an unsigned integer.
[in] | c | Hexadecimal digit in a character representation. |
Definition at line 44 of file common/UUID.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.
Avoid conversion to bool between different classes.
Definition at line 144 of file common/SafeBool.h.
Avoid conversion to bool between different classes.
Definition at line 132 of file common/SafeBool.h.
|
static |
Default MTU size.
Definition at line 235 of file common/blecommon.h.