Namespaces | |
BLEProtocol | |
Common namespace for types and constants used everywhere in BLE API. | |
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 34 of file 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.
Enumerator | |
---|---|
BLE_ERROR_NONE |
No error. |
BLE_ERROR_BUFFER_OVERFLOW |
The requested action would cause a buffer overflow and has been aborted. |
BLE_ERROR_NOT_IMPLEMENTED |
Requested a feature that isn't yet implemented or isn't supported by the target HW. |
BLE_ERROR_PARAM_OUT_OF_RANGE |
One of the supplied parameters is outside the valid range. |
BLE_ERROR_INVALID_PARAM |
One of the supplied parameters is invalid. |
BLE_STACK_BUSY |
The stack is busy. |
BLE_ERROR_INVALID_STATE |
Invalid state. |
BLE_ERROR_NO_MEM |
Out of memory. |
BLE_ERROR_OPERATION_NOT_PERMITTED |
The operation requested is not permitted. |
BLE_ERROR_INITIALIZATION_INCOMPLETE |
The BLE subsystem has not completed its initialization. |
BLE_ERROR_ALREADY_INITIALIZED |
The BLE system has already been initialized. |
BLE_ERROR_UNSPECIFIED |
Unknown error. |
BLE_ERROR_INTERNAL_STACK_FAILURE |
The platform-specific stack failed. |
BLE_ERROR_NOT_FOUND |
Data not found or there is nothing to return. |
Definition at line 147 of file 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 231 of file blecommon.h.
|
static |
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 350 of file FunctionPointerWithContext.h.
Avoid conversion to bool between different classes.
Definition at line 142 of file SafeBool.h.
Avoid conversion to bool between different classes.
Definition at line 130 of file SafeBool.h.
|
static |
Default MTU size.
Definition at line 223 of file blecommon.h.