18#include "ble/common/CallChainOfFunctionPointersWithContext.h"
20#ifndef MBED_BLE_GATT_CALLBACK_PARAM_TYPES_H__
21#define MBED_BLE_GATT_CALLBACK_PARAM_TYPES_H__
232 AUTH_CALLBACK_REPLY_ATTERR_INSUF_AUTHENTICATION = 0x05,
244 AUTH_CALLBACK_REPLY_ATTERR_INSUF_AUTHORIZATION = 0x08,
262 AUTH_CALLBACK_REPLY_ATTERR_INVALID_ATT_VAL_LENGTH = 0x0D,
279 AUTH_CALLBACK_REPLY_ATTERR_INSUF_RESOURCES = 0x11,
Function like object hosting a list of FunctionPointerWithContext.
Function like object adapter over freestanding and member functions.
ble::attribute_handle_t Handle_t
Representation of an attribute handle.
ble_error_t
Error codes for the BLE API.
HVXType_t
Handle Value Notification/Indication event.
GattAuthCallbackReply_t
Enumeration of allowed values returned by read or write authorization process.
@ AUTH_CALLBACK_REPLY_SUCCESS
Success.
@ AUTH_CALLBACK_REPLY_ATTERR_INSUFFICIENT_ENCRYPTION_KEY_SIZE
The Encryption Key Size used for encrypting this link is insufficient.
@ AUTH_CALLBACK_REPLY_ATTERR_UNSUPPORTED_GROUP_TYPE
The attribute type is not a supported grouping attribute as defined by a higher layer specification.
@ AUTH_CALLBACK_REPLY_ATTERR_ATTRIBUTE_NOT_FOUND
No attribute found within the given attribute handle range.
@ AUTH_CALLBACK_REPLY_ATTERR_UNLIKELY_ERROR
The attribute request that was requested has encountered an error that was unlikely,...
@ AUTH_CALLBACK_REPLY_ATTERR_WRITE_REQUEST_REJECTED
The Write Request Rejected error code is used when a requested write operation cannot be fulfilled fo...
@ AUTH_CALLBACK_REPLY_ATTERR_ATTRIBUTE_NOT_LONG
The attribute cannot be read using the Read Blob Request.
@ AUTH_CALLBACK_REPLY_ATTERR_INVALID_ATTRIBUTE_VALUE_LENGTH
The attribute value length is invalid for the operation.
@ AUTH_CALLBACK_REPLY_ATTERR_INVALID_PDU
The attribute PDU was invalid.
@ AUTH_CALLBACK_REPLY_ATTERR_INSUFFICIENT_AUTHORIZATION
The attribute requires authorization before it can be read or written.
@ AUTH_CALLBACK_REPLY_ATTERR_CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR_IMPROPERLY_CONFIGURED
The Client Characteristic Configuration Descriptor Improperly Configured error code is used when a Cl...
@ AUTH_CALLBACK_REPLY_ATTERR_INSUFFICIENT_ENCRYPTION
The attribute requires encryption before it can be read or written.
@ AUTH_CALLBACK_REPLY_ATTERR_INVALID_HANDLE
The attribute handle given was not valid on this server.
@ AUTH_CALLBACK_REPLY_ATTERR_INVALID_OFFSET
Offset specified was past the end of the attribute.
@ AUTH_CALLBACK_REPLY_ATTERR_PREPARE_QUEUE_FULL
Too many prepare writes have been queued.
@ AUTH_CALLBACK_REPLY_ATTERR_INSUFFICIENT_AUTHENTICATION
The attribute requires authentication before it can be read or written.
@ AUTH_CALLBACK_REPLY_ATTERR_OUT_OF_RANGE
The Out of Range error code is used when an attribute value is out of range as defined by a profile o...
@ AUTH_CALLBACK_REPLY_ATTERR_READ_NOT_PERMITTED
The attribute cannot be read.
@ AUTH_CALLBACK_REPLY_ATTERR_INSUFFICIENT_RESOURCES
Insufficient Resources to complete the request.
@ AUTH_CALLBACK_REPLY_ATTERR_WRITE_NOT_PERMITTED
The attribute cannot be written.
@ AUTH_CALLBACK_REPLY_ATTERR_REQUEST_NOT_SUPPORTED
Attribute server does not support the request received from the client.
@ AUTH_CALLBACK_REPLY_ATTERR_PROCEDURE_ALREADY_IN_PROGRESS
The Procedure Already in Progress error code is used when a profile or service request cannot be serv...
Entry namespace for all BLE API definitions.
CallChainOfFunctionPointersWithContext< const GattReadCallbackParams * > ReadCallbackChain_t
Callchain of attribute read event handlers.
FunctionPointerWithContext< const GattWriteCallbackParams * > WriteCallback_t
Attribute write event handler.
CallChainOfFunctionPointersWithContext< const GattWriteCallbackParams * > WriteCallbackChain_t
Callchain of attribute write event handlers.
FunctionPointerWithContext< const GattReadCallbackParams * > ReadCallback_t
Attribute read event handler.
uintptr_t connection_handle_t
Opaque reference to a connection.
Gatt Data Sent Attribute related events.
GattAttribute::Handle_t attHandle
Attribute Handle to which the event applies.
ble::connection_handle_t connHandle
The handle of the connection that triggered the event.
Handle Value Notification/Indication event.
HVXType_t type
Indication or Notification, see HVXType_t.
ble::connection_handle_t connHandle
The handle of the connection that triggered the event.
const uint8_t * data
Attribute value.
uint16_t len
Attribute value length.
GattAttribute::Handle_t handle
Attribute Handle to which the HVx operation applies.
GATT read authorization request event.
ble::connection_handle_t connHandle
The handle of the connection that triggered the event.
uint16_t len
Optional: new length of the outgoing data.
GattAttribute::Handle_t handle
Attribute Handle to which the read operation applies.
uint8_t * data
Optional: new outgoing data.
uint16_t offset
Offset for the read operation.
GattAuthCallbackReply_t authorizationReply
Authorization result.
GATT Read event definition.
uint8_t error_code
Error code of the GattClient read operation.
ble::connection_handle_t connHandle
Handle of the connection that triggered the event.
const uint8_t * data
Pointer to the data read.
ble_error_t status
Status of the GattClient Read operation.
uint16_t len
Length in bytes of the data read.
GattAttribute::Handle_t handle
Attribute Handle to which the read operation applies.
uint16_t offset
Offset within the attribute value read.
Gatt Updates Changed Attribute related events.
GattAttribute::Handle_t attHandle
The handle of the CCCD producing the event.
GattAttribute::Handle_t charHandle
The value handle of the characteristic containing the CCCD
ble::connection_handle_t connHandle
The handle of the connection that triggered the event.
GATT write authorization request event.
ble::connection_handle_t connHandle
Handle of the connection that triggered the event.
const uint8_t * data
Incoming data.
uint16_t len
Length of the incoming data.
GattAttribute::Handle_t handle
Attribute Handle to which the write operation applies.
uint16_t offset
Offset for the write operation.
GattAuthCallbackReply_t authorizationReply
Authorization result.
GATT Write event definition.
uint8_t error_code
Error code of the GattClient Write operation.
ble::connection_handle_t connHandle
Handle of the connection that triggered the event.
WriteOp_t
Enumeration of allowed write operations.
@ OP_EXEC_WRITE_REQ_CANCEL
Execute write request: cancel all prepared writes.
@ OP_INVALID
Invalid operation.
@ OP_PREP_WRITE_REQ
Prepare write request.
@ OP_EXEC_WRITE_REQ_NOW
Execute write request: immediately execute all prepared writes.
@ OP_SIGN_WRITE_CMD
Signed write command.
@ OP_WRITE_REQ
Write request.
@ OP_WRITE_CMD
Write command.
const uint8_t * data
Pointer to the data to write.
ble_error_t status
Status of the GattClient Write operation.
uint16_t len
Length (in bytes) of the data to write.
GattAttribute::Handle_t handle
Handle of the attribute to which the write operation applies.
uint16_t offset
Offset within the attribute value to be written.
WriteOp_t writeOp
Type of the write operation.