43 #define ATT_MTU_SIZE L2CAP_MTU_SIZE 44 #define ATT_MAX_MTU_SIZE 517 50 #define ATT_ERROR_RSP 0x01 51 #define ATT_EXCHANGE_MTU_REQ 0x02 52 #define ATT_EXCHANGE_MTU_RSP 0x03 53 #define ATT_FIND_INFO_REQ 0x04 54 #define ATT_FIND_INFO_RSP 0x05 55 #define ATT_FIND_BY_TYPE_VALUE_REQ 0x06 56 #define ATT_FIND_BY_TYPE_VALUE_RSP 0x07 57 #define ATT_READ_BY_TYPE_REQ 0x08 58 #define ATT_READ_BY_TYPE_RSP 0x09 59 #define ATT_READ_REQ 0x0a 60 #define ATT_READ_RSP 0x0b 61 #define ATT_READ_BLOB_REQ 0x0c 62 #define ATT_READ_BLOB_RSP 0x0d 63 #define ATT_READ_MULTI_REQ 0x0e 64 #define ATT_READ_MULTI_RSP 0x0f 65 #define ATT_READ_BY_GRP_TYPE_REQ 0x10 66 #define ATT_READ_BY_GRP_TYPE_RSP 0x11 67 #define ATT_WRITE_REQ 0x12 68 #define ATT_WRITE_RSP 0x13 69 #define ATT_PREPARE_WRITE_REQ 0x16 70 #define ATT_PREPARE_WRITE_RSP 0x17 71 #define ATT_EXECUTE_WRITE_REQ 0x18 72 #define ATT_EXECUTE_WRITE_RSP 0x19 73 #define ATT_HANDLE_VALUE_NOTI 0x1b 74 #define ATT_HANDLE_VALUE_IND 0x1d 75 #define ATT_HANDLE_VALUE_CFM 0x1e 76 #define ATT_UNSUPPORTED_METHOD 0x20 78 #define ATT_WRITE_CMD 0x52 79 #define ATT_SIGNED_WRITE_CMD 0xD2 86 #define ATT_FLOW_CTRL_VIOLATED_EVENT 0x7E 87 #define ATT_MTU_UPDATED_EVENT 0x7F 93 #define ATT_METHOD_BITS 0x3f 96 #define ATT_CMD_FLAG_BIT 0x40 99 #define ATT_AUTHEN_SIG_FLAG_BIT 0x80 102 #define ATT_BT_UUID_SIZE 2 105 #define ATT_UUID_SIZE 16 108 #define ATT_MSG_TIMEOUT 30 111 #define ATT_SIG_NOT_INCLUDED 0x00 // Signature not included 112 #define ATT_SIG_VALID 0x01 // Included signature valid 113 #define ATT_SIG_INVALID 0x02 // Included signature not valid 123 #define ATT_ERR_INVALID_HANDLE 0x01 124 #define ATT_ERR_READ_NOT_PERMITTED 0x02 125 #define ATT_ERR_WRITE_NOT_PERMITTED 0x03 126 #define ATT_ERR_INVALID_PDU 0x04 127 #define ATT_ERR_INSUFFICIENT_AUTHEN 0x05 128 #define ATT_ERR_UNSUPPORTED_REQ 0x06 129 #define ATT_ERR_INVALID_OFFSET 0x07 130 #define ATT_ERR_INSUFFICIENT_AUTHOR 0x08 131 #define ATT_ERR_PREPARE_QUEUE_FULL 0x09 132 #define ATT_ERR_ATTR_NOT_FOUND 0x0a 133 #define ATT_ERR_ATTR_NOT_LONG 0x0b 134 #define ATT_ERR_INSUFFICIENT_KEY_SIZE 0x0c 135 #define ATT_ERR_INVALID_VALUE_SIZE 0x0d 136 #define ATT_ERR_UNLIKELY 0x0e 137 #define ATT_ERR_INSUFFICIENT_ENCRYPT 0x0f 138 #define ATT_ERR_UNSUPPORTED_GRP_TYPE 0x10 139 #define ATT_ERR_INSUFFICIENT_RESOURCES 0x11 145 #define ATT_ERR_INVALID_VALUE 0x80 153 #define ATT_HANDLE_BT_UUID_TYPE 0x01 156 #define ATT_HANDLE_UUID_TYPE 0x02 162 #define ATT_MIN_NUM_HANDLES 2 168 #define ATT_CANCEL_PREPARED_WRITES 0x00 171 #define ATT_WRITE_PREPARED_VALUES 0x01 173 #if defined ( TESTMODES ) 175 #define ATT_TESTMODE_OFF 0 // Test mode off 176 #define ATT_TESTMODE_UNAUTHEN_SIG 1 // Do not authenticate incoming signature 177 #define ATT_TESTMODE_SEND_UNS_REQ 2 // Send ATT request with unsupported opcode 178 #define ATT_TESTMODE_SEND_UNS_CMD 3 // Send ATT command with unsupported opcode 186 #define ATT_OPCODE_SIZE 1 189 #define ATT_EXCHANGE_MTU_REQ_SIZE 2 192 #define ATT_EXCHANGE_MTU_RSP_SIZE 2 195 #define ATT_ERROR_RSP_SIZE 4 198 #define ATT_FIND_INFO_REQ_FIXED_SIZE 4 201 #define ATT_FIND_INFO_RSP_FIXED_SIZE 1 202 #define ATT_FIND_INFO_RSP_HDR_SIZE ( ATT_OPCODE_SIZE + ATT_FIND_INFO_RSP_FIXED_SIZE ) 205 #define ATT_FIND_BY_TYPE_VALUE_REQ_FIXED_SIZE 6 206 #define ATT_FIND_BY_TYPE_VALUE_REQ_HDR_SIZE ( ATT_OPCODE_SIZE + ATT_FIND_BY_TYPE_VALUE_REQ_FIXED_SIZE ) 209 #define ATT_READ_BY_TYPE_REQ_FIXED_SIZE 4 210 #define ATT_READ_BY_TYPE_REQ_HDR_SIZE ( ATT_OPCODE_SIZE + ATT_READ_BY_TYPE_REQ_FIXED_SIZE ) 213 #define ATT_READ_BY_TYPE_RSP_FIXED_SIZE 1 214 #define ATT_READ_BY_TYPE_RSP_HDR_SIZE ( ATT_OPCODE_SIZE + ATT_READ_BY_TYPE_RSP_FIXED_SIZE ) 217 #define ATT_READ_REQ_SIZE 2 220 #define ATT_READ_BY_GRP_TYPE_RSP_FIXED_SIZE 1 221 #define ATT_READ_BY_GRP_TYPE_RSP_HDR_SIZE ( ATT_OPCODE_SIZE + ATT_READ_BY_GRP_TYPE_RSP_FIXED_SIZE ) 224 #define ATT_WRITE_REQ_FIXED_SIZE 2 227 #define ATT_READ_BLOB_REQ_SIZE 4 230 #define ATT_WRITE_REQ_FIXED_SIZE 2 231 #define ATT_WRITE_REQ_HDR_SIZE ( ATT_OPCODE_SIZE + ATT_WRITE_REQ_FIXED_SIZE ) 234 #define ATT_PREPARE_WRITE_REQ_FIXED_SIZE 4 235 #define ATT_PREPARE_WRITE_REQ_HDR_SIZE ( ATT_OPCODE_SIZE + ATT_PREPARE_WRITE_REQ_FIXED_SIZE ) 238 #define ATT_PREPARE_WRITE_RSP_FIXED_SIZE 4 241 #define ATT_EXECUTE_WRITE_REQ_SIZE 1 244 #define ATT_HANDLE_VALUE_IND_FIXED_SIZE 2 245 #define ATT_HANDLE_VALUE_IND_HDR_SIZE ( ATT_OPCODE_SIZE + ATT_HANDLE_VALUE_IND_FIXED_SIZE ) 248 #define ATT_AUTHEN_SIG_LEN 12 254 extern CONST uint8 btBaseUUID[ATT_UUID_SIZE];
260 #define ATT_WRITE_COMMAND( method, cmd ) ( ( (method) == ATT_WRITE_REQ ) && ( (cmd) == TRUE ) ) 266 #define ATT_BT_PAIR_HANDLE_IDX( i ) ( (i) * (2 + ATT_BT_UUID_SIZE) ) 267 #define ATT_BT_PAIR_UUID_IDX( i ) ( ATT_BT_PAIR_HANDLE_IDX( (i) ) + 2 ) 269 #define ATT_BT_PAIR_HANDLE( info, i ) ( BUILD_UINT16( (info)[ATT_BT_PAIR_HANDLE_IDX((i))], \ 270 (info)[ATT_BT_PAIR_HANDLE_IDX((i))+1] ) ) 271 #define ATT_BT_PAIR_UUID( info, i ) ( BUILD_UINT16( (info)[ATT_BT_PAIR_UUID_IDX((i))], \ 272 (info)[ATT_BT_PAIR_UUID_IDX((i))+1] ) ) 275 #define ATT_PAIR_HANDLE_IDX( i ) ( (i) * (2 + ATT_UUID_SIZE) ) 276 #define ATT_PAIR_UUID_IDX( i ) ( ATT_PAIR_HANDLE_IDX( (i) ) + 2 ) 278 #define ATT_PAIR_HANDLE( info, i ) ( BUILD_UINT16( (info)[ATT_PAIR_HANDLE_IDX((i))], \ 279 (info)[ATT_PAIR_HANDLE_IDX((i))+1] ) ) 285 #define ATT_ATTR_HANDLE_IDX( i ) ( (i) * (2 + 2) ) 286 #define ATT_GRP_END_HANDLE_IDX( i ) ( ATT_ATTR_HANDLE_IDX( (i) ) + 2 ) 288 #define ATT_ATTR_HANDLE( info, i ) ( BUILD_UINT16( (info)[ATT_ATTR_HANDLE_IDX((i))], \ 289 (info)[ATT_ATTR_HANDLE_IDX((i))+1] ) ) 290 #define ATT_GRP_END_HANDLE( info, i ) ( BUILD_UINT16( (info)[ATT_GRP_END_HANDLE_IDX((i))], \ 291 (info)[ATT_GRP_END_HANDLE_IDX((i))+1] ) ) 297 #define ATT_HANDLE_IDX( i ) ( (i) * 2 ) 299 #define ATT_HANDLE( handles, i ) ( BUILD_UINT16( (handles)[ATT_HANDLE_IDX((i))], \ 300 (handles)[ATT_HANDLE_IDX((i))+1] ) ) 324 uint8 uuid[ATT_UUID_SIZE];
333 uint8 uuid[ATT_BT_UUID_SIZE];
377 uint8 uuid[ATT_BT_UUID_SIZE];
386 uint8 uuid[ATT_UUID_SIZE];
662 typedef void (*attNotifyTxCB_t)( uint16 connHandle, uint8 opcode );
684 extern uint8 ATT_CompareUUID(
const uint8 *pUUID1, uint16 len1,
685 const uint8 *pUUID2, uint16 len2 );
689 extern uint8 ATT_ConvertUUIDto128(
const uint8 *pUUID16, uint8 *pUUID128 );
694 extern uint8 ATT_ConvertUUIDto16(
const uint8 *pUUID128, uint8 *pUUID16 );
704 extern uint16 ATT_BuildErrorRsp( uint8 *pBuf, uint8 *pMsg );
709 extern bStatus_t ATT_ParseErrorRsp( uint8 *pParams, uint16 len,
attMsg_t *pMsg );
714 extern uint16 ATT_BuildExchangeMTUReq( uint8 *pBuf, uint8 *pMsg );
719 extern uint16 ATT_BuildExchangeMTURsp( uint8 *pBuf, uint8 *pMsg );
724 extern bStatus_t ATT_ParseExchangeMTURsp( uint8 *pParams, uint16 len,
attMsg_t *pMsg );
729 extern uint16 ATT_BuildFindInfoReq( uint8 *pBuf, uint8 *pMsg );
734 extern bStatus_t ATT_ParseFindInfoRsp( uint8 *pParams, uint16 len,
attMsg_t *pMsg );
739 extern uint16 ATT_BuildFindInfoRsp( uint8 *pBuf, uint8 *pMsg );
744 extern uint16 ATT_BuildFindByTypeValueReq( uint8 *pBuf, uint8 *pMsg );
749 extern uint16 ATT_BuildFindByTypeValueRsp( uint8 *pBuf, uint8 *pMsg );
754 extern bStatus_t ATT_ParseFindByTypeValueRsp( uint8 *pParams, uint16 len,
attMsg_t *pMsg );
759 extern uint16 ATT_BuildReadByTypeReq( uint8 *pBuf, uint8 *pMsg );
764 extern uint16 ATT_BuildReadByTypeRsp( uint8 *pBuf, uint8 *pMsg );
769 extern bStatus_t ATT_ParseReadByTypeRsp( uint8 *pParams, uint16 len,
attMsg_t *pMsg );
774 extern uint16 ATT_BuildReadReq( uint8 *pBuf, uint8 *pMsg );
779 extern uint16 ATT_BuildReadRsp( uint8 *pBuf, uint8 *pMsg );
789 extern uint16 ATT_BuildReadBlobReq( uint8 *pBuf, uint8 *pMsg );
794 extern uint16 ATT_BuildReadBlobRsp( uint8 *pBuf, uint8 *pMsg );
799 extern bStatus_t ATT_ParseReadBlobRsp( uint8 *pParams, uint16 len,
attMsg_t *pMsg );
804 extern uint16 ATT_BuildReadMultiReq( uint8 *pBuf, uint8 *pMsg );
809 extern uint16 ATT_BuildReadMultiRsp( uint8 *pBuf, uint8 *pMsg );
814 extern bStatus_t ATT_ParseReadMultiRsp( uint8 *pParams, uint16 len,
attMsg_t *pMsg );
819 extern uint16 ATT_BuildReadByGrpTypeRsp( uint8 *pBuf, uint8 *pMsg );
824 extern bStatus_t ATT_ParseReadByGrpTypeRsp( uint8 *pParams, uint16 len,
attMsg_t *pMsg );
829 extern uint16 ATT_BuildWriteReq( uint8 *pBuf, uint8 *pMsg );
834 extern bStatus_t ATT_ParseWriteRsp( uint8 *pParams, uint16 len,
attMsg_t *pMsg );
839 extern uint16 ATT_BuildPrepareWriteReq( uint8 *pBuf, uint8 *pMsg );
844 extern uint16 ATT_BuildPrepareWriteRsp( uint8 *pBuf, uint8 *pMsg );
849 extern bStatus_t ATT_ParsePrepareWriteRsp( uint8 *pParams, uint16 len,
attMsg_t *pMsg );
854 extern uint16 ATT_BuildExecuteWriteReq( uint8 *pBuf, uint8 *pMsg );
859 extern bStatus_t ATT_ParseExecuteWriteRsp( uint8 *pParams, uint16 len,
attMsg_t *pMsg );
864 extern uint16 ATT_BuildHandleValueInd( uint8 *pBuf, uint8 *pMsg );
869 extern bStatus_t ATT_ParseHandleValueInd( uint8 sig, uint8 cmd, uint8 *pParams, uint16 len,
attMsg_t *pMsg );
879 extern bStatus_t ATT_ParseExchangeMTUReq( uint8 sig, uint8 cmd, uint8 *pParams, uint16 len,
attMsg_t *pMsg );
884 extern bStatus_t ATT_ParseFindInfoReq( uint8 sig, uint8 cmd, uint8 *pParams, uint16 len,
attMsg_t *pMsg );
889 extern bStatus_t ATT_ParseFindByTypeValueReq( uint8 sig, uint8 cmd, uint8 *pParams, uint16 len,
attMsg_t *pMsg );
894 extern bStatus_t ATT_ParseReadByTypeReq( uint8 sig, uint8 cmd, uint8 *pParams, uint16 len,
attMsg_t *pMsg );
899 extern bStatus_t ATT_ParseReadReq( uint8 sig, uint8 cmd, uint8 *pParams, uint16 len,
attMsg_t *pMsg );
904 extern bStatus_t ATT_ParseReadBlobReq( uint8 sig, uint8 cmd, uint8 *pParams, uint16 len,
attMsg_t *pMsg );
909 extern bStatus_t ATT_ParseReadMultiReq( uint8 sig, uint8 cmd, uint8 *pParams, uint16 len,
attMsg_t *pMsg );
914 extern bStatus_t ATT_ParseWriteReq( uint8 sig, uint8 cmd, uint8 *pParams, uint16 len,
attMsg_t *pMsg );
919 extern bStatus_t ATT_ParseExecuteWriteReq( uint8 sig, uint8 cmd, uint8 *pParams, uint16 len,
attMsg_t *pMsg );
924 extern bStatus_t ATT_ParsePrepareWriteReq( uint8 sig, uint8 cmd, uint8 *pParams, uint16 len,
attMsg_t *pMsg );
929 extern bStatus_t ATT_ParseHandleValueCfm( uint8 *pParams, uint16 len,
attMsg_t *pMsg );
1341 extern uint8
ATT_UpdateMTU( uint16 connHandle, uint16 MTU );
1350 extern uint16
ATT_GetMTU( uint16 connHandle );
1364 extern void ATT_SetParamValue( uint16 value );
1373 extern uint16 ATT_GetParamValue(
void );
1382 extern void ATT_RegisterServer( attNotifyTxCB_t pfnNotifyTx );
1391 extern void ATT_RegisterClient( attNotifyTxCB_t pfnNotifyTx );
bStatus_t ATT_ExchangeMTUReq(uint16 connHandle, attExchangeMTUReq_t *pReq)
Send Exchange MTU Request.
bStatus_t ATT_ErrorRsp(uint16 connHandle, attErrorRsp_t *pRsp)
Send Error Response.
uint16 numInfo
Number of attribute handle-UUID pairs found.
Definition: att.h:394
uint8 * pValue
Part of the value of the attribute with the handle given (0 to ATT_MTU_SIZE-1)
Definition: att.h:482
bStatus_t ATT_ReadRsp(uint16 connHandle, attReadRsp_t *pRsp)
Send Read Response.
uint16 handle
Handle.
Definition: att.h:376
uint16 clientRxMTU
Client receive MTU size.
Definition: att.h:351
uint8 cmd
Command Flag.
Definition: att.h:532
attHandleValueInd_t handleValueInd
ATT Handle Value Indication.
Definition: att.h:654
attReadByGrpTypeRsp_t readByGrpTypeRsp
ATT Read By Group Type Response.
Definition: att.h:649
bStatus_t ATT_ReadMultiReq(uint16 connHandle, attReadMultiReq_t *pReq)
Send Read Multiple Request.
uint8 cmd
Command Flag.
Definition: att.h:312
uint16 handle
Found attribute handle.
Definition: att.h:416
bStatus_t ATT_ReadByTypeRsp(uint16 connHandle, attReadByTypeRsp_t *pRsp)
Send Read By Type Respond.
bStatus_t ATT_HandleValueCfm(uint16 connHandle)
Send Handle Value Confirmation.
uint16 offset
Offset of the first octet to be written.
Definition: att.h:552
uint16 startHandle
First requested handle number (must be first field)
Definition: att.h:367
attReadByTypeRsp_t readByTypeRsp
ATT Read By Type Response.
Definition: att.h:645
bStatus_t ATT_ExecuteWriteRsp(uint16 connHandle)
Send Execute Write Response.
uint16 numPairs
Number of attribute handle-UUID pairs found.
Definition: att.h:444
uint16 len
Length of value.
Definition: att.h:582
uint8 len
Length of UUID (2)
Definition: att.h:332
uint16 endHandle
Last requested handle number.
Definition: att.h:368
attFindByTypeValueRsp_t findByTypeValueRsp
ATT Find By Type Value Response.
Definition: att.h:644
uint8 ATT_UpdateMTU(uint16 connHandle, uint16 MTU)
This function is used to update the MTU size of a connection.
uint16 endHandle
Last requested handle number.
Definition: att.h:435
uint8 * pInfo
Information data whose format is determined by format field (4 to ATT_MTU_SIZE-2) ...
Definition: att.h:396
bStatus_t ATT_PrepareWriteRsp(uint16 connHandle, attPrepareWriteRsp_t *pRsp)
Send Prepare Write Response.
attReadBlobReq_t readBlobReq
ATT Read Blob Request.
Definition: att.h:633
bStatus_t ATT_ReadBlobReq(uint16 connHandle, attReadBlobReq_t *pReq)
Send Read Blob Request.
uint8 format
Format of information data.
Definition: att.h:395
uint8 sig
Authentication Signature status (not included (0), valid (1), invalid (2))
Definition: att.h:531
uint16 len
Length of each attribute handle, end group handle and value set.
Definition: att.h:519
uint8 * pValue
Current value of the attribute (0 to ATT_MTU_SIZE-3)
Definition: att.h:573
bStatus_t ATT_ReadReq(uint16 connHandle, attReadReq_t *pReq)
Send Read Request.
bStatus_t ATT_PrepareWriteReq(uint16 connHandle, attPrepareWriteReq_t *pReq)
Send Prepare Write Request.
bStatus_t ATT_FindByTypeValueRsp(uint16 connHandle, attFindByTypeValueRsp_t *pRsp)
Send Find By Type Value Response.
attReadMultiRsp_t readMultiRsp
ATT Read Multiple Response.
Definition: att.h:648
attHandleValueNoti_t handleValueNoti
ATT Handle Value Notification.
Definition: att.h:653
attMtuUpdatedEvt_t mtuEvt
ATT MTU Updated Event.
Definition: att.h:658
bStatus_t ATT_FindByTypeValueReq(uint16 connHandle, attFindByTypeValueReq_t *pReq)
Send Find By Type Value Request.
bStatus_t ATT_WriteReq(uint16 connHandle, attWriteReq_t *pReq)
Send Write Request.
uint16 len
Length of value.
Definition: att.h:481
attReadByTypeReq_t readByTypeReq
ATT Read By Type Request.
Definition: att.h:631
uint8 * pParams
Attribute Parameters.
Definition: att.h:315
attFindByTypeValueReq_t findByTypeValueReq
ATT Find By Type Value Request.
Definition: att.h:630
uint16 len
Length of value.
Definition: att.h:542
attAttrBtType_t type
2-octet UUID to find
Definition: att.h:406
attErrorRsp_t errorRsp
ATT Error Response.
Definition: att.h:641
uint16 handle
Handle.
Definition: att.h:385
uint16 handle
Handle of the attribute to be written (must be first field)
Definition: att.h:528
uint16 len
Length of Attribute Parameters.
Definition: att.h:314
attReadRsp_t readRsp
ATT Read Response.
Definition: att.h:646
bStatus_t ATT_ReadByGrpTypeRsp(uint16 connHandle, attReadByGrpTypeRsp_t *pRsp)
Send Read By Group Type Respond.
bStatus_t ATT_WriteRsp(uint16 connHandle)
Send Write Response.
bStatus_t ATT_ExecuteWriteReq(uint16 connHandle, attExecuteWriteReq_t *pReq)
Send Execute Write Request.
uint16 handle
Handle of the attribute that has been changed (must be first field)
Definition: att.h:581
uint16 len
Length of value.
Definition: att.h:463
uint16 numHandles
Number of attribute handles.
Definition: att.h:491
bStatus_t ATT_ReadByTypeReq(uint16 connHandle, attReadByTypeReq_t *pReq)
Send Read By Type Request.
attPrepareWriteReq_t prepareWriteReq
ATT Prepare Write Request.
Definition: att.h:637
uint16 startHandle
First requested handle number (must be first field)
Definition: att.h:434
attExecuteWriteReq_t executeWriteReq
ATT Execute Write Request.
Definition: att.h:638
uint16 handle
Handle of the attribute that has been read.
Definition: att.h:551
uint8 * pValue
Current value of the attribute (0 to ATT_MTU_SIZE-3)
Definition: att.h:583
uint8 * pHandlesInfo
List of 1 or more handles information (4 to ATT_MTU_SIZE-1)
Definition: att.h:426
uint16 len
Length of value.
Definition: att.h:407
uint16 len
Length of values.
Definition: att.h:499
uint8 * pValue
Value of the attribute with the handle given (0 to ATT_MTU_SIZE-1)
Definition: att.h:464
attReadReq_t readReq
ATT Read Request.
Definition: att.h:632
uint16 len
Length of value.
Definition: att.h:572
attReadByGrpTypeReq_t readByGrpTypeReq
ATT Read By Group Type Request.
Definition: att.h:635
Status_t bStatus_t
BLE Generic Status return: BLE Default BLE Status Values.
Definition: bcomdef.h:244
attReadBlobRsp_t readBlobRsp
ATT Read Blob Response.
Definition: att.h:647
uint8 * pValue
Part of the value of the attribute to be written (0 to ATT_MTU_SIZE-5) - must be allocated.
Definition: att.h:543
attAttrType_t type
Requested group type (2 or 16 octet UUID)
Definition: att.h:510
uint16 startHandle
First requested handle number (must be first field)
Definition: att.h:508
uint16 len
Length of value.
Definition: att.h:529
uint16 offset
Offset of the first octet to be read.
Definition: att.h:473
uint8 * pDataList
List of 1 or more attribute handle, end group handle and value (4 to ATT_MTU_SIZE-2) ...
Definition: att.h:520
uint8 len
Length of UUID (2 or 16)
Definition: att.h:323
uint8 * pValue
Part of the value of the attribute to be written (0 to ATT_MTU_SIZE-5)
Definition: att.h:554
uint16 handle
Handle of the attribute to be read (must be first field)
Definition: att.h:472
uint16 numGrps
Number of attribute handle, end group handle and value sets found.
Definition: att.h:518
bStatus_t ATT_ReadMultiRsp(uint16 connHandle, attReadMultiRsp_t *pRsp)
Send Read Multiple Response.
uint16 handle
Handle of the attribute that has been changed (must be first field)
Definition: att.h:571
bStatus_t ATT_FindInfoReq(uint16 connHandle, attFindInfoReq_t *pReq)
Send Find Information Request.
uint8 sig
Authentication Signature status (not included (0), valid (1), invalid (2))
Definition: att.h:311
uint8 pendingOpcode
opcode of pending message
Definition: att.h:604
uint16 numInfo
Number of handles information found.
Definition: att.h:425
uint16 handle
Handle of the attribute to be read (must be first field)
Definition: att.h:455
uint8 * pValue
Value of the attribute to be written (0 to ATT_MTU_SIZE-3)
Definition: att.h:530
uint16 dataLen
Length of data written into pDataList. Not part of actual ATT Response.
Definition: att.h:447
bStatus_t ATT_FindInfoRsp(uint16 connHandle, attFindInfoRsp_t *pRsp)
Send Find Information Response.
attWriteReq_t writeReq
ATT Write Request.
Definition: att.h:636
attFlowCtrlViolatedEvt_t flowCtrlEvt
ATT Flow Control Violated Event.
Definition: att.h:657
attPrepareWriteRsp_t prepareWriteRsp
ATT Prepare Write Response.
Definition: att.h:650
uint8 flags
Definition: att.h:562
uint8 method
Method.
Definition: att.h:313
uint16 serverRxMTU
Server receive MTU size.
Definition: att.h:359
uint16 ATT_GetMTU(uint16 connHandle)
This function is used to get the MTU size of a connection.
uint16 offset
Offset of the first octet to be written.
Definition: att.h:541
attFindInfoRsp_t findInfoRsp
ATT Find Information Response.
Definition: att.h:643
attAttrType_t type
Requested type (2 or 16 octet UUID)
Definition: att.h:436
attReadMultiReq_t readMultiReq
ATT Read Multiple Request.
Definition: att.h:634
uint16 endHandle
Last requested handle number.
Definition: att.h:405
uint8 opcode
opcode of message that caused flow control violation
Definition: att.h:603
uint8 reqOpcode
Request that generated this error response.
Definition: att.h:341
uint16 handle
Handle of the attribute to be written (must be first field)
Definition: att.h:540
bStatus_t ATT_HandleValueInd(uint16 connHandle, attHandleValueInd_t *pInd)
Send Handle Value Indication.
bStatus_t ATT_ReadBlobRsp(uint16 connHandle, attReadBlobRsp_t *pRsp)
Send Read Blob Response.
uint16 len
Length of value.
Definition: att.h:553
uint8 errCode
Reason why the request has generated error response.
Definition: att.h:343
uint16 startHandle
First requested handle number (must be first field)
Definition: att.h:404
uint8 * pDataList
List of 1 or more attribute handle-value pairs (2 to ATT_MTU_SIZE-2)
Definition: att.h:446
uint16 endHandle
Last requested handle number.
Definition: att.h:509
uint8 * pValues
Set of two or more values (0 to ATT_MTU_SIZE-1)
Definition: att.h:500
uint16 grpEndHandle
Group end handle.
Definition: att.h:417
uint16 MTU
new MTU size
Definition: att.h:617
bStatus_t ATT_HandleValueNoti(uint16 connHandle, attHandleValueNoti_t *pNoti)
Send Handle Value Notification.
attExchangeMTURsp_t exchangeMTURsp
ATT Exchange MTU Response.
Definition: att.h:642
uint16 handle
Attribute handle that generated error response.
Definition: att.h:342
uint8 * pHandles
Set of two or more attribute handles (4 to ATT_MTU_SIZE-1) - must be first field. ...
Definition: att.h:490
bStatus_t ATT_ExchangeMTURsp(uint16 connHandle, attExchangeMTURsp_t *pRsp)
Send Exchange MTU Response.
uint8 * pValue
Attribute value to find (0 to ATT_MTU_SIZE-7)
Definition: att.h:408
bStatus_t ATT_ReadByGrpTypeReq(uint16 connHandle, attReadByGrpTypeReq_t *pReq)
Send Read By Group Type Request.
attFindInfoReq_t findInfoReq
ATT Find Information Request.
Definition: att.h:629
attExchangeMTUReq_t exchangeMTUReq
ATT Exchange MTU Request.
Definition: att.h:628
uint16 len
Size of each attribute handle-value pair.
Definition: att.h:445