Callbacks for BT-GATT Client Interface. More...
Typedefs | |
typedef void(* | BTRegisterClientCallback_t) (BTGattStatus_t xStatus, uint8_t ucClientIf, BTUuid_t *pxAppUuid) |
Callback invoked in response pxRegisterClient when the GATT client registration has been completed. | |
typedef void(* | BTSearchCompleteCallback_t) (uint16_t usConnId, BTGattStatus_t xStatus) |
Callback invoked in response to pxSearchService when the GATT service search has been completed. | |
typedef void(* | BTRegisterForNotificationCallback_t) (uint16_t usConnId, bool bRegistered, BTGattStatus_t xStatus, uint16_t usHandle) |
Callback invoked in response to pxRegisterForNotification and pxUnregisterForNotification. | |
typedef void(* | BTNotifyCallback_t) (uint16_t usConnId, BTGattNotifyParams_t *pxData) |
Remote device notification callback, invoked when a remote device sends a notification or indication that a client has registered for. | |
typedef void(* | BTReadCharacteristicCallback_t) (uint16_t usConnId, BTGattStatus_t xStatus, BTGattReadParams_t *pxData) |
Reports result of a GATT read operation. Triggered by pxReadCharacteristic. | |
typedef void(* | BTWriteCharacteristicCallback_t) (uint16_t usConnId, BTGattStatus_t xStatus, uint16_t usHandle) |
GATT write characteristic operation callback. Triggered by pxWriteCharacteristic. | |
typedef void(* | BTExecuteWriteCallback_t) (uint16_t usConnId, BTGattStatus_t xStatus) |
GATT execute prepared write callback. Triggered by pxExecuteWrite. | |
typedef void(* | BTReadDescriptorCallback_t) (uint16_t usConnId, BTGattStatus_t xStatus, BTGattReadParams_t *pxData) |
Callback invoked in response to pxReadDescriptor. | |
typedef void(* | BTWriteDescriptorCallback_t) (uint16_t usConnId, BTGattStatus_t xStatus, uint16_t usHandle) |
Callback invoked in response to pxWriteDescriptor. | |
typedef void(* | BTListenCallback_t) (BTGattStatus_t xStatus, uint32_t ulServerIf) |
Callback indicating the status of a listen() operation. | |
typedef void(* | BTConfigureMtuCallback_t) (uint16_t usConnId, BTGattStatus_t xStatus, uint32_t ulMtu) |
Callback invoked when the MTU for a given connection changes. Triggered by pxConfigureMtu. | |
typedef void(* | BTGetGattDbCallback_t) (uint16_t usConnId, BTGattDbElement_t *pxDb, uint32_t ulCount) |
GATT get database callback. Triggered by pxGetGattDb. | |
typedef void(* | BTServicesRemovedCallback_t) (uint16_t usConnId, uint16_t usStartHandle, uint16_t usEndHandle) |
GATT services between startHandle and endHandle were removed. | |
typedef void(* | BTServicesAddedCallback_t) (uint16_t usConnId, BTGattDbElement_t *pxAdded, uint32_t ulAddedCount) |
GATT services were added. | |
Callbacks for BT-GATT Client Interface.
typedef void(* BTRegisterClientCallback_t) (BTGattStatus_t xStatus, uint8_t ucClientIf, BTUuid_t *pxAppUuid) |
Callback invoked in response pxRegisterClient when the GATT client registration has been completed.
BT-GATT Client callback structure.
[in] | xStatus | returns eBTStatusSuccess if operation succeeded. |
[in] | ucClientIf | Client interface. |
[in] | pxAppUuid | GATT client UUID. |
typedef void(* BTSearchCompleteCallback_t) (uint16_t usConnId, BTGattStatus_t xStatus) |
Callback invoked in response to pxSearchService when the GATT service search has been completed.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | xStatus | returns eBTGattStatusSuccess if operation succeeded. |
typedef void(* BTRegisterForNotificationCallback_t) (uint16_t usConnId, bool bRegistered, BTGattStatus_t xStatus, uint16_t usHandle) |
Callback invoked in response to pxRegisterForNotification and pxUnregisterForNotification.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | bRegistered | Set to True if attribute id registered for notifications, set to False otherwise. |
[in] | xStatus | returns eBTGattStatusSuccess if operation succeeded. |
[in] | usHandle | Handle number of attribute [de]registered for notification. |
typedef void(* BTNotifyCallback_t) (uint16_t usConnId, BTGattNotifyParams_t *pxData) |
Remote device notification callback, invoked when a remote device sends a notification or indication that a client has registered for.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | pxData | Parameters for attribute change notifications. |
typedef void(* BTReadCharacteristicCallback_t) (uint16_t usConnId, BTGattStatus_t xStatus, BTGattReadParams_t *pxData) |
Reports result of a GATT read operation. Triggered by pxReadCharacteristic.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | xStatus | returns eBTGattStatusSuccess if operation succeeded. |
[in] | pxData | Parameters for GATT read operation. |
typedef void(* BTWriteCharacteristicCallback_t) (uint16_t usConnId, BTGattStatus_t xStatus, uint16_t usHandle) |
GATT write characteristic operation callback. Triggered by pxWriteCharacteristic.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | xStatus | returns eBTGattStatusSuccess if operation succeeded. |
[in] | usHandle | Handle of the attribute written to. |
typedef void(* BTExecuteWriteCallback_t) (uint16_t usConnId, BTGattStatus_t xStatus) |
GATT execute prepared write callback. Triggered by pxExecuteWrite.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | xStatus | returns eBTGattStatusSuccess if operation succeeded. |
typedef void(* BTReadDescriptorCallback_t) (uint16_t usConnId, BTGattStatus_t xStatus, BTGattReadParams_t *pxData) |
Callback invoked in response to pxReadDescriptor.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | xStatus | returns eBTGattStatusSuccess if operation succeeded. |
[in] | pxData | Parameters for GATT read operation. |
typedef void(* BTWriteDescriptorCallback_t) (uint16_t usConnId, BTGattStatus_t xStatus, uint16_t usHandle) |
Callback invoked in response to pxWriteDescriptor.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | xStatus | returns eBTGattStatusSuccess if operation succeeded. |
[in] | usHandle | Handle of the attribute written to. |
typedef void(* BTListenCallback_t) (BTGattStatus_t xStatus, uint32_t ulServerIf) |
Callback indicating the status of a listen() operation.
Callback has been deprecated, use BTAdvStatusCallback_t in BTBleAdapterCallbacks_t instead.
typedef void(* BTConfigureMtuCallback_t) (uint16_t usConnId, BTGattStatus_t xStatus, uint32_t ulMtu) |
Callback invoked when the MTU for a given connection changes. Triggered by pxConfigureMtu.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | xStatus | returns eBTGattStatusSuccess if operation succeeded. |
[in] | ulMtu | MTU size. |
typedef void(* BTGetGattDbCallback_t) (uint16_t usConnId, BTGattDbElement_t *pxDb, uint32_t ulCount) |
GATT get database callback. Triggered by pxGetGattDb.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | pxDb | GATT database elements |
[in] | ulCount | Number of elements in GATT database. |
typedef void(* BTServicesRemovedCallback_t) (uint16_t usConnId, uint16_t usStartHandle, uint16_t usEndHandle) |
GATT services between startHandle and endHandle were removed.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | usStartHandle | First service handle removed from server. |
[in] | usEndHandle | Last service handle removed from server. |
typedef void(* BTServicesAddedCallback_t) (uint16_t usConnId, BTGattDbElement_t *pxAdded, uint32_t ulAddedCount) |
GATT services were added.
[in] | usConnId | Connection Identifier, created and returned on connection event, when BTConnectionCallback_t is invoked. |
[in] | pxAdded | GATT database elements added. |
[in] | ulAddedCount | Number of GATT database elements added. |