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 180 #define SNP_SUCCESS 0x00 181 #define SNP_FAILURE 0x83 182 #define SNP_INVALID_PARAMS 0x84 183 #define SNP_CMD_ALREADY_IN_PROGRESS 0x85 184 #define SNP_CMD_REJECTED 0x86 185 #define SNP_OUT_OF_RESOURCES 0x87 186 #define SNP_UNKNOWN_ATTRIBUTE 0x88 187 #define SNP_UNKNOWN_SERVICE 0x89 188 #define SNP_ALREADY_ADVERTISING 0x8A 189 #define SNP_NOT_ADVERTISING 0x8B 190 #define SNP_HCI_RSP_COLLISION_RSP 0x8C 191 #define SNP_HCI_CMD_UNKNOWN 0x8D 192 #define SNP_GATT_COLLISION 0x8E 193 #define SNP_NOTIF_IND_NOT_ENABLE_BY_CLIENT 0x8F 194 #define SNP_NOTIF_IND_NOT_ALLOWED 0x90 195 #define SNP_NOTIF_IND_NO_CCCD_ATTRIBUTE 0x91 196 #define SNP_NOT_CONNECTED 0x92 197 #define SNP_FAILURE_NO_ATT_RSP 0x93 212 #define SNP_BLE_NO_RESOURCES bleNoResources 213 #define SNP_BLE_GAP_BOND_REJECTED bleGAPBondRejected 214 #define SNP_BLE_MEM_ALLOC_ERROR bleMemAllocError 215 #define SNP_BLE_TIMEOUT bleTimeout 216 #define SNP_INVALIDPARAMETER INVALIDPARAMETER 217 #define SNP_LL_ENC_KEY_REQ_REJECTED LL_ENC_KEY_REQ_REJECTED 218 #define SNP_LL_ENC_KEY_REQ_UNSUPPORTED_FEATURE LL_ENC_KEY_REQ_UNSUPPORTED_FEATURE 219 #define SNP_LL_CTRL_PKT_TIMEOUT_TERM LL_CTRL_PKT_TIMEOUT_TERM 220 #define SNP_LL_STATUS_ERROR_BAD_PARAMETER LL_STATUS_ERROR_BAD_PARAMETER 221 #define SNP_LL_STATUS_ERROR_COMMAND_DISALLOWED LL_STATUS_ERROR_COMMAND_DISALLOWED 222 #define SNP_LL_STATUS_ERROR_FEATURE_NOT_SUPPORTED LL_STATUS_ERROR_FEATURE_NOT_SUPPORTED 223 #define SNP_LL_STATUS_ERROR_CTRL_PROC_ALREADY_ACTIVE LL_STATUS_ERROR_CTRL_PROC_ALREADY_ACTIVE 224 #define SNP_LL_STATUS_ERROR_INACTIVE_CONNECTION LL_STATUS_ERROR_INACTIVE_CONNECTION 225 #define SNP_SMP_PAIRING_FAILED_UNSPECIFIED SMP_PAIRING_FAILED_UNSPECIFIED 226 #define SNP_SMP_PAIRING_FAILED_NUM_COMPARISON_FAILED SMP_PAIRING_FAILED_NUM_COMPARISON_FAILED 227 #define SNP_SMP_PAIRING_FAILED_NOT_SUPPORTED SMP_PAIRING_FAILED_NOT_SUPPORTED 228 #define SNP_SMP_PAIRING_FAILED_PASSKEY_ENTRY_FAILED SMP_PAIRING_FAILED_PASSKEY_ENTRY_FAILED 229 #define SNP_SMP_PAIRING_FAILED_AUTH_REQ SMP_PAIRING_FAILED_AUTH_REQ 230 #define SNP_SMP_PAIRING_FAILED_ENC_KEY_SIZE SMP_PAIRING_FAILED_ENC_KEY_SIZE 231 #define SNP_SMP_PAIRING_FAILED_CMD_NOT_SUPPORTED SMP_PAIRING_FAILED_CMD_NOT_SUPPORTED 232 #define SNP_SMP_PAIRING_FAILED_OOB_NOT_AVAIL SMP_PAIRING_FAILED_OOB_NOT_AVAIL 233 #define SNP_SMP_PAIRING_FAILED_CONFIRM_VALUE SMP_PAIRING_FAILED_CONFIRM_VALUE 234 #define SNP_SMP_PAIRING_FAILED_DHKEY_CHECK_FAILED SMP_PAIRING_FAILED_DHKEY_CHECK_FAILED 242 #define SNP_CONN_EST_EVT 0x0001 243 #define SNP_CONN_TERM_EVT 0x0002 244 #define SNP_CONN_PARAM_UPDATED_EVT 0x0004 245 #define SNP_ADV_STARTED_EVT 0x0008 246 #define SNP_ADV_ENDED_EVT 0x0010 247 #define SNP_ATT_MTU_EVT 0x0020 248 #define SNP_SECURITY_EVT 0x0040 249 #define SNP_AUTHENTICATION_EVT 0x0080 250 #define SNP_ERROR_EVT 0x8000 254 #define SNP_DEV_ALL_EVENT_MASK (SNP_CONN_EST_EVT | SNP_CONN_TERM_EVT | \ 256 SNP_CONN_PARAM_UPDATED_EVT | SNP_ADV_STARTED_EVT | SNP_ADV_ENDED_EVT | \ 257 SNP_ATT_MTU_EVT | SNP_ERROR_EVT) 263 #define SNP_HCI_OPCODE_EXT_SET_TX_POWER 0xFC01 264 #define SNP_HCI_OPCODE_EXT_MODEM_TEST_TX 0xFC08 265 #define SNP_HCI_OPCODE_EXT_MODEM_HOP_TEST_TX 0xFC09 266 #define SNP_HCI_OPCODE_EXT_MODEM_TEST_RX 0xFC0A 267 #define SNP_HCI_OPCODE_EXT_END_MODEM_TEST 0xFC0B 268 #define SNP_HCI_OPCODE_EXT_SET_BDADDR 0xFC0C 269 #define SNP_HCI_OPCODE_EXT_SET_SCA 0xFC0D 270 #define SNP_HCI_OPCODE_EXT_ENABLE_PTM 0xFC0E 271 #define SNP_HCI_OPCODE_EXT_SET_MAX_DTM_TX_POWER 0xFC11 272 #define SNP_HCI_OPCODE_EXT_RESET_SYSTEM 0xFC1D 273 #define SNP_HCI_OPCODE_READ_BDADDR 0x1009 274 #define SNP_HCI_OPCODE_READ_RSSI 0x1405 275 #define SNP_HCI_OPCODE_LE_RECEIVER_TEST 0x201D 276 #define SNP_HCI_OPCODE_LE_TRANSMITTER_TEST 0x201E 277 #define SNP_HCI_OPCODE_LE_TEST_END 0x201F 278 #define SNP_HCI_OPCODE_EXT_PER 0xFC14 279 #define SNP_HCI_OPCODE_EXT_DECRYPT 0xFC05 280 #define SNP_HCI_OPCODE_LE_ENCRYPT 0x2017 281 #define SNP_HCI_OPCODE_EXT_OVERRIDE_SL 0xFC1A 282 #define SNP_HCI_OPCODE_EXT_SET_FAST_TX_RESP_TIME 0xFC07 283 #define SNP_HCI_OPCODE_EXT_ONE_PKT_PER_EVT 0xFC02 284 #define SNP_HCI_OPCODE_EXT_GET_CONNECTION_INFO 0xFC20 289 #define SNP_HCI_OPCODE_SIZE 0x02 297 #define SNP_ADV_TYPE_CONN 0x00 298 #define SNP_ADV_TYPE_SCANABLE 0x02 299 #define SNP_ADV_TYPE_NONCONN 0x03 307 #define SNP_FILTER_POLICY_ALL 0x00 308 #define SNP_FILTER_POLICY_WHITE 0x03 316 #define SNP_ADV_STOP_ON_CONN 0x00 318 #define SNP_ADV_RESTART_ON_CONN_EST 0x01 321 #define SNP_ADV_RESTART_ON_CONN_TERM 0x02 331 #define SNP_SCANRSP_DATA 0x00 // Scan response data 333 #define SNP_NONCONN_ADV_DATA 0x01 // Non-connectable advertising data. 335 #define SNP_CONN_ADV_DATA 0x02 // Connectable advertising data. 341 #define SNP_MAX_ADVDATA_LENGTH 31 348 #define SNP_CT_SUPERVISOR_TO 0x08 349 #define SNP_CT_PEER_REQ 0x13 350 #define SNP_CT_HOST_REQ 0x16 351 #define SNP_CT_CTRL_PKT_TO 0x22 352 #define SNP_CT_CTRL_PKT_INST_PASS 0x28 353 #define SNP_CT_LSTO_VIOLATION 0x3B 354 #define SNP_CT_MIC_FAILURE 0x3D 360 #define SNP_CONN_INT_MIN 0x0006 362 #define SNP_CONN_INT_MAX 0x0C80 364 #define SNP_CONN_SL_MIN 0x0000 366 #define SNP_CONN_SL_MAX 0x01F3 368 #define SNP_CONN_SUPERVISOR_TIMEOUT_MIN 0x000A 370 #define SNP_CONN_SUPERVISOR_TIMEOUT_MAX 0x0C80 375 #define SNP_PRIMARY_SERVICE 1 377 #define SNP_SECONDARY_SERVICE 2 381 #define SNP_CHAR_MANAGED_BY_AP 0x00 382 #define SNP_CHAR_MANAGED_BY_NP 0x01 387 #define SNP_16BIT_UUID_SIZE 2 388 #define SNP_128BIT_UUID_SIZE 16 394 #define SNP_GATT_PERMIT_READ 0x01 397 #define SNP_GATT_PERMIT_WRITE 0x02 399 #define SNP_GATT_PERMIT_AUTHEN_READ 0x04 401 #define SNP_GATT_PERMIT_AUTHEN_WRITE 0x08 403 #define SNP_GATT_PERMIT_ENCRYPT_READ 0x40 405 #define SNP_GATT_PERMIT_ENCRYPT_WRITE 0x80 410 #define SNP_GATT_PERM_RFU_MASK (SNP_GATT_PERMIT_READ | \ 412 SNP_GATT_PERMIT_WRITE | \ 413 SNP_GATT_PERMIT_AUTHEN_READ | \ 414 SNP_GATT_PERMIT_AUTHEN_WRITE | \ 415 SNP_GATT_PERMIT_ENCRYPT_READ | \ 416 SNP_GATT_PERMIT_ENCRYPT_WRITE) 421 #define SNP_GATT_PROP_READ 0x0002 422 #define SNP_GATT_PROP_WRITE_NORSP 0x0004 423 #define SNP_GATT_PROP_WRITE 0x0008 424 #define SNP_GATT_PROP_NOTIFICATION 0x0010 425 #define SNP_GATT_PROP_INDICATION 0x0020 428 #define SNP_GATT_CHAR_MAX_LENGTH 512 434 #define SNP_SEND_NOTIFICATION 0x01 436 #define SNP_SEND_INDICATION 0x02 444 #define SNP_GGS_SERV_ID 0x01 445 #define SNP_DIS_SERV_ID 0x02 451 #define SNP_DEVINFO_SYSTEM_ID 0 452 #define SNP_DEVINFO_MODEL_NUMBER 1 453 #define SNP_DEVINFO_SERIAL_NUMBER 2 454 #define SNP_DEVINFO_FIRMWARE_REV 3 455 #define SNP_DEVINFO_HARDWARE_REV 4 456 #define SNP_DEVINFO_SOFTWARE_REV 5 457 #define SNP_DEVINFO_MANUFACTURER_NAME 6 458 #define SNP_DEVINFO_11073_CERT_DATA 7 459 #define SNP_DEVINFO_PNP_ID 8 461 #define SNP_DEVINFO_SYSTEM_ID_LEN 8 465 #define SNP_DEVINFO_PNP_ID_LEN 7 469 #define SNP_DEVINFO_STRING_LEN 21 475 #define SNP_GGS_DEVICE_NAME_ATT 0 476 #define SNP_GGS_APPEARANCE_ATT 1 477 #define SNP_GGS_PERI_PRIVACY_FLAG_ATT 2 478 #define SNP_GGS_RECONNCT_ADDR_ATT 3 479 #define SNP_GGS_PERI_CONN_PARAM_ATT 4 480 #define SNP_GGS_PERI_PRIVACY_FLAG_PROPS 5 481 #define SNP_GGS_W_PERMIT_DEVICE_NAME_ATT 6 482 #define SNP_GGS_W_PERMIT_APPEARANCE_ATT 7 483 #define SNP_GGS_W_PERMIT_PRIVACY_FLAG_ATT 8 485 #define SNP_GAP_DEVICE_NAME_LEN 21 489 #define SNP_GAP_PRIVACY_DISABLED 0x00 490 #define SNP_GAP_PRIVACY_ENABLED 0x01 497 #define SNP_DESC_HEADER_GEN_SHORT_UUID 0x01 498 #define SNP_DESC_HEADER_GEN_LONG_UUID 0x02 499 #define SNP_DESC_HEADER_CCCD 0x04 500 #define SNP_DESC_HEADER_FORMAT 0x08 501 #define SNP_DESC_HEADER_USER_DESC 0x80 502 #define SNP_DESC_HEADER_UNSUPPORTED_MASK 0x70 505 #define SNP_GATT_CLIENT_CFG_NOTIFY 0x0001 506 #define SNP_GATT_CLIENT_CFG_INDICATE 0x0002 511 #define SNP_RESPONSE_NOT_NEEDED 0x00 512 #define SNP_RESPONSE_NEEDED 0x01 515 #define SNP_INVALID_HANDLE 0x0000 521 #define SNP_GAP_TERM_CONN_DEFAULT 0x00 522 #define SNP_GAP_TERM_CONN_IMMEDIATLY 0x01 528 #define SNP_GAPBOND_PAIRING_MODE 0x00 529 #define SNP_GAPBOND_IO_CAPABILITIES 0x01 530 #define SNP_GAPBOND_BONDING_ENABLED 0x02 531 #define SNP_GAPBOND_ERASE_ALLBONDS 0x03 532 #define SNP_GAPBOND_LRU_BOND_REPLACEMENT 0x04 538 #define SNP_GAPBOND_PAIRING_STATE_COMPLETE 0x01 539 #define SNP_GAPBOND_PAIRING_STATE_BONDED 0x02 540 #define SNP_GAPBOND_PAIRING_STATE_BOND_SAVED 0x03 561 PACKED_TYPEDEF_STRUCT
575 PACKED_TYPEDEF_STRUCT
589 PACKED_TYPEDEF_STRUCT
603 PACKED_TYPEDEF_STRUCT
622 PACKED_TYPEDEF_STRUCT
641 PACKED_TYPEDEF_STRUCT
645 uint8_t stackBuildVer[10];
655 PACKED_TYPEDEF_STRUCT
665 PACKED_TYPEDEF_STRUCT
691 PACKED_TYPEDEF_STRUCT
698 uint8_t filterPolicy;
702 uint8_t initiatorAddress[6];
716 PACKED_TYPEDEF_STRUCT
731 PACKED_TYPEDEF_STRUCT
744 PACKED_TYPEDEF_STRUCT
748 uint16_t intervalMax;
754 uint16_t slaveLatency;
760 uint16_t supervisionTimeout;
779 PACKED_TYPEDEF_STRUCT
818 PACKED_TYPEDEF_STRUCT
833 PACKED_TYPEDEF_STRUCT
851 PACKED_TYPEDEF_STRUCT
865 PACKED_TYPEDEF_STRUCT
895 PACKED_TYPEDEF_STRUCT
917 PACKED_TYPEDEF_STRUCT
937 PACKED_TYPEDEF_STRUCT
951 PACKED_TYPEDEF_STRUCT
969 PACKED_TYPEDEF_STRUCT
986 PACKED_TYPEDEF_STRUCT
1004 PACKED_TYPEDEF_STRUCT
1033 PACKED_TYPEDEF_STRUCT
1053 PACKED_TYPEDEF_STRUCT
1057 uint16_t handles[6];
1070 PACKED_TYPEDEF_STRUCT
1084 PACKED_TYPEDEF_STRUCT
1099 PACKED_TYPEDEF_STRUCT
1118 PACKED_TYPEDEF_STRUCT
1147 PACKED_TYPEDEF_STRUCT
1158 PACKED_TYPEDEF_STRUCT
1235 PACKED_TYPEDEF_STRUCT
1257 PACKED_TYPEDEF_STRUCT
1273 PACKED_TYPEDEF_STRUCT
1286 PACKED_TYPEDEF_STRUCT
1299 PACKED_TYPEDEF_STRUCT
1311 PACKED_TYPEDEF_STRUCT
1325 PACKED_TYPEDEF_STRUCT
1340 PACKED_TYPEDEF_STRUCT
1355 PACKED_TYPEDEF_STRUCT
1451 PACKED_TYPEDEF_STRUCT
1470 PACKED_TYPEDEF_STRUCT
1485 PACKED_TYPEDEF_STRUCT
1502 PACKED_TYPEDEF_STRUCT
1516 PACKED_TYPEDEF_STRUCT
1531 PACKED_TYPEDEF_STRUCT
1546 PACKED_TYPEDEF_STRUCT
1561 PACKED_TYPEDEF_STRUCT
1591 PACKED_TYPEDEF_STRUCT
1624 #define SNP_CMD1_HDR_MASK 0xC0 1628 #define SNP_CMD1_HDR_POS 0x6 1631 #define SNP_GET_OPCODE_HDR_CMD1(cmd) (((cmd) & SNP_CMD1_HDR_MASK) >> SNP_CMD1_HDR_POS) 1634 #define SNP_CMD1_ID_MASK 0x3F 1637 #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:1546
uint16_t offset
2 Byte Offset of the characteristic to start writing to
Definition: snp.h:1123
uint8_t addressType
1 Byte Type of initiator address
Definition: snp.h:1457
Parameter Structure for the Error Event SNP_ERROR_EVT.
Definition: snp.h:1531
uint8_t perms
1 Byte Permissions of the attribute, see GATT Attribute Access Permissions Bit Fields, force to Read only
Definition: snp.h:988
uint16_t intervalMax
2 Byte
Definition: snp.h:1609
uint8_t status
1 Byte Status of the request List of SNP error codes
Definition: snp.h:1534
Parameter Structure for SNP_updateConnParam.
Definition: snp.h:744
uint8_t perms
1 Byte Permissions of the attribute, see GATT Attribute Access Permissions Bit Fields, force to Read only
Definition: snp.h:1006
Parameter Structure for the Security Event.
Definition: snp.h:1516
Parameter Structure for SNP_CHAR_READ_IND / @ ref SNP_charRead.
Definition: snp.h:1084
snpEventParam_t * pEvtParams
snpEventParam_t
Definition: snp.h:1594
snpGetRevisionRsp_t revisionRsp
Get revision Response.
Definition: snp.h:1371
uint16_t connInterval
2 Byte
Definition: snp.h:1488
Parameter Structure for the Characteristic Configuration Update Indication.
Definition: snp.h:1340
uint8_t * pData
Pointer to.
Definition: snp.h:1164
uint8_t status
1 Byte Command Status (SUCCESS or Error, List of SNP error codes)
Definition: snp.h:1237
snpSetGattParamRsp_t setGattParamRsp
Set GATT parameter response.
Definition: snp.h:1431
snpAddCharDescDeclRsp_t addCharDescDeclRsp
Add characteristic descriptor Response.
Definition: snp.h:1418
uint16_t timeout
2 Byte
Definition: snp.h:1611
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:1432
uint8_t initiatorAddrType
1 Byte Initiator Address Type, Reserved for Future Use
Definition: snp.h:701
Connection parameters for the peripheral device.
Definition: snp.h:1606
snpGetRandRsp_t randRsp
Get Random Number Response.
Definition: snp.h:1374
snpHciCmdRsp_t hciCmdRsp
HCI command response (event)
Definition: snp.h:1378
snpConnEstEvt_t connEstEvt
Parameter Structure snpConnEstEvt_t.
Definition: snp.h:1574
Parameter Structure for SNP_setGATTParam / SNP_SET_GATT_PARAM_RSP.
Definition: snp.h:1257
Parameter Structure for SNP_getGATTParam / SNP_GET_GATT_PARAM_REQ.
Definition: snp.h:1325
Parameter Structure for the Characteristic Write Request Indication data.
Definition: snp.h:1118
snpRegisterServiceRsp_t registerService
Register service Response.
Definition: snp.h:1419
snpUpdateConnParamReq_t updateConnParamsReq
Update connection parameters indication.
Definition: snp.h:1393
uint16_t startHandle
2 Byte First attribute handle of the registered service
Definition: snp.h:1073
uint16_t attrHandle
2 Byte Attribute handle of the characteristic value.
Definition: snp.h:1314
uint16_t charValMaxLen
Definition: snp.h:900
uint8_t behavior
1 Byte Behavior of Advertisement on connection event, Adv. behavior when connection are established o...
Definition: snp.h:703
snpAddAttrUserDesc_t * pUserDesc
Pointer to Parameter Structure, snpAddAttrUserDesc_t.
Definition: snp.h:1040
snpSetGapParamReq_t setGapParamReq
Set GAP parameter Request.
Definition: snp.h:1397
uint16_t maxLen
Definition: snp.h:1007
Parameter Structure for SNP_UPDATE_CONN_PARAM_CNF.
Definition: snp.h:779
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:625
Parameter Structure for SNP_setAuthenticationData / SNP_SET_AUTHENTICATION_DATA_REQ.
Definition: snp.h:851
uint8_t status
1 Byte Status of the request (SUCCESS or Error, List of SNP error codes)
Definition: snp.h:1313
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1487
uint16_t connInterval
2 Byte
Definition: snp.h:1454
snpAddCharValueDeclReq_t addCharValueDecReq
Add characteristic value Request.
Definition: snp.h:1415
uint16_t charValProps
2 Byte property of the value attribute, see GATT Characteristic Properties Bit Fields ...
Definition: snp.h:898
uint16_t attrHandle
2 Byte Handle of the characteristic value attribute being read
Definition: snp.h:1103
uint8_t useWhiteList
1 Byte White List Filter Policy, Advertisement Filter Policy Type
Definition: snp.h:1357
snpSetSecParamRsp_t setSecParamRsp
Set Security Requirements response.
Definition: snp.h:1404
snpAddAttrGenLongUUID_t * pLongUUID
Pointer to Parameter Structure, snpAddAttrGenLongUUID_t.
Definition: snp.h:1037
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1102
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1120
uint8_t perms
1 Byte permissions of the attribute, GATT Attribute Access Permissions Bit Fields ...
Definition: snp.h:939
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:897
snpSetGapParamRsp_t setGapParamRsp
Set GAP parameter Response.
Definition: snp.h:1398
Parameter Structure for the Connection Established Event.
Definition: snp.h:1451
snpSetGattParamReq_t setGattParamReq
Set GATT parameter request.
Definition: snp.h:1430
snpCharReadCnf_t readCnf
Characteristic read confirmation.
Definition: snp.h:1423
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:1147
uint8_t type
1 Byte Type of Advertisement, see Advertisement Type
Definition: snp.h:693
uint8_t * pData
Pointer of Data to write/retrieved.
Definition: snp.h:1263
snpGetGattParamRsp_t getGattParamRsp
Get GATT parameter request.
Definition: snp.h:1433
uint32_t rand
32-bit Random Number generated by TRNG
Definition: snp.h:657
Parameter Structure for the Connection terminated Event.
Definition: snp.h:1470
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1086
uint16_t attrHandle
2 Byte Attribute handle of the characteristic value.
Definition: snp.h:1275
snpMaskEventRsp_t maskEventCnf
event mask confirmation.
Definition: snp.h:1368
snpTermConnReq_t connTermReq
Connection terminated Request.
Definition: snp.h:1392
uint16_t paramId
2 Byte GAP Parameter ID, GAP Parameter IDs
Definition: snp.h:836
uint16_t connHandle
2 Byte Connection Handle to terminate
Definition: snp.h:733
uint8_t * pData
Definition: snp.h:626
struct snpSetGattParamRsp_t snpSetGapParamRsp_t
1 Byte Command Status Response
Parameter Structure for SNP_addDescriptionValue.
Definition: snp.h:1033
snpUpdateConnParamCnf_t updateConnParamsCnf
Update connection parameters, request.
Definition: snp.h:1394
snpNotifIndCnf_t notifIndCnf
Indication Confirmation.
Definition: snp.h:1427
uint8_t state
1 Byte New Security State Security States
Definition: snp.h:1518
Parameter Structure for the Advertising state change Event.
Definition: snp.h:1502
Parameter Structure used to add a generic attribute descriptor (long UUID)
Definition: snp.h:1004
snpAdvStatusEvt_t advStatusEvt
Parameter Structure snpAdvStatusEvt_t.
Definition: snp.h:1577
Parameter Structure to add new Characteristic Description Response SNP_ADD_CHAR_DESC_DECL_RSP.
Definition: snp.h:1053
Parameter Structure for MITM Authentication data to be displayed.
Definition: snp.h:1561
uint16_t value
2 Byte Value to write to the CCCD
Definition: snp.h:1345
SNP Event Parameters.
Definition: snp.h:1572
uint8_t paramID
1 Byte ID of the parameter to retrieved.
Definition: snp.h:1328
uint8_t header
1 Byte Header Field, SNP GATT Descriptors Header
Definition: snp.h:1035
uint16_t memMax
2 Byte maximum HEAP ever allocated since startup
Definition: snp.h:592
uint8_t input
1 Byte TRUE if device must input passcode.
Definition: snp.h:1564
struct snpSetGattParamRsp_t snpSetWhiteListRsp_t
1 Byte Command Status Response
uint8_t authenticate
1 Byte Reserved for future use
Definition: snp.h:1162
snpAuthenticationEvt_t authenticationEvt
Parameter Structure snpAuthenticationEvt_t.
Definition: snp.h:1581
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1453
uint8_t type
1 Byte Type of the service to add. see Service Type
Definition: snp.h:867
snpStartAdvReq_t startAdv
Start advertising request.
Definition: snp.h:1387
uint8_t rspNeeded
1 Byte Indicate if the AP must answer this indication or not, Options for Response Needed Field ...
Definition: snp.h:1344
uint16_t maxLen
Definition: snp.h:989
Parameter Structure for the response to SNP_getRev.
Definition: snp.h:655
uint16_t offset
2 Byte Offset of the characteristic to start reading from
Definition: snp.h:1104
uint8_t option
1 Byte Type of disconnection requested. see GAP GATT Terminate connection request option field...
Definition: snp.h:734
snpUpdateConnParamEvt_t updateConnParamEvt
Parameter Structure snpUpdateConnParamEvt_t.
Definition: snp.h:1576
Parameter Structure for SNP_registerService / SNP_REGISTER_SERVICE_RSP.
Definition: snp.h:1070
uint16_t cccdHandle
2 Byte Handle of the characteristic value attribute to notify/indicate
Definition: snp.h:1343
snpCharCfgUpdatedInd_t charCfgUpdatedReq
Characteristic configuration updated indication.
Definition: snp.h:1436
snpAddAttrGenShortUUID_t * pShortUUID
Pointer to Parameter Structure, snpAddAttrGenShortUUID_t.
Definition: snp.h:1036
snpHciCmdReq_t hciCmdReq
HCI command request.
Definition: snp.h:1377
Parameter Structure for the Update Connection Parameter Event.
Definition: snp.h:1485
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:972
uint16_t intervalMin
2 Byte
Definition: snp.h:1608
Parameter Structure for SNP_CHAR_READ_CNF / snpCharReadCnf_t.
Definition: snp.h:1099
snpCharWriteInd_t charWriteInd
Characteristic write request.
Definition: snp.h:1424
uint8_t gapRoleStatus
1 Byte Current state of the GAP Role ( gaprole_States_t)
Definition: snp.h:667
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:1549
snpCharWriteCnf_t charWriteCnf
Characteristic write confirmation.
Definition: snp.h:1425
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:1563
uint16_t slaveLatency
2 Byte
Definition: snp.h:1455
uint8_t status
1 Byte Status List of SNP error codes
Definition: snp.h:1504
snpErrorEvt_t advErrorEvt
Parameter Structure snpErrorEvt_t.
Definition: snp.h:1579
uint8_t status
1 Byte Status of the request (SUCCESS or Error, List of SNP error codes)
Definition: snp.h:835
snpAddCharValueDeclRsp_t addCharValueDecRsp
Add characteristic value Response.
Definition: snp.h:1416
uint8_t status
status of the request (SUCCESS or Error, List of SNP error codes)
Definition: snp.h:781
Parameter Structure used for SNP_addCharValueDecl / SNP_ADD_CHAR_VAL_DECL_REQ.
Definition: snp.h:895
1 Byte Command Status Response
Definition: snp.h:1235
snpTestCmdRsp_t testCmdRsp
Test command response.
Definition: snp.h:1384
uint16_t attrHandle
2 Byte Attribute handle of the characteristic value.
Definition: snp.h:1301
uint8_t status
1 Byte status of the request (SUCCESS or Error, List of SNP error codes)
Definition: snp.h:643
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:937
uint16_t opcode
2 Byte SNP opcode that triggered the error
Definition: snp.h:1533
uint16_t value
2 Byte Parameter Value set if for SET command
Definition: snp.h:821
uint16_t connHandle
handle of the connection the parameter update was intended for
Definition: snp.h:782
uint8_t * pData
Pointer of data value to set.
Definition: snp.h:1276
snpAddAttrFormat_t * pFormat
Pointer to Parameter Structure, snpAddAttrFormat_t.
Definition: snp.h:1039
snpSetWhiteListReq_t setWhiteListReq
Set the White List Filter Policy request.
Definition: snp.h:1409
SNP_CMD1_HDR_TYPE
list of subgroup
Definition: snp.h:72
uint16_t timeout
2 Byte Timeout of the advertisement.
Definition: snp.h:694
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1472
uint8_t serviceID
1 Byte ID of the service containing the parameter to define
Definition: snp.h:1327
Add Service Request Structure for SNP_addService / SNP_ADD_SERVICE_REQ.
Definition: snp.h:865
snpSecurityEvt_t securityEvt
Parameter Structure snpSecurityEvt_t.
Definition: snp.h:1580
Parameter Structure for SNP_maskEvt.
Definition: snp.h:561
uint16_t opcode
Definition: snp.h:605
snpSetAdvDataCnf_t setAdvDataCnf
Set advertising data Response.
Definition: snp.h:1389
uint16_t connHandle
2 Byte handle of the connection to update parameters to.
Definition: snp.h:746
Parameter Structure for SNP_setWhiteListFilterPolicy / SNP_SET_WHITE_LIST_POLICY_REQ.
Definition: snp.h:1355
Parameter Structure for SNP_MASK_EVENT_RSP.
Definition: snp.h:575
uint16_t memSize
2 Byte total HEAP size
Definition: snp.h:593
uint8_t rspNeeded
1 Byte Indicate if the AP must answer this indication or not, Options for Response Needed Field ...
Definition: snp.h:1122
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1150
uint8_t status
1 Byte Status of the request (SUCCESS or Error, List of SNP error codes)
Definition: snp.h:1288
uint16_t memAlo
2 Byte HEAP allocated memory
Definition: snp.h:591
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:1593
Parameter Structure for Response to SNP_addCharValueDecl / SNP_ADD_CHAR_VAL_DECL_RSP.
Definition: snp.h:917
uint16_t attrHandle
2 Byte Handle of the characteristic value attribute being written
Definition: snp.h:1121
uint8_t mgmtOption
1 Byte Reserved for future use
Definition: snp.h:899
struct snpSetGattParamRsp_t snpSetSecParamRsp_t
1 Byte Command Status Response
uint16_t snpVer
2 Byte Version of the SNP (major, minor)
Definition: snp.h:644
uint8_t * pData
Pointer to the advertisement data buffer to update, up to 31 Bytes.
Definition: snp.h:719
uint32_t numCmp
32 bit Numeric Comparison value to display, 0 if not used.
Definition: snp.h:1565
uint8_t status
1 Byte Status of the request (SUCCESS or Error, List of SNP error codes)
Definition: snp.h:1072
uint16_t maskedEvent
Definition: snp.h:577
Parameter Structure used to add a generic attribute descriptor (short UUID)
Definition: snp.h:986
uint8_t status
1 Byte Status upon entering this state List of SNP error codes
Definition: snp.h:1519
Parameter Structure for the Characteristic Notification and Indication Request data This is a packed ...
Definition: snp.h:1158
uint8_t status
1 Byte status of the request (SUCCESS or Error, List of SNP error codes)
Definition: snp.h:624
uint16_t value
2 Byte Parameter Value retrieved.
Definition: snp.h:837
snpGetGapParamRsp_t getGapParamRsp
Get GAP parameter Response.
Definition: snp.h:1400
snpSetAuthDataReq_t setAuthDataReq
Set Authentication Data request.
Definition: snp.h:1405
uint8_t type
1 Byte Type of Advertisement data to update, see Adv. data buffer
Definition: snp.h:718
uint16_t attrHandle
2 Byte Attribute handle of the characteristic value.
Definition: snp.h:1289
uint16_t attrHandle
2 Byte Handle of the characteristic value attribute to notify/indicate
Definition: snp.h:1161
uint8_t status
1 Byte Status of the request (SUCCESS or Error, List of SNP error codes)
Definition: snp.h:1101
snpSetAuthDataRsp_t setAuthDataRsp
Set Authentication Data response.
Definition: snp.h:1406
uint16_t intervalMin
2 Byte Minimum value for the connection event interval.
Definition: snp.h:747
uint8_t serviceID
Definition: snp.h:1259
uint8_t reason
1 Byte Reason of the termination connection termination reason.
Definition: snp.h:1473
Parameter Structure for SNP_setGapParam / SNP_SET_GAP_PARAM_REQ.
Definition: snp.h:818
uint8_t * pData
Pointer to data of the value to set.
Definition: snp.h:1315
uint16_t latency
2 Byte
Definition: snp.h:1610
snpGetStatusCmdRsp_t getStatusRsp
Get status Response.
Definition: snp.h:1381
uint16_t offset
2 Byte Offset of the characteristic to start reading from
Definition: snp.h:1088
snpGetGapParamReq_t getGapParamReq
Get GAP parameter Request.
Definition: snp.h:1399
uint8_t perms
1 Byte Permissions of the attribute, GATT Attribute Access Permissions Bit Fields, force to Read only
Definition: snp.h:971
Connection Termination Request Structure.
Definition: snp.h:731
uint16_t supervisionTimeout
2 Byte
Definition: snp.h:1490
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1160
snpSetAdvDataReq_t setAdvDataReq
Set advertising data Request.
Definition: snp.h:1388
uint8_t status
1 Byte Status of the request (SUCCESS or Error, List of SNP error codes)
Definition: snp.h:1149
uint8_t header
Definition: snp.h:1056
SNP Event Structure.
Definition: snp.h:1591
Parameter Structure for the Get GAP Parameter Value Response.
Definition: snp.h:833
Parameter Structure for SNP_getAttrValue / SNP_SET_ATTR_VALUE_REQ.
Definition: snp.h:1299
uint8_t status
1 Byte Command Status List of SNP error codes
Definition: snp.h:1055
uint16_t endHandle
2 Byte Last attribute handle of the registered service
Definition: snp.h:1074
snpAddServiceRsp_t addServiceRsp
Add service response.
Definition: snp.h:1414
Parameter Structure for response to SNP_setAttrValue / SNP_SET_ATTR_VALUE_RSP.
Definition: snp.h:1286
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1342
snpAddAttrCccd_t * pCCCD
Pointer to Parameter Structure, snpAddAttrCccd_t.
Definition: snp.h:1038
The SNP message. A union of all SNP message types.
Definition: snp.h:1364
uint16_t attrHandle
2 Byte Handle of the characteristic value attribute being read
Definition: snp.h:1087
snpSetWhiteListRsp_t setWhiteListRsp
Set the White List Filter Policy response.
Definition: snp.h:1410
uint16_t maxSize
2 Byte Max Size of the data to read
Definition: snp.h:1089
uint8_t status
1 Byte status of the request (SUCCESS or Error, List of SNP error codes)
Definition: snp.h:919
struct snpSetGattParamRsp_t snpSetAdvDataCnf_t
1 Byte Command Status Response
snpATTMTUSizeEvt_t attMTUSizeEvt
Parameter Structure snpATTMTUSizeEvt_t.
Definition: snp.h:1578
Parameter Structure for SNP_startAdv.
Definition: snp.h:691
Parameter Structure for SNP_getRev.
Definition: snp.h:641
uint16_t connHandle
2 Byte Handle of the connection
Definition: snp.h:1548
uint32_t authData
4 Byte Authentication Data. 000000 - 999999 or TRUE/FALSE
Definition: snp.h:853
snpAddServiceReq_t addServiceReq
Add service request.
Definition: snp.h:1413
uint16_t attrHandle
2 Byte attribute handle of the characteristic value.
Definition: snp.h:920
uint8_t * pData
Definition: snp.h:1124
uint16_t paramId
2 Byte GAP Parameter ID, GAP Parameter IDs or snpSetSecParamReq_t
Definition: snp.h:820
snpAddCharDescDeclReq_t addCharDescDeclReq
Add characteristic descriptor Request.
Definition: snp.h:1417
Parameter Structure for response to SNP_getAttrValue / SNP_SET_ATTR_VALUE_RSP.
Definition: snp.h:1311
Parameter Structure for SNP_setAttrValue / SNP_SET_ATTR_VALUE_REQ.
Definition: snp.h:1273
Parameter Structure for SNP_HCI_CMD_RSP.
Definition: snp.h:622
uint8_t * pData
Definition: snp.h:1105
Parameter Structure for the response to SNP_getStatus This is a packed structure. see Dealing with Pa...
Definition: snp.h:665
snpMaskEventReq_t maskEventReq
event mask request.
Definition: snp.h:1367
Parameter Structure for SNP_setAdvData.
Definition: snp.h:716
snpCharCfgUpdatedRsp_t charcfgUpdatedRsp
Characteristic configuration update response.
Definition: snp.h:1437
snpConnTermEvt_t connTermEvt
Parameter Structure snpConnTermEvt_t.
Definition: snp.h:1575
uint16_t initLen
2 Byte initial length of the string, plus one byte for null terminator (must be <= snpAddAttrUserDesc...
Definition: snp.h:973
snpCharReadInd_t readInd
Characteristic read request.
Definition: snp.h:1422
uint8_t * pDesc
Pointer to initial string (must be null terminated)
Definition: snp.h:974
uint16_t eventMask
Definition: snp.h:563
uint8_t type
1 Byte Type of the request, see SNP indication type
Definition: snp.h:1163
Parameter Structure used to add a User Descriptor attribute.
Definition: snp.h:969
snpSetSecParamReq_t setSecParamReq
Set the Security Requirements request.
Definition: snp.h:1403
Parameter Structure for SNP_executeHCIcmd.
Definition: snp.h:603
snpNotifIndReq_t notifIndReq
Notification or indication request.
Definition: snp.h:1426
uint16_t supervisionTimeout
2 Byte
Definition: snp.h:1456
Parameter Structure for SNP_executeTestCmd.
Definition: snp.h:589
uint16_t slaveLatency
2 Byte
Definition: snp.h:1489