37 #include "hal_types.h" 53 #define SNP_IMAGE_START 0x00000000 59 #define SNP_NPI_ASYNC_CMD_TYPE (RPC_SYS_BLE_SNP+(NPI_MSG_TYPE_ASYNC<<5)) 61 #define SNP_NPI_SYNC_REQ_TYPE (RPC_SYS_BLE_SNP+(NPI_MSG_TYPE_SYNCREQ<<5)) 63 #define SNP_NPI_SYNC_RSP_TYPE (RPC_SYS_BLE_SNP+(NPI_MSG_TYPE_SYNCRSP<<5)) 83 #define SNP_MASK_EVT_REQ 0x02 84 #define SNP_GET_REVISION_REQ 0x03 85 #define SNP_HCI_CMD_REQ 0x04 86 #define SNP_GET_STATUS_REQ 0x06 87 #define SNP_GET_RAND_REQ 0x07 88 #define SNP_TEST_REQ 0x10 95 #define SNP_POWER_UP_IND 0x01 96 #define SNP_MASK_EVENT_RSP 0x02 97 #define SNP_GET_REVISION_RSP 0x03 98 #define SNP_HCI_CMD_RSP 0x04 99 #define SNP_EVENT_IND 0x05 100 #define SNP_GET_STATUS_RSP 0x06 101 #define SNP_SYNC_ERROR_CMD_IND 0x07 102 #define SNP_GET_RAND_RSP 0x08 103 #define SNP_TEST_RSP 0x10 110 #define SNP_INIT_DEVICE_REQ 0x41 111 #define SNP_START_ADV_REQ 0x42 112 #define SNP_SET_ADV_DATA_REQ 0x43 113 #define SNP_STOP_ADV_REQ 0x44 114 #define SNP_UPDATE_CONN_PARAM_REQ 0x45 115 #define SNP_TERMINATE_CONN_REQ 0x46 116 #define SNP_SET_GAP_PARAM_REQ 0x48 117 #define SNP_GET_GAP_PARAM_REQ 0x49 118 #define SNP_SET_SECURITY_PARAM_REQ 0x4A 119 #define SNP_SEND_SECURITY_REQUEST_REQ 0x4B 120 #define SNP_SET_AUTHENTICATION_DATA_REQ 0x4C 121 #define SNP_SET_WHITE_LIST_POLICY_REQ 0x4D 128 #define SNP_INIT_DEVICE_CNF 0x41 129 #define SNP_SET_ADV_DATA_CNF 0x43 130 #define SNP_UPDATE_CONN_PARAM_CNF 0x45 131 #define SNP_SET_GAP_PARAM_RSP 0x48 132 #define SNP_GET_GAP_PARAM_RSP 0x49 133 #define SNP_SET_SECURITY_PARAM_RSP 0x4A 134 #define SNP_SEND_AUTHENTICATION_DATA_RSP 0x4C 135 #define SNP_SET_WHITE_LIST_POLICY_RSP 0x4D 142 #define SNP_ADD_SERVICE_REQ 0x81 143 #define SNP_ADD_CHAR_VAL_DECL_REQ 0x82 144 #define SNP_ADD_CHAR_DESC_DECL_REQ 0x83 145 #define SNP_REGISTER_SERVICE_REQ 0x84 146 #define SNP_GET_ATTR_VALUE_REQ 0x85 147 #define SNP_SET_ATTR_VALUE_REQ 0x86 148 #define SNP_CHAR_READ_CNF 0x87 149 #define SNP_CHAR_WRITE_CNF 0x88 150 #define SNP_SEND_NOTIF_IND_REQ 0x89 151 #define SNP_CCCD_UPDATED_CNF 0x8B 152 #define SNP_SET_GATT_PARAM_REQ 0x8C 153 #define SNP_GET_GATT_PARAM_REQ 0x8D 154 #define SNP_REG_PREDEF_SRV_REQ 0x8E 161 #define SNP_ADD_SERVICE_RSP 0x81 162 #define SNP_ADD_CHAR_VAL_DECL_RSP 0x82 163 #define SNP_ADD_CHAR_DESC_DECL_RSP 0x83 164 #define SNP_REGISTER_SERVICE_RSP 0x84 165 #define SNP_GET_ATTR_VALUE_RSP 0x85 166 #define SNP_SET_ATTR_VALUE_RSP 0x86 167 #define SNP_CHAR_READ_IND 0x87 168 #define SNP_CHAR_WRITE_IND 0x88 169 #define SNP_SEND_NOTIF_IND_CNF 0x89 170 #define SNP_CCCD_UPDATED_IND 0x8B 171 #define SNP_SET_GATT_PARAM_RSP 0x8C 172 #define SNP_GET_GATT_PARAM_RSP 0x8D 173 #define SNP_REG_PREDEF_SRV_RSP 0x8E 179 #define SNP_SUCCESS 0x00 180 #define SNP_FAILURE 0x83 181 #define SNP_INVALID_PARAMS 0x84 182 #define SNP_CMD_ALREADY_IN_PROGRESS 0x85 183 #define SNP_CMD_REJECTED 0x86 184 #define SNP_OUT_OF_RESOURCES 0x87 185 #define SNP_UNKNOWN_ATTRIBUTE 0x88 186 #define SNP_UNKNOWN_SERVICE 0x89 187 #define SNP_ALREADY_ADVERTISING 0x8A 188 #define SNP_NOT_ADVERTISING 0x8B 189 #define SNP_HCI_RSP_COLLISION_RSP 0x8C 190 #define SNP_HCI_CMD_UNKNOWN 0x8D 191 #define SNP_GATT_COLLISION 0x8E 192 #define SNP_NOTIF_IND_NOT_ENABLE_BY_CLIENT 0x8F 193 #define SNP_NOTIF_IND_NOT_ALLOWED 0x90 194 #define SNP_NOTIF_IND_NO_CCCD_ATTRIBUTE 0x91 195 #define SNP_NOT_CONNECTED 0x92 196 #define SNP_FAILURE_NO_ATT_RSP 0x93 204 #define SNP_CONN_EST_EVT 0x0001 205 #define SNP_CONN_TERM_EVT 0x0002 206 #define SNP_CONN_PARAM_UPDATED_EVT 0x0004 207 #define SNP_ADV_STARTED_EVT 0x0008 208 #define SNP_ADV_ENDED_EVT 0x0010 209 #define SNP_ATT_MTU_EVT 0x0020 210 #define SNP_SECURITY_EVT 0x0040 211 #define SNP_AUTHENTICATION_EVT 0x0080 212 #define SNP_ERROR_EVT 0x8000 216 #define SNP_DEV_ALL_EVENT_MASK (SNP_CONN_EST_EVT | SNP_CONN_TERM_EVT | \ 218 SNP_CONN_PARAM_UPDATED_EVT | SNP_ADV_STARTED_EVT | SNP_ADV_ENDED_EVT | \ 219 SNP_ATT_MTU_EVT | SNP_ERROR_EVT) 225 #define SNP_HCI_OPCODE_EXT_SET_TX_POWER 0xFC01 226 #define SNP_HCI_OPCODE_EXT_MODEM_TEST_TX 0xFC08 227 #define SNP_HCI_OPCODE_EXT_MODEM_HOP_TEST_TX 0xFC09 228 #define SNP_HCI_OPCODE_EXT_MODEM_TEST_RX 0xFC0A 229 #define SNP_HCI_OPCODE_EXT_END_MODEM_TEST 0xFC0B 230 #define SNP_HCI_OPCODE_EXT_SET_BDADDR 0xFC0C 231 #define SNP_HCI_OPCODE_EXT_SET_SCA 0xFC0D 232 #define SNP_HCI_OPCODE_EXT_ENABLE_PTM 0xFC0E 233 #define SNP_HCI_OPCODE_EXT_SET_MAX_DTM_TX_POWER 0xFC11 234 #define SNP_HCI_OPCODE_EXT_RESET_SYSTEM 0xFC1D 235 #define SNP_HCI_OPCODE_READ_BDADDR 0x1009 236 #define SNP_HCI_OPCODE_READ_RSSI 0x1405 237 #define SNP_HCI_OPCODE_LE_RECEIVER_TEST 0x201D 238 #define SNP_HCI_OPCODE_LE_TRANSMITTER_TEST 0x201E 239 #define SNP_HCI_OPCODE_LE_TEST_END 0x201F 240 #define SNP_HCI_OPCODE_EXT_PER 0xFC14 241 #define SNP_HCI_OPCODE_EXT_DECRYPT 0xFC05 242 #define SNP_HCI_OPCODE_LE_ENCRYPT 0x2017 243 #define SNP_HCI_OPCODE_EXT_OVERRIDE_SL 0xFC1A 244 #define SNP_HCI_OPCODE_EXT_SET_FAST_TX_RESP_TIME 0xFC07 245 #define SNP_HCI_OPCODE_EXT_ONE_PKT_PER_EVT 0xFC02 246 #define SNP_HCI_OPCODE_EXT_GET_CONNECTION_INFO 0xFC20 251 #define SNP_HCI_OPCODE_SIZE 0x02 259 #define SNP_ADV_TYPE_CONN 0x00 260 #define SNP_ADV_TYPE_SCANABLE 0x02 261 #define SNP_ADV_TYPE_NONCONN 0x03 269 #define SNP_FILTER_POLICY_ALL 0x00 270 #define SNP_FILTER_POLICY_WHITE 0x03 278 #define SNP_ADV_STOP_ON_CONN 0x00 280 #define SNP_ADV_RESTART_ON_CONN_EST 0x01 283 #define SNP_ADV_RESTART_ON_CONN_TERM 0x02 293 #define SNP_SCANRSP_DATA 0x00 // Scan response data 295 #define SNP_NONCONN_ADV_DATA 0x01 // Non-connectable advertising data. 297 #define SNP_CONN_ADV_DATA 0x02 // Connectable advertising data. 303 #define SNP_MAX_ADVDATA_LENGTH 31 310 #define SNP_CT_SUPERVISOR_TO 0x08 311 #define SNP_CT_PEER_REQ 0x13 312 #define SNP_CT_HOST_REQ 0x16 313 #define SNP_CT_CTRL_PKT_TO 0x22 314 #define SNP_CT_CTRL_PKT_INST_PASS 0x28 315 #define SNP_CT_LSTO_VIOLATION 0x3B 316 #define SNP_CT_MIC_FAILURE 0x3D 322 #define SNP_CONN_INT_MIN 0x0006 324 #define SNP_CONN_INT_MAX 0x0C80 326 #define SNP_CONN_SL_MIN 0x0000 328 #define SNP_CONN_SL_MAX 0x01F3 330 #define SNP_CONN_SUPERVISOR_TIMEOUT_MIN 0x000A 332 #define SNP_CONN_SUPERVISOR_TIMEOUT_MAX 0x0C80 337 #define SNP_PRIMARY_SERVICE 1 339 #define SNP_SECONDARY_SERVICE 2 343 #define SNP_CHAR_MANAGED_BY_AP 0x00 344 #define SNP_CHAR_MANAGED_BY_NP 0x01 349 #define SNP_16BIT_UUID_SIZE 2 350 #define SNP_128BIT_UUID_SIZE 16 356 #define SNP_GATT_PERMIT_READ 0x01 359 #define SNP_GATT_PERMIT_WRITE 0x02 361 #define SNP_GATT_PERMIT_AUTHEN_READ 0x04 363 #define SNP_GATT_PERMIT_AUTHEN_WRITE 0x08 365 #define SNP_GATT_PERMIT_ENCRYPT_READ 0x40 367 #define SNP_GATT_PERMIT_ENCRYPT_WRITE 0x80 372 #define SNP_GATT_PERM_RFU_MASK (SNP_GATT_PERMIT_READ | \ 374 SNP_GATT_PERMIT_WRITE | \ 375 SNP_GATT_PERMIT_AUTHEN_READ | \ 376 SNP_GATT_PERMIT_AUTHEN_WRITE | \ 377 SNP_GATT_PERMIT_ENCRYPT_READ | \ 378 SNP_GATT_PERMIT_ENCRYPT_WRITE) 383 #define SNP_GATT_PROP_READ 0x0002 384 #define SNP_GATT_PROP_WRITE_NORSP 0x0004 385 #define SNP_GATT_PROP_WRITE 0x0008 386 #define SNP_GATT_PROP_NOTIFICATION 0x0010 387 #define SNP_GATT_PROP_INDICATION 0x0020 390 #define SNP_GATT_CHAR_MAX_LENGTH 512 396 #define SNP_SEND_NOTIFICATION 0x01 398 #define SNP_SEND_INDICATION 0x02 406 #define SNP_GGS_SERV_ID 0x01 407 #define SNP_DIS_SERV_ID 0x02 413 #define SNP_DEVINFO_SYSTEM_ID 0 414 #define SNP_DEVINFO_MODEL_NUMBER 1 415 #define SNP_DEVINFO_SERIAL_NUMBER 2 416 #define SNP_DEVINFO_FIRMWARE_REV 3 417 #define SNP_DEVINFO_HARDWARE_REV 4 418 #define SNP_DEVINFO_SOFTWARE_REV 5 419 #define SNP_DEVINFO_MANUFACTURER_NAME 6 420 #define SNP_DEVINFO_11073_CERT_DATA 7 421 #define SNP_DEVINFO_PNP_ID 8 423 #define SNP_DEVINFO_SYSTEM_ID_LEN 8 427 #define SNP_DEVINFO_PNP_ID_LEN 7 431 #define SNP_DEVINFO_STRING_LEN 21 437 #define SNP_GGS_DEVICE_NAME_ATT 0 438 #define SNP_GGS_APPEARANCE_ATT 1 439 #define SNP_GGS_PERI_PRIVACY_FLAG_ATT 2 440 #define SNP_GGS_RECONNCT_ADDR_ATT 3 441 #define SNP_GGS_PERI_CONN_PARAM_ATT 4 442 #define SNP_GGS_PERI_PRIVACY_FLAG_PROPS 5 443 #define SNP_GGS_W_PERMIT_DEVICE_NAME_ATT 6 444 #define SNP_GGS_W_PERMIT_APPEARANCE_ATT 7 445 #define SNP_GGS_W_PERMIT_PRIVACY_FLAG_ATT 8 447 #define SNP_GAP_DEVICE_NAME_LEN 21 451 #define SNP_GAP_PRIVACY_DISABLED 0x00 452 #define SNP_GAP_PRIVACY_ENABLED 0x01 459 #define SNP_DESC_HEADER_GEN_SHORT_UUID 0x01 460 #define SNP_DESC_HEADER_GEN_LONG_UUID 0x02 461 #define SNP_DESC_HEADER_CCCD 0x04 462 #define SNP_DESC_HEADER_FORMAT 0x08 463 #define SNP_DESC_HEADER_USER_DESC 0x80 464 #define SNP_DESC_HEADER_UNSUPPORTED_MASK 0x70 467 #define SNP_GATT_CLIENT_CFG_NOTIFY 0x0001 468 #define SNP_GATT_CLIENT_CFG_INDICATE 0x0002 473 #define SNP_RESPONSE_NOT_NEEDED 0x00 474 #define SNP_RESPONSE_NEEDED 0x01 477 #define SNP_INVALID_HANDLE 0x0000 483 #define SNP_GAP_TERM_CONN_DEFAULT 0x00 484 #define SNP_GAP_TERM_CONN_IMMEDIATLY 0x01 490 #define SNP_GAPBOND_PAIRING_MODE 0x00 491 #define SNP_GAPBOND_IO_CAPABILITIES 0x01 492 #define SNP_GAPBOND_BONDING_ENABLED 0x02 493 #define SNP_GAPBOND_ERASE_ALLBONDS 0x03 494 #define SNP_GAPBOND_LRU_BOND_REPLACEMENT 0x04 500 #define SNP_GAPBOND_PAIRING_STATE_COMPLETE 0x01 501 #define SNP_GAPBOND_PAIRING_STATE_BONDED 0x02 502 #define SNP_GAPBOND_PAIRING_STATE_BOND_SAVED 0x03 523 PACKED_TYPEDEF_STRUCT
537 PACKED_TYPEDEF_STRUCT
551 PACKED_TYPEDEF_STRUCT
565 PACKED_TYPEDEF_STRUCT
584 PACKED_TYPEDEF_STRUCT
603 PACKED_TYPEDEF_STRUCT
607 uint8_t stackBuildVer[10];
617 PACKED_TYPEDEF_STRUCT
627 PACKED_TYPEDEF_STRUCT
653 PACKED_TYPEDEF_STRUCT
660 uint8_t filterPolicy;
664 uint8_t initiatorAddress[6];
678 PACKED_TYPEDEF_STRUCT
693 PACKED_TYPEDEF_STRUCT
706 PACKED_TYPEDEF_STRUCT
710 uint16_t intervalMax;
716 uint16_t slaveLatency;
722 uint16_t supervisionTimeout;
741 PACKED_TYPEDEF_STRUCT
780 PACKED_TYPEDEF_STRUCT
795 PACKED_TYPEDEF_STRUCT
813 PACKED_TYPEDEF_STRUCT
827 PACKED_TYPEDEF_STRUCT
857 PACKED_TYPEDEF_STRUCT
879 PACKED_TYPEDEF_STRUCT
899 PACKED_TYPEDEF_STRUCT
913 PACKED_TYPEDEF_STRUCT
931 PACKED_TYPEDEF_STRUCT
948 PACKED_TYPEDEF_STRUCT
966 PACKED_TYPEDEF_STRUCT
995 PACKED_TYPEDEF_STRUCT
1015 PACKED_TYPEDEF_STRUCT
1019 uint16_t handles[6];
1032 PACKED_TYPEDEF_STRUCT
1046 PACKED_TYPEDEF_STRUCT
1061 PACKED_TYPEDEF_STRUCT
1080 PACKED_TYPEDEF_STRUCT
1109 PACKED_TYPEDEF_STRUCT
1120 PACKED_TYPEDEF_STRUCT
1197 PACKED_TYPEDEF_STRUCT
1219 PACKED_TYPEDEF_STRUCT
1235 PACKED_TYPEDEF_STRUCT
1248 PACKED_TYPEDEF_STRUCT
1261 PACKED_TYPEDEF_STRUCT
1273 PACKED_TYPEDEF_STRUCT
1287 PACKED_TYPEDEF_STRUCT
1302 PACKED_TYPEDEF_STRUCT
1317 PACKED_TYPEDEF_STRUCT
1413 PACKED_TYPEDEF_STRUCT
1432 PACKED_TYPEDEF_STRUCT
1447 PACKED_TYPEDEF_STRUCT
1464 PACKED_TYPEDEF_STRUCT
1478 PACKED_TYPEDEF_STRUCT
1493 PACKED_TYPEDEF_STRUCT
1508 PACKED_TYPEDEF_STRUCT
1523 PACKED_TYPEDEF_STRUCT
1553 PACKED_TYPEDEF_STRUCT
1586 #define SNP_CMD1_HDR_MASK 0xC0 1590 #define SNP_CMD1_HDR_POS 0x6 1593 #define SNP_GET_OPCODE_HDR_CMD1(cmd) (((cmd) & SNP_CMD1_HDR_MASK) >> SNP_CMD1_HDR_POS) 1596 #define SNP_CMD1_ID_MASK 0x3F 1599 #define SNP_GET_OPCODE_ID_CMD1(cmd) ((cmd) & SNP_CMD1_ID_MASK) Parameter Structure for the ATT MTU size updated Event data.
Definition: snp.h:1508
uint16_t offset
2 Byte Offset of the characteristic to start writing to
Definition: snp.h:1085
uint8_t addressType
1 Byte Type of initiator address
Definition: snp.h:1419
Parameter Structure for the Error Event SNP_ERROR_EVT.
Definition: snp.h:1493
uint8_t perms
1 Byte Permissions of the attribute, see GATT Attribute Access Permissions Bit Fields, force to Read only
Definition: snp.h:950
uint16_t intervalMax
2 Byte
Definition: snp.h:1571
uint8_t status
1 Byte Status of the request list of status generated by the SNP.
Definition: snp.h:1496
Parameter Structure for SNP_updateConnParam.
Definition: snp.h:706
uint8_t perms
1 Byte Permissions of the attribute, see GATT Attribute Access Permissions Bit Fields, force to Read only
Definition: snp.h:968
Parameter Structure for the Security Event.
Definition: snp.h:1478
Parameter Structure for SNP_CHAR_READ_IND / @ ref SNP_charRead.
Definition: snp.h:1046
snpEventParam_t * pEvtParams
snpEventParam_t
Definition: snp.h:1556
snpGetRevisionRsp_t revisionRsp
Get revision Response.
Definition: snp.h:1333
uint16_t connInterval
2 Byte
Definition: snp.h:1450
Parameter Structure for the Characteristic Configuration Update Indication.
Definition: snp.h:1302
uint8_t * pData
Pointer to.
Definition: snp.h:1126
uint8_t status
1 Byte Command Status (SUCCESS or Error, list of status generated by the SNP.)
Definition: snp.h:1199
snpSetGattParamRsp_t setGattParamRsp
Set GATT parameter response.
Definition: snp.h:1393
snpAddCharDescDeclRsp_t addCharDescDeclRsp
Add characteristic descriptor Response.
Definition: snp.h:1380
uint16_t timeout
2 Byte
Definition: snp.h:1573
struct snpCharWriteCnf_t snpNotifIndCnf_t
Parameter Structure for SNP_sendNotifcnf_rsp - Same Structure as snpCharWriteCnf_t.
snpGetGattParamReq_t getGattParamReq
Get GATT parameter response.
Definition: snp.h:1394
uint8_t initiatorAddrType
1 Byte Initiator Address Type, Reserved for Future Use
Definition: snp.h:663
Connection parameters for the peripheral device.
Definition: snp.h:1568
snpGetRandRsp_t randRsp
Get Random Number Response.
Definition: snp.h:1336
snpHciCmdRsp_t hciCmdRsp
HCI command response (event)
Definition: snp.h:1340
snpConnEstEvt_t connEstEvt
Parameter Structure snpConnEstEvt_t.
Definition: snp.h:1536
Parameter Structure for SNP_setGATTParam / SNP_SET_GATT_PARAM_RSP.
Definition: snp.h:1219
Parameter Structure for SNP_getGATTParam / SNP_GET_GATT_PARAM_REQ.
Definition: snp.h:1287
Parameter Structure for the Characteristic Write Request Indication data.
Definition: snp.h:1080
snpRegisterServiceRsp_t registerService
Register service Response.
Definition: snp.h:1381
snpUpdateConnParamReq_t updateConnParamsReq
Update connection parameters indication.
Definition: snp.h:1355
uint16_t startHandle
2 Byte First attribute handle of the registered service
Definition: snp.h:1035
uint16_t attrHandle
2 Byte Attribute handle of the characteristic value.
Definition: snp.h:1276
uint16_t charValMaxLen
Definition: snp.h:862
uint8_t behavior
1 Byte Behavior of Advertisement on connection event, Adv. behavior when connection are established o...
Definition: snp.h:665
snpAddAttrUserDesc_t * pUserDesc
Pointer to Parameter Structure, snpAddAttrUserDesc_t.
Definition: snp.h:1002
snpSetGapParamReq_t setGapParamReq
Set GAP parameter Request.
Definition: snp.h:1359
uint16_t maxLen
Definition: snp.h:969
Parameter Structure for SNP_UPDATE_CONN_PARAM_CNF.
Definition: snp.h:741
uint16_t opcode
2 Byte HCI opcode that was executed in the request, list of all HCI commands allowed by the SNP...
Definition: snp.h:587
Parameter Structure for SNP_setAuthenticationData / SNP_SET_AUTHENTICATION_DATA_REQ.
Definition: snp.h:813
uint8_t status
1 Byte Status of the request (SUCCESS or Error, list of status generated by the SNP.)
Definition: snp.h:1275
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1449
uint16_t connInterval
2 Byte
Definition: snp.h:1416
snpAddCharValueDeclReq_t addCharValueDecReq
Add characteristic value Request.
Definition: snp.h:1377
uint16_t charValProps
2 Byte property of the value attribute, see GATT Characteristic Properties Bit Fields ...
Definition: snp.h:860
uint16_t attrHandle
2 Byte Handle of the characteristic value attribute being read
Definition: snp.h:1065
uint8_t useWhiteList
1 Byte White List Filter Policy, Advertisement Filter Policy Type
Definition: snp.h:1319
snpSetSecParamRsp_t setSecParamRsp
Set Security Requirements response.
Definition: snp.h:1366
snpAddAttrGenLongUUID_t * pLongUUID
Pointer to Parameter Structure, snpAddAttrGenLongUUID_t.
Definition: snp.h:999
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1064
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1082
uint8_t perms
1 Byte permissions of the attribute, GATT Attribute Access Permissions Bit Fields ...
Definition: snp.h:901
struct snpSetGattParamRsp_t snpAddServiceRsp_t
1 Byte Command Status Response
uint8_t charValPerms
1 Byte permissions of the value attribute, see GATT Attribute Access Permissions Bit Fields ...
Definition: snp.h:859
snpSetGapParamRsp_t setGapParamRsp
Set GAP parameter Response.
Definition: snp.h:1360
Parameter Structure for the Connection Established Event.
Definition: snp.h:1413
snpSetGattParamReq_t setGattParamReq
Set GATT parameter request.
Definition: snp.h:1392
snpCharReadCnf_t readCnf
Characteristic read confirmation.
Definition: snp.h:1385
struct snpSetGattParamReq_t snpGetGattParamRsp_t
Parameter Structure for SNP_getGATTParam / SNP_GET_GATT_PARAM_RSP.
Parameter Structure for SNP_writeCharCnf / SNP_CHAR_WRITE_CNF.
Definition: snp.h:1109
uint8_t type
1 Byte Type of Advertisement, see Advertisement Type
Definition: snp.h:655
uint8_t * pData
Pointer of Data to write/retrieved.
Definition: snp.h:1225
snpGetGattParamRsp_t getGattParamRsp
Get GATT parameter request.
Definition: snp.h:1395
uint32_t rand
32-bit Random Number generated by TRNG
Definition: snp.h:619
Parameter Structure for the Connection terminated Event.
Definition: snp.h:1432
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1048
uint16_t attrHandle
2 Byte Attribute handle of the characteristic value.
Definition: snp.h:1237
snpMaskEventRsp_t maskEventCnf
event mask confirmation.
Definition: snp.h:1330
snpTermConnReq_t connTermReq
Connection terminated Request.
Definition: snp.h:1354
uint16_t paramId
2 Byte GAP Parameter ID, GAP Parameter IDs
Definition: snp.h:798
uint16_t connHandle
2 Byte Connection Handle to terminate
Definition: snp.h:695
uint8_t * pData
Definition: snp.h:588
struct snpSetGattParamRsp_t snpSetGapParamRsp_t
1 Byte Command Status Response
Parameter Structure for SNP_addDescriptionValue.
Definition: snp.h:995
snpUpdateConnParamCnf_t updateConnParamsCnf
Update connection parameters, request.
Definition: snp.h:1356
snpNotifIndCnf_t notifIndCnf
Indication Confirmation.
Definition: snp.h:1389
uint8_t state
1 Byte New Security State Security States
Definition: snp.h:1480
Parameter Structure for the Advertising state change Event.
Definition: snp.h:1464
Parameter Structure used to add a generic attribute descriptor (long UUID)
Definition: snp.h:966
snpAdvStatusEvt_t advStatusEvt
Parameter Structure snpAdvStatusEvt_t.
Definition: snp.h:1539
Parameter Structure to add new Characteristic Description Response SNP_ADD_CHAR_DESC_DECL_RSP.
Definition: snp.h:1015
Parameter Structure for MITM Authentication data to be displayed.
Definition: snp.h:1523
uint16_t value
2 Byte Value to write to the CCCD
Definition: snp.h:1307
SNP Event Parameters.
Definition: snp.h:1534
uint8_t paramID
1 Byte ID of the parameter to retrieved.
Definition: snp.h:1290
uint8_t header
1 Byte Header Field, SNP GATT Descriptors Header
Definition: snp.h:997
uint16_t memMax
2 Byte maximum HEAP ever allocated since startup
Definition: snp.h:554
uint8_t input
1 Byte TRUE if device must input passcode.
Definition: snp.h:1526
struct snpSetGattParamRsp_t snpSetWhiteListRsp_t
1 Byte Command Status Response
uint8_t authenticate
1 Byte Reserved for future use
Definition: snp.h:1124
snpAuthenticationEvt_t authenticationEvt
Parameter Structure snpAuthenticationEvt_t.
Definition: snp.h:1543
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1415
uint8_t type
1 Byte Type of the service to add. see Service Type
Definition: snp.h:829
snpStartAdvReq_t startAdv
Start advertising request.
Definition: snp.h:1349
uint8_t rspNeeded
1 Byte Indicate if the AP must answer this indication or not, Options for Response Needed Field ...
Definition: snp.h:1306
uint16_t maxLen
Definition: snp.h:951
Parameter Structure for the response to SNP_getRev.
Definition: snp.h:617
uint16_t offset
2 Byte Offset of the characteristic to start reading from
Definition: snp.h:1066
uint8_t option
1 Byte Type of disconnection requested. see GAP GATT Terminate connection request option field...
Definition: snp.h:696
snpUpdateConnParamEvt_t updateConnParamEvt
Parameter Structure snpUpdateConnParamEvt_t.
Definition: snp.h:1538
Parameter Structure for SNP_registerService / SNP_REGISTER_SERVICE_RSP.
Definition: snp.h:1032
uint16_t cccdHandle
2 Byte Handle of the characteristic value attribute to notify/indicate
Definition: snp.h:1305
snpCharCfgUpdatedInd_t charCfgUpdatedReq
Characteristic configuration updated indication.
Definition: snp.h:1398
snpAddAttrGenShortUUID_t * pShortUUID
Pointer to Parameter Structure, snpAddAttrGenShortUUID_t.
Definition: snp.h:998
snpHciCmdReq_t hciCmdReq
HCI command request.
Definition: snp.h:1339
Parameter Structure for the Update Connection Parameter Event.
Definition: snp.h:1447
uint16_t maxLen
2 Byte Maximum possible length of the string, plus one byte for null terminator (range from 1 to 512)...
Definition: snp.h:934
uint16_t intervalMin
2 Byte
Definition: snp.h:1570
Parameter Structure for SNP_CHAR_READ_CNF / snpCharReadCnf_t.
Definition: snp.h:1061
snpCharWriteInd_t charWriteInd
Characteristic write request.
Definition: snp.h:1386
uint8_t gapRoleStatus
1 Byte Current state of the GAP Role ( gaprole_States_t)
Definition: snp.h:629
struct snpSetGapParamReq_t snpGetGapParamReq_t
Parameter Structure for SNP_getGapParam / SNP_GET_GAP_PARAM_REQ - Same Structure as snpSetGapParamReq...
uint16_t attMtuSize
2 Byte New ATT MTU Size negotiated between GATT client and GATT server.
Definition: snp.h:1511
snpCharWriteCnf_t charWriteCnf
Characteristic write confirmation.
Definition: snp.h:1387
struct snpCharWriteCnf_t snpCharCfgUpdatedRsp_t
Parameter Structure for SNP_processCharConfigUpdatedCnf / SNP_CCCD_UPDATED_CNF - Same Structure as sn...
uint8_t display
1 Byte TRUE if device must display passcode.
Definition: snp.h:1525
uint16_t slaveLatency
2 Byte
Definition: snp.h:1417
uint8_t status
1 Byte Status list of status generated by the SNP.
Definition: snp.h:1466
snpErrorEvt_t advErrorEvt
Parameter Structure snpErrorEvt_t.
Definition: snp.h:1541
uint8_t status
1 Byte Status of the request (SUCCESS or Error, list of status generated by the SNP.)
Definition: snp.h:797
snpAddCharValueDeclRsp_t addCharValueDecRsp
Add characteristic value Response.
Definition: snp.h:1378
uint8_t status
status of the request (SUCCESS or Error, list of status generated by the SNP.)
Definition: snp.h:743
Parameter Structure used for SNP_addCharValueDecl / SNP_ADD_CHAR_VAL_DECL_REQ.
Definition: snp.h:857
1 Byte Command Status Response
Definition: snp.h:1197
snpTestCmdRsp_t testCmdRsp
Test command response.
Definition: snp.h:1346
uint16_t attrHandle
2 Byte Attribute handle of the characteristic value.
Definition: snp.h:1263
uint8_t status
1 Byte status of the request (SUCCESS or Error, list of status generated by the SNP.)
Definition: snp.h:605
struct snpSetGapParamReq_t snpSetSecParamReq_t
Parameter Structure for SNP_setSecurityParams / SNP_SET_SECURITY_PARAM_REQ - Same Structure as snpSet...
Parameter Structure used to add a Client Characteristic Configuration Description Attribute...
Definition: snp.h:899
uint16_t opcode
2 Byte SNP opcode that triggered the error
Definition: snp.h:1495
uint16_t value
2 Byte Parameter Value set if for SET command
Definition: snp.h:783
uint16_t connHandle
handle of the connection the parameter update was intended for
Definition: snp.h:744
uint8_t * pData
Pointer of data value to set.
Definition: snp.h:1238
snpAddAttrFormat_t * pFormat
Pointer to Parameter Structure, snpAddAttrFormat_t.
Definition: snp.h:1001
snpSetWhiteListReq_t setWhiteListReq
Set the White List Filter Policy request.
Definition: snp.h:1371
SNP_CMD1_HDR_TYPE
list of subgroup
Definition: snp.h:72
uint16_t timeout
2 Byte Timeout of the advertisement.
Definition: snp.h:656
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1434
uint8_t serviceID
1 Byte ID of the service containing the parameter to define
Definition: snp.h:1289
Add Service Request Structure for SNP_addService / SNP_ADD_SERVICE_REQ.
Definition: snp.h:827
snpSecurityEvt_t securityEvt
Parameter Structure snpSecurityEvt_t.
Definition: snp.h:1542
Parameter Structure for SNP_maskEvt.
Definition: snp.h:523
uint16_t opcode
Definition: snp.h:567
snpSetAdvDataCnf_t setAdvDataCnf
Set advertising data Response.
Definition: snp.h:1351
uint16_t connHandle
2 Byte handle of the connection to update parameters to.
Definition: snp.h:708
Parameter Structure for SNP_setWhiteListFilterPolicy / SNP_SET_WHITE_LIST_POLICY_REQ.
Definition: snp.h:1317
Parameter Structure for SNP_MASK_EVENT_RSP.
Definition: snp.h:537
uint16_t memSize
2 Byte total HEAP size
Definition: snp.h:555
uint8_t rspNeeded
1 Byte Indicate if the AP must answer this indication or not, Options for Response Needed Field ...
Definition: snp.h:1084
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1112
uint8_t status
1 Byte Status of the request (SUCCESS or Error, list of status generated by the SNP.)
Definition: snp.h:1250
uint16_t memAlo
2 Byte HEAP allocated memory
Definition: snp.h:553
struct snpSetGattParamRsp_t snpSetAuthDataRsp_t
1 Byte Command Status Response
uint16_t event
2 Byte Event, list of asynchronous events generated by the SNP.
Definition: snp.h:1555
Parameter Structure for Response to SNP_addCharValueDecl / SNP_ADD_CHAR_VAL_DECL_RSP.
Definition: snp.h:879
uint16_t attrHandle
2 Byte Handle of the characteristic value attribute being written
Definition: snp.h:1083
uint8_t mgmtOption
1 Byte Reserved for future use
Definition: snp.h:861
struct snpSetGattParamRsp_t snpSetSecParamRsp_t
1 Byte Command Status Response
uint16_t snpVer
2 Byte Version of the SNP (major, minor)
Definition: snp.h:606
uint8_t * pData
Pointer to the advertisement data buffer to update, up to 31 Bytes.
Definition: snp.h:681
uint32_t numCmp
32 bit Numeric Comparison value to display, 0 if not used.
Definition: snp.h:1527
uint8_t status
1 Byte Status of the request (SUCCESS or Error, list of status generated by the SNP.)
Definition: snp.h:1034
uint16_t maskedEvent
Definition: snp.h:539
Parameter Structure used to add a generic attribute descriptor (short UUID)
Definition: snp.h:948
uint8_t status
1 Byte Status upon entering this state list of status generated by the SNP.
Definition: snp.h:1481
Parameter Structure for the Characteristic Notification and Indication Request data This is a packed ...
Definition: snp.h:1120
uint8_t status
1 Byte status of the request (SUCCESS or Error, list of status generated by the SNP.)
Definition: snp.h:586
uint16_t value
2 Byte Parameter Value retrieved.
Definition: snp.h:799
snpGetGapParamRsp_t getGapParamRsp
Get GAP parameter Response.
Definition: snp.h:1362
snpSetAuthDataReq_t setAuthDataReq
Set Authentication Data request.
Definition: snp.h:1367
uint8_t type
1 Byte Type of Advertisement data to update, see Adv. data buffer
Definition: snp.h:680
uint16_t attrHandle
2 Byte Attribute handle of the characteristic value.
Definition: snp.h:1251
uint16_t attrHandle
2 Byte Handle of the characteristic value attribute to notify/indicate
Definition: snp.h:1123
uint8_t status
1 Byte Status of the request (SUCCESS or Error, list of status generated by the SNP.)
Definition: snp.h:1063
snpSetAuthDataRsp_t setAuthDataRsp
Set Authentication Data response.
Definition: snp.h:1368
uint16_t intervalMin
2 Byte Minimum value for the connection event interval.
Definition: snp.h:709
uint8_t serviceID
Definition: snp.h:1221
uint8_t reason
1 Byte Reason of the termination connection termination reason.
Definition: snp.h:1435
Parameter Structure for SNP_setGapParam / SNP_SET_GAP_PARAM_REQ.
Definition: snp.h:780
uint8_t * pData
Pointer to data of the value to set.
Definition: snp.h:1277
uint16_t latency
2 Byte
Definition: snp.h:1572
snpGetStatusCmdRsp_t getStatusRsp
Get status Response.
Definition: snp.h:1343
uint16_t offset
2 Byte Offset of the characteristic to start reading from
Definition: snp.h:1050
snpGetGapParamReq_t getGapParamReq
Get GAP parameter Request.
Definition: snp.h:1361
uint8_t perms
1 Byte Permissions of the attribute, GATT Attribute Access Permissions Bit Fields, force to Read only
Definition: snp.h:933
Connection Termination Request Structure.
Definition: snp.h:693
uint16_t supervisionTimeout
2 Byte
Definition: snp.h:1452
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1122
snpSetAdvDataReq_t setAdvDataReq
Set advertising data Request.
Definition: snp.h:1350
uint8_t status
1 Byte Status of the request (SUCCESS or Error, list of status generated by the SNP.)
Definition: snp.h:1111
uint8_t header
Definition: snp.h:1018
SNP Event Structure.
Definition: snp.h:1553
Parameter Structure for the Get GAP Parameter Value Response.
Definition: snp.h:795
Parameter Structure for SNP_getAttrValue / SNP_SET_ATTR_VALUE_REQ.
Definition: snp.h:1261
uint8_t status
1 Byte Command Status list of status generated by the SNP.
Definition: snp.h:1017
uint16_t endHandle
2 Byte Last attribute handle of the registered service
Definition: snp.h:1036
snpAddServiceRsp_t addServiceRsp
Add service response.
Definition: snp.h:1376
Parameter Structure for response to SNP_setAttrValue / SNP_SET_ATTR_VALUE_RSP.
Definition: snp.h:1248
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1304
snpAddAttrCccd_t * pCCCD
Pointer to Parameter Structure, snpAddAttrCccd_t.
Definition: snp.h:1000
The SNP message. A union of all SNP message types.
Definition: snp.h:1326
uint16_t attrHandle
2 Byte Handle of the characteristic value attribute being read
Definition: snp.h:1049
snpSetWhiteListRsp_t setWhiteListRsp
Set the White List Filter Policy response.
Definition: snp.h:1372
uint16_t maxSize
2 Byte Max Size of the data to read
Definition: snp.h:1051
uint8_t status
1 Byte status of the request (SUCCESS or Error, list of status generated by the SNP.)
Definition: snp.h:881
struct snpSetGattParamRsp_t snpSetAdvDataCnf_t
1 Byte Command Status Response
snpATTMTUSizeEvt_t attMTUSizeEvt
Parameter Structure snpATTMTUSizeEvt_t.
Definition: snp.h:1540
Parameter Structure for SNP_startAdv.
Definition: snp.h:653
Parameter Structure for SNP_getRev.
Definition: snp.h:603
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1510
uint32_t authData
4 Byte Authentication Data. 000000 - 999999 or TRUE/FALSE
Definition: snp.h:815
snpAddServiceReq_t addServiceReq
Add service request.
Definition: snp.h:1375
uint16_t attrHandle
2 Byte attribute handle of the characteristic value.
Definition: snp.h:882
uint8_t * pData
Definition: snp.h:1086
uint16_t paramId
2 Byte GAP Parameter ID, GAP Parameter IDs or snpSetSecParamReq_t
Definition: snp.h:782
snpAddCharDescDeclReq_t addCharDescDeclReq
Add characteristic descriptor Request.
Definition: snp.h:1379
Parameter Structure for response to SNP_getAttrValue / SNP_SET_ATTR_VALUE_RSP.
Definition: snp.h:1273
Parameter Structure for SNP_setAttrValue / SNP_SET_ATTR_VALUE_REQ.
Definition: snp.h:1235
Parameter Structure for SNP_HCI_CMD_RSP.
Definition: snp.h:584
uint8_t * pData
Definition: snp.h:1067
Parameter Structure for the response to SNP_getStatus This is a packed structure. see Dealing with Pa...
Definition: snp.h:627
snpMaskEventReq_t maskEventReq
event mask request.
Definition: snp.h:1329
Parameter Structure for SNP_setAdvData.
Definition: snp.h:678
snpCharCfgUpdatedRsp_t charcfgUpdatedRsp
Characteristic configuration update response.
Definition: snp.h:1399
snpConnTermEvt_t connTermEvt
Parameter Structure snpConnTermEvt_t.
Definition: snp.h:1537
uint16_t initLen
2 Byte initial length of the string, plus one byte for null terminator (must be <= snpAddAttrUserDesc...
Definition: snp.h:935
snpCharReadInd_t readInd
Characteristic read request.
Definition: snp.h:1384
uint8_t * pDesc
Pointer to initial string (must be null terminated)
Definition: snp.h:936
uint16_t eventMask
Definition: snp.h:525
uint8_t type
1 Byte Type of the request, see SNP indication type
Definition: snp.h:1125
Parameter Structure used to add a User Descriptor attribute.
Definition: snp.h:931
snpSetSecParamReq_t setSecParamReq
Set the Security Requirements request.
Definition: snp.h:1365
Parameter Structure for SNP_executeHCIcmd.
Definition: snp.h:565
snpNotifIndReq_t notifIndReq
Notification or indication request.
Definition: snp.h:1388
uint16_t supervisionTimeout
2 Byte
Definition: snp.h:1418
Parameter Structure for SNP_executeTestCmd.
Definition: snp.h:551
uint16_t slaveLatency
2 Byte
Definition: snp.h:1451