Typedefs | |
typedef bStatus_t(* | pfnGATTReadAttrCB_t )(uint16 connHandle, gattAttribute_t *pAttr, uint8 *pValue, uint8 *pLen, uint16 offset, uint8 maxLen) |
Callback function prototype to read an attribute value. | |
typedef bStatus_t(* | pfnGATTWriteAttrCB_t )(uint16 connHandle, gattAttribute_t *pAttr, uint8 *pValue, uint8 len, uint16 offset) |
Callback function prototype to write an attribute value. | |
typedef bStatus_t(* | pfnGATTAuthorizeAttrCB_t )(uint16 connHandle, gattAttribute_t *pAttr, uint8 opcode) |
Callback function prototype to authorize a Read or Write operation on a given attribute. |
typedef bStatus_t(* pfnGATTAuthorizeAttrCB_t)(uint16 connHandle, gattAttribute_t *pAttr, uint8 opcode) |
Callback function prototype to authorize a Read or Write operation on a given attribute.
connHandle | - connection request was received on | |
pAttr | - pointer to attribute | |
opcode | - request opcode (ATT_READ_REQ or ATT_WRITE_REQ) |
typedef bStatus_t(* pfnGATTReadAttrCB_t)(uint16 connHandle, gattAttribute_t *pAttr, uint8 *pValue, uint8 *pLen, uint16 offset, uint8 maxLen) |
Callback function prototype to read an attribute value.
connHandle | - connection request was received on | |
pAttr | - pointer to attribute | |
pValue | - pointer to data to be read (to be returned) | |
pLen | - length of data (to be returned) | |
offset | - offset of the first octet to be read | |
maxLen | - maximum length of data to be read |
typedef bStatus_t(* pfnGATTWriteAttrCB_t)(uint16 connHandle, gattAttribute_t *pAttr, uint8 *pValue, uint8 len, uint16 offset) |
Callback function prototype to write an attribute value.
connHandle | - connection request was received on | |
pAttr | - pointer to attribute | |
pValue | - pointer to data to be written | |
pLen | - length of data | |
offset | - offset of the first octet to be written |