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 209 #define SNP_BLE_NO_RESOURCES bleNoResources 210 #define SNP_BLE_GAP_BOND_REJECTED bleGAPBondRejected 211 #define SNP_BLE_MEM_ALLOC_ERROR bleMemAllocError 212 #define SNP_BLE_TIMEOUT bleTimeout 213 #define SNP_INVALIDPARAMETER INVALIDPARAMETER 222 #define SNP_LL_ENC_KEY_REQ_REJECTED LL_ENC_KEY_REQ_REJECTED 223 #define SNP_LL_ENC_KEY_REQ_UNSUPPORTED_FEATURE LL_ENC_KEY_REQ_UNSUPPORTED_FEATURE 224 #define SNP_LL_CTRL_PKT_TIMEOUT_TERM LL_CTRL_PKT_TIMEOUT_TERM 225 #define SNP_LL_STATUS_ERROR_BAD_PARAMETER LL_STATUS_ERROR_BAD_PARAMETER 226 #define SNP_LL_STATUS_ERROR_COMMAND_DISALLOWED LL_STATUS_ERROR_COMMAND_DISALLOWED 227 #define SNP_LL_STATUS_ERROR_FEATURE_NOT_SUPPORTED LL_STATUS_ERROR_FEATURE_NOT_SUPPORTED 228 #define SNP_LL_STATUS_ERROR_CTRL_PROC_ALREADY_ACTIVE LL_STATUS_ERROR_CTRL_PROC_ALREADY_ACTIVE 229 #define SNP_LL_STATUS_ERROR_INACTIVE_CONNECTION LL_STATUS_ERROR_INACTIVE_CONNECTION 238 #define SNP_SMP_PAIRING_FAILED_UNSPECIFIED SMP_PAIRING_FAILED_UNSPECIFIED 239 #define SNP_SMP_PAIRING_FAILED_NUM_COMPARISON_FAILED SMP_PAIRING_FAILED_NUM_COMPARISON_FAILED 240 #define SNP_SMP_PAIRING_FAILED_NOT_SUPPORTED SMP_PAIRING_FAILED_NOT_SUPPORTED 241 #define SNP_SMP_PAIRING_FAILED_PASSKEY_ENTRY_FAILED SMP_PAIRING_FAILED_PASSKEY_ENTRY_FAILED 242 #define SNP_SMP_PAIRING_FAILED_AUTH_REQ SMP_PAIRING_FAILED_AUTH_REQ 243 #define SNP_SMP_PAIRING_FAILED_ENC_KEY_SIZE SMP_PAIRING_FAILED_ENC_KEY_SIZE 244 #define SNP_SMP_PAIRING_FAILED_CMD_NOT_SUPPORTED SMP_PAIRING_FAILED_CMD_NOT_SUPPORTED 245 #define SNP_SMP_PAIRING_FAILED_OOB_NOT_AVAIL SMP_PAIRING_FAILED_OOB_NOT_AVAIL 246 #define SNP_SMP_PAIRING_FAILED_CONFIRM_VALUE SMP_PAIRING_FAILED_CONFIRM_VALUE 247 #define SNP_SMP_PAIRING_FAILED_DHKEY_CHECK_FAILED SMP_PAIRING_FAILED_DHKEY_CHECK_FAILED 253 #define SNP_CONN_EST_EVT 0x0001 254 #define SNP_CONN_TERM_EVT 0x0002 255 #define SNP_CONN_PARAM_UPDATED_EVT 0x0004 256 #define SNP_ADV_STARTED_EVT 0x0008 257 #define SNP_ADV_ENDED_EVT 0x0010 258 #define SNP_ATT_MTU_EVT 0x0020 259 #define SNP_SECURITY_EVT 0x0040 260 #define SNP_AUTHENTICATION_EVT 0x0080 261 #define SNP_ERROR_EVT 0x8000 265 #define SNP_DEV_ALL_EVENT_MASK (SNP_CONN_EST_EVT | SNP_CONN_TERM_EVT | \ 267 SNP_CONN_PARAM_UPDATED_EVT | SNP_ADV_STARTED_EVT | SNP_ADV_ENDED_EVT | \ 268 SNP_ATT_MTU_EVT | SNP_ERROR_EVT) 274 #define SNP_HCI_OPCODE_EXT_SET_TX_POWER 0xFC01 275 #define SNP_HCI_OPCODE_EXT_MODEM_TEST_TX 0xFC08 276 #define SNP_HCI_OPCODE_EXT_MODEM_HOP_TEST_TX 0xFC09 277 #define SNP_HCI_OPCODE_EXT_MODEM_TEST_RX 0xFC0A 278 #define SNP_HCI_OPCODE_EXT_END_MODEM_TEST 0xFC0B 279 #define SNP_HCI_OPCODE_EXT_SET_BDADDR 0xFC0C 280 #define SNP_HCI_OPCODE_EXT_SET_SCA 0xFC0D 281 #define SNP_HCI_OPCODE_EXT_ENABLE_PTM 0xFC0E 282 #define SNP_HCI_OPCODE_EXT_SET_MAX_DTM_TX_POWER 0xFC11 283 #define SNP_HCI_OPCODE_EXT_RESET_SYSTEM 0xFC1D 284 #define SNP_HCI_OPCODE_READ_BDADDR 0x1009 285 #define SNP_HCI_OPCODE_READ_RSSI 0x1405 286 #define SNP_HCI_OPCODE_LE_RECEIVER_TEST 0x201D 287 #define SNP_HCI_OPCODE_LE_TRANSMITTER_TEST 0x201E 288 #define SNP_HCI_OPCODE_LE_TEST_END 0x201F 289 #define SNP_HCI_OPCODE_EXT_PER 0xFC14 290 #define SNP_HCI_OPCODE_EXT_DECRYPT 0xFC05 291 #define SNP_HCI_OPCODE_LE_ENCRYPT 0x2017 292 #define SNP_HCI_OPCODE_EXT_OVERRIDE_SL 0xFC1A 293 #define SNP_HCI_OPCODE_EXT_SET_FAST_TX_RESP_TIME 0xFC07 294 #define SNP_HCI_OPCODE_EXT_ONE_PKT_PER_EVT 0xFC02 295 #define SNP_HCI_OPCODE_EXT_GET_CONNECTION_INFO 0xFC20 300 #define SNP_HCI_OPCODE_SIZE 0x02 308 #define SNP_ADV_TYPE_CONN 0x00 309 #define SNP_ADV_TYPE_SCANABLE 0x02 310 #define SNP_ADV_TYPE_NONCONN 0x03 318 #define SNP_FILTER_POLICY_ALL 0x00 319 #define SNP_FILTER_POLICY_WHITE 0x03 327 #define SNP_ADV_STOP_ON_CONN 0x00 329 #define SNP_ADV_RESTART_ON_CONN_EST 0x01 332 #define SNP_ADV_RESTART_ON_CONN_TERM 0x02 342 #define SNP_SCANRSP_DATA 0x00 // Scan response data 344 #define SNP_NONCONN_ADV_DATA 0x01 // Non-connectable advertising data. 346 #define SNP_CONN_ADV_DATA 0x02 // Connectable advertising data. 352 #define SNP_MAX_ADVDATA_LENGTH 31 359 #define SNP_CT_SUPERVISOR_TO 0x08 360 #define SNP_CT_PEER_REQ 0x13 361 #define SNP_CT_HOST_REQ 0x16 362 #define SNP_CT_CTRL_PKT_TO 0x22 363 #define SNP_CT_CTRL_PKT_INST_PASS 0x28 364 #define SNP_CT_LSTO_VIOLATION 0x3B 365 #define SNP_CT_MIC_FAILURE 0x3D 371 #define SNP_CONN_INT_MIN 0x0006 373 #define SNP_CONN_INT_MAX 0x0C80 375 #define SNP_CONN_SL_MIN 0x0000 377 #define SNP_CONN_SL_MAX 0x01F3 379 #define SNP_CONN_SUPERVISOR_TIMEOUT_MIN 0x000A 381 #define SNP_CONN_SUPERVISOR_TIMEOUT_MAX 0x0C80 386 #define SNP_PRIMARY_SERVICE 1 388 #define SNP_SECONDARY_SERVICE 2 392 #define SNP_CHAR_MANAGED_BY_AP 0x00 393 #define SNP_CHAR_MANAGED_BY_NP 0x01 398 #define SNP_16BIT_UUID_SIZE 2 399 #define SNP_128BIT_UUID_SIZE 16 405 #define SNP_GATT_PERMIT_READ 0x01 408 #define SNP_GATT_PERMIT_WRITE 0x02 410 #define SNP_GATT_PERMIT_AUTHEN_READ 0x04 412 #define SNP_GATT_PERMIT_AUTHEN_WRITE 0x08 414 #define SNP_GATT_PERMIT_ENCRYPT_READ 0x40 416 #define SNP_GATT_PERMIT_ENCRYPT_WRITE 0x80 421 #define SNP_GATT_PERM_RFU_MASK (SNP_GATT_PERMIT_READ | \ 423 SNP_GATT_PERMIT_WRITE | \ 424 SNP_GATT_PERMIT_AUTHEN_READ | \ 425 SNP_GATT_PERMIT_AUTHEN_WRITE | \ 426 SNP_GATT_PERMIT_ENCRYPT_READ | \ 427 SNP_GATT_PERMIT_ENCRYPT_WRITE) 432 #define SNP_GATT_PROP_READ 0x0002 433 #define SNP_GATT_PROP_WRITE_NORSP 0x0004 434 #define SNP_GATT_PROP_WRITE 0x0008 435 #define SNP_GATT_PROP_NOTIFICATION 0x0010 436 #define SNP_GATT_PROP_INDICATION 0x0020 439 #define SNP_GATT_CHAR_MAX_LENGTH 512 445 #define SNP_SEND_NOTIFICATION 0x01 447 #define SNP_SEND_INDICATION 0x02 455 #define SNP_GGS_SERV_ID 0x01 456 #define SNP_DIS_SERV_ID 0x02 462 #define SNP_DEVINFO_SYSTEM_ID 0 463 #define SNP_DEVINFO_MODEL_NUMBER 1 464 #define SNP_DEVINFO_SERIAL_NUMBER 2 465 #define SNP_DEVINFO_FIRMWARE_REV 3 466 #define SNP_DEVINFO_HARDWARE_REV 4 467 #define SNP_DEVINFO_SOFTWARE_REV 5 468 #define SNP_DEVINFO_MANUFACTURER_NAME 6 469 #define SNP_DEVINFO_11073_CERT_DATA 7 470 #define SNP_DEVINFO_PNP_ID 8 472 #define SNP_DEVINFO_SYSTEM_ID_LEN 8 476 #define SNP_DEVINFO_PNP_ID_LEN 7 480 #define SNP_DEVINFO_STRING_LEN 21 486 #define SNP_GGS_DEVICE_NAME_ATT 0 487 #define SNP_GGS_APPEARANCE_ATT 1 488 #define SNP_GGS_PERI_PRIVACY_FLAG_ATT 2 489 #define SNP_GGS_RECONNCT_ADDR_ATT 3 490 #define SNP_GGS_PERI_CONN_PARAM_ATT 4 491 #define SNP_GGS_PERI_PRIVACY_FLAG_PROPS 5 492 #define SNP_GGS_W_PERMIT_DEVICE_NAME_ATT 6 493 #define SNP_GGS_W_PERMIT_APPEARANCE_ATT 7 494 #define SNP_GGS_W_PERMIT_PRIVACY_FLAG_ATT 8 496 #define SNP_GAP_DEVICE_NAME_LEN 21 500 #define SNP_GAP_PRIVACY_DISABLED 0x00 501 #define SNP_GAP_PRIVACY_ENABLED 0x01 508 #define SNP_DESC_HEADER_GEN_SHORT_UUID 0x01 509 #define SNP_DESC_HEADER_GEN_LONG_UUID 0x02 510 #define SNP_DESC_HEADER_CCCD 0x04 511 #define SNP_DESC_HEADER_FORMAT 0x08 512 #define SNP_DESC_HEADER_USER_DESC 0x80 513 #define SNP_DESC_HEADER_UNSUPPORTED_MASK 0x70 516 #define SNP_GATT_CLIENT_CFG_NOTIFY 0x0001 517 #define SNP_GATT_CLIENT_CFG_INDICATE 0x0002 522 #define SNP_RESPONSE_NOT_NEEDED 0x00 523 #define SNP_RESPONSE_NEEDED 0x01 526 #define SNP_INVALID_HANDLE 0x0000 532 #define SNP_GAP_TERM_CONN_DEFAULT 0x00 533 #define SNP_GAP_TERM_CONN_IMMEDIATLY 0x01 539 #define SNP_GAPBOND_PAIRING_MODE 0x00 540 #define SNP_GAPBOND_IO_CAPABILITIES 0x01 541 #define SNP_GAPBOND_BONDING_ENABLED 0x02 542 #define SNP_GAPBOND_ERASE_ALLBONDS 0x03 543 #define SNP_GAPBOND_LRU_BOND_REPLACEMENT 0x04 549 #define SNP_GAPBOND_PAIRING_STATE_COMPLETE 0x01 550 #define SNP_GAPBOND_PAIRING_STATE_BONDED 0x02 551 #define SNP_GAPBOND_PAIRING_STATE_BOND_SAVED 0x03 572 PACKED_TYPEDEF_STRUCT
586 PACKED_TYPEDEF_STRUCT
600 PACKED_TYPEDEF_STRUCT
614 PACKED_TYPEDEF_STRUCT
633 PACKED_TYPEDEF_STRUCT
652 PACKED_TYPEDEF_STRUCT
656 uint8_t stackBuildVer[10];
666 PACKED_TYPEDEF_STRUCT
676 PACKED_TYPEDEF_STRUCT
702 PACKED_TYPEDEF_STRUCT
709 uint8_t filterPolicy;
713 uint8_t initiatorAddress[6];
727 PACKED_TYPEDEF_STRUCT
742 PACKED_TYPEDEF_STRUCT
755 PACKED_TYPEDEF_STRUCT
759 uint16_t intervalMax;
765 uint16_t slaveLatency;
771 uint16_t supervisionTimeout;
790 PACKED_TYPEDEF_STRUCT
829 PACKED_TYPEDEF_STRUCT
844 PACKED_TYPEDEF_STRUCT
862 PACKED_TYPEDEF_STRUCT
876 PACKED_TYPEDEF_STRUCT
906 PACKED_TYPEDEF_STRUCT
928 PACKED_TYPEDEF_STRUCT
948 PACKED_TYPEDEF_STRUCT
962 PACKED_TYPEDEF_STRUCT
980 PACKED_TYPEDEF_STRUCT
997 PACKED_TYPEDEF_STRUCT
1015 PACKED_TYPEDEF_STRUCT
1044 PACKED_TYPEDEF_STRUCT
1064 PACKED_TYPEDEF_STRUCT
1068 uint16_t handles[6];
1081 PACKED_TYPEDEF_STRUCT
1095 PACKED_TYPEDEF_STRUCT
1110 PACKED_TYPEDEF_STRUCT
1129 PACKED_TYPEDEF_STRUCT
1158 PACKED_TYPEDEF_STRUCT
1169 PACKED_TYPEDEF_STRUCT
1246 PACKED_TYPEDEF_STRUCT
1268 PACKED_TYPEDEF_STRUCT
1284 PACKED_TYPEDEF_STRUCT
1297 PACKED_TYPEDEF_STRUCT
1310 PACKED_TYPEDEF_STRUCT
1322 PACKED_TYPEDEF_STRUCT
1336 PACKED_TYPEDEF_STRUCT
1351 PACKED_TYPEDEF_STRUCT
1366 PACKED_TYPEDEF_STRUCT
1462 PACKED_TYPEDEF_STRUCT
1481 PACKED_TYPEDEF_STRUCT
1496 PACKED_TYPEDEF_STRUCT
1513 PACKED_TYPEDEF_STRUCT
1527 PACKED_TYPEDEF_STRUCT
1542 PACKED_TYPEDEF_STRUCT
1557 PACKED_TYPEDEF_STRUCT
1572 PACKED_TYPEDEF_STRUCT
1602 PACKED_TYPEDEF_STRUCT
1635 #define SNP_CMD1_HDR_MASK 0xC0 1639 #define SNP_CMD1_HDR_POS 0x6 1642 #define SNP_GET_OPCODE_HDR_CMD1(cmd) (((cmd) & SNP_CMD1_HDR_MASK) >> SNP_CMD1_HDR_POS) 1645 #define SNP_CMD1_ID_MASK 0x3F 1648 #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:1557
uint16_t value
2 Byte Parameter Value set if for SET command
Definition: snp.h:832
uint16_t memAlo
2 Byte HEAP allocated memory
Definition: snp.h:602
Parameter Structure for the Error Event SNP_ERROR_EVT.
Definition: snp.h:1542
uint16_t event
2 Byte Event, list of asynchronous events generated by the SNP.
Definition: snp.h:1604
uint8_t header
1 Byte Header Field, SNP GATT Descriptors Header
Definition: snp.h:1046
Parameter Structure for SNP_updateConnParam.
Definition: snp.h:755
uint16_t maskedEvent
Definition: snp.h:588
Parameter Structure for the Security Event.
Definition: snp.h:1527
snpSetSecParamReq_t setSecParamReq
Set the Security Requirements request.
Definition: snp.h:1414
Parameter Structure for SNP_CHAR_READ_IND / @ ref SNP_charRead.
Definition: snp.h:1095
uint8_t reason
1 Byte Reason of the termination connection termination reason.
Definition: snp.h:1484
Parameter Structure for the Characteristic Configuration Update Indication.
Definition: snp.h:1351
snpSetSecParamRsp_t setSecParamRsp
Set Security Requirements response.
Definition: snp.h:1415
uint32_t authData
4 Byte Authentication Data. 000000 - 999999 or TRUE/FALSE
Definition: snp.h:864
snpRegisterServiceRsp_t registerService
Register service Response.
Definition: snp.h:1430
struct snpCharWriteCnf_t snpNotifIndCnf_t
Parameter Structure for SNP_sendNotifcnf_rsp - Same Structure as snpCharWriteCnf_t.
Connection parameters for the peripheral device.
Definition: snp.h:1617
snpErrorEvt_t advErrorEvt
Parameter Structure snpErrorEvt_t.
Definition: snp.h:1590
Parameter Structure for SNP_setGATTParam / SNP_SET_GATT_PARAM_RSP.
Definition: snp.h:1268
uint16_t charValMaxLen
Definition: snp.h:911
Parameter Structure for SNP_getGATTParam / SNP_GET_GATT_PARAM_REQ.
Definition: snp.h:1336
Parameter Structure for the Characteristic Write Request Indication data.
Definition: snp.h:1129
snpSetGapParamRsp_t setGapParamRsp
Set GAP parameter Response.
Definition: snp.h:1409
snpUpdateConnParamCnf_t updateConnParamsCnf
Update connection parameters, request.
Definition: snp.h:1405
Parameter Structure for SNP_UPDATE_CONN_PARAM_CNF.
Definition: snp.h:790
Parameter Structure for SNP_setAuthenticationData / SNP_SET_AUTHENTICATION_DATA_REQ.
Definition: snp.h:862
uint8_t useWhiteList
1 Byte White List Filter Policy, Advertisement Filter Policy Type
Definition: snp.h:1368
uint16_t attrHandle
2 Byte attribute handle of the characteristic value.
Definition: snp.h:931
uint16_t startHandle
2 Byte First attribute handle of the registered service
Definition: snp.h:1084
struct snpSetGattParamRsp_t snpAddServiceRsp_t
1 Byte Command Status Response
Parameter Structure for the Connection Established Event.
Definition: snp.h:1462
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:1158
uint32_t rand
32-bit Random Number generated by TRNG
Definition: snp.h:668
Parameter Structure for the Connection terminated Event.
Definition: snp.h:1481
uint16_t memSize
2 Byte total HEAP size
Definition: snp.h:604
uint16_t memMax
2 Byte maximum HEAP ever allocated since startup
Definition: snp.h:603
struct snpSetGattParamRsp_t snpSetGapParamRsp_t
1 Byte Command Status Response
snpAuthenticationEvt_t authenticationEvt
Parameter Structure snpAuthenticationEvt_t.
Definition: snp.h:1592
Parameter Structure for SNP_addDescriptionValue.
Definition: snp.h:1044
snpGetRevisionRsp_t revisionRsp
Get revision Response.
Definition: snp.h:1382
snpUpdateConnParamEvt_t updateConnParamEvt
Parameter Structure snpUpdateConnParamEvt_t.
Definition: snp.h:1587
Parameter Structure for the Advertising state change Event.
Definition: snp.h:1513
Parameter Structure used to add a generic attribute descriptor (long UUID)
Definition: snp.h:1015
uint8_t initiatorAddrType
1 Byte Initiator Address Type, Reserved for Future Use
Definition: snp.h:712
snpCharReadInd_t readInd
Characteristic read request.
Definition: snp.h:1433
uint8_t authenticate
1 Byte Reserved for future use
Definition: snp.h:1173
uint8_t option
1 Byte Type of disconnection requested. see GAP GATT Terminate connection request option field...
Definition: snp.h:745
Parameter Structure to add new Characteristic Description Response SNP_ADD_CHAR_DESC_DECL_RSP.
Definition: snp.h:1064
Parameter Structure for MITM Authentication data to be displayed.
Definition: snp.h:1572
snpStartAdvReq_t startAdv
Start advertising request.
Definition: snp.h:1398
SNP Event Parameters.
Definition: snp.h:1583
uint8_t status
1 Byte status of the request (SUCCESS or Error, list of status generated by the SNP.)
Definition: snp.h:635
uint16_t attMtuSize
2 Byte New ATT MTU Size negotiated between GATT client and GATT server.
Definition: snp.h:1560
struct snpSetGattParamRsp_t snpSetWhiteListRsp_t
1 Byte Command Status Response
uint16_t initLen
2 Byte initial length of the string, plus one byte for null terminator (must be <= snpAddAttrUserDesc...
Definition: snp.h:984
snpAddServiceRsp_t addServiceRsp
Add service response.
Definition: snp.h:1425
snpTestCmdRsp_t testCmdRsp
Test command response.
Definition: snp.h:1395
Parameter Structure for the response to SNP_getRev.
Definition: snp.h:666
uint16_t unit
2 Byte Unit, as described by BLE Spec, Vol 3, Part G, Chapter 3.3
Definition: snp.h:966
uint16_t endHandle
2 Byte Last attribute handle of the registered service
Definition: snp.h:1085
Parameter Structure for SNP_registerService / SNP_REGISTER_SERVICE_RSP.
Definition: snp.h:1081
snpSecurityEvt_t securityEvt
Parameter Structure snpSecurityEvt_t.
Definition: snp.h:1591
uint16_t desc
< 1 Byte Namespace, as described by BLE Spec, Vol 3, Part G, Chapter 3.3
Definition: snp.h:967
uint16_t latency
2 Byte
Definition: snp.h:1621
Parameter Structure for the Update Connection Parameter Event.
Definition: snp.h:1496
snpConnTermEvt_t connTermEvt
Parameter Structure snpConnTermEvt_t.
Definition: snp.h:1586
snpATTMTUSizeEvt_t attMTUSizeEvt
Parameter Structure snpATTMTUSizeEvt_t.
Definition: snp.h:1589
uint8_t behavior
1 Byte Behavior of Advertisement on connection event, Adv. behavior when connection are established o...
Definition: snp.h:714
snpAddAttrFormat_t * pFormat
Pointer to Parameter Structure, snpAddAttrFormat_t.
Definition: snp.h:1050
snpSetGattParamRsp_t setGattParamRsp
Set GATT parameter response.
Definition: snp.h:1442
snpGetGapParamReq_t getGapParamReq
Get GAP parameter Request.
Definition: snp.h:1410
uint8_t perms
1 Byte permissions of the attribute, GATT Attribute Access Permissions Bit Fields ...
Definition: snp.h:950
Parameter Structure for SNP_CHAR_READ_CNF / snpCharReadCnf_t.
Definition: snp.h:1110
snpAddAttrUserDesc_t * pUserDesc
Pointer to Parameter Structure, snpAddAttrUserDesc_t.
Definition: snp.h:1051
snpAddAttrGenLongUUID_t * pLongUUID
Pointer to Parameter Structure, snpAddAttrGenLongUUID_t.
Definition: snp.h:1048
struct snpSetGapParamReq_t snpGetGapParamReq_t
Parameter Structure for SNP_getGapParam / SNP_GET_GAP_PARAM_REQ - Same Structure as snpSetGapParamReq...
struct snpCharWriteCnf_t snpCharCfgUpdatedRsp_t
Parameter Structure for SNP_processCharConfigUpdatedCnf / SNP_CCCD_UPDATED_CNF - Same Structure as sn...
snpGetStatusCmdRsp_t getStatusRsp
Get status Response.
Definition: snp.h:1392
snpUpdateConnParamReq_t updateConnParamsReq
Update connection parameters indication.
Definition: snp.h:1404
uint16_t maxSize
2 Byte Max Size of the data to read
Definition: snp.h:1100
uint8_t gapRoleStatus
1 Byte Current state of the GAP Role ( gaprole_States_t)
Definition: snp.h:678
snpCharCfgUpdatedRsp_t charcfgUpdatedRsp
Characteristic configuration update response.
Definition: snp.h:1448
uint16_t snpVer
2 Byte Version of the SNP (major, minor)
Definition: snp.h:655
Parameter Structure used for SNP_addCharValueDecl / SNP_ADD_CHAR_VAL_DECL_REQ.
Definition: snp.h:906
uint8_t charValPerms
1 Byte permissions of the value attribute, see GATT Attribute Access Permissions Bit Fields ...
Definition: snp.h:908
1 Byte Command Status Response
Definition: snp.h:1246
snpAddCharDescDeclRsp_t addCharDescDeclRsp
Add characteristic descriptor Response.
Definition: snp.h:1429
uint16_t supervisionTimeout
2 Byte
Definition: snp.h:1467
uint16_t connHandle
2 Byte Connection Handle to terminate
Definition: snp.h:744
snpCharWriteCnf_t charWriteCnf
Characteristic write confirmation.
Definition: snp.h:1436
snpNotifIndReq_t notifIndReq
Notification or indication request.
Definition: snp.h:1437
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:948
snpSetAdvDataCnf_t setAdvDataCnf
Set advertising data Response.
Definition: snp.h:1400
uint8_t type
1 Byte Type of Advertisement, see Advertisement Type
Definition: snp.h:704
uint8_t addressType
1 Byte Type of initiator address
Definition: snp.h:1468
uint8_t input
1 Byte TRUE if device must input passcode.
Definition: snp.h:1575
snpCharReadCnf_t readCnf
Characteristic read confirmation.
Definition: snp.h:1434
snpAddCharValueDeclRsp_t addCharValueDecRsp
Add characteristic value Response.
Definition: snp.h:1427
SNP_CMD1_HDR_TYPE
list of subgroup
Definition: snp.h:72
uint8_t * pData
Definition: snp.h:637
snpHciCmdRsp_t hciCmdRsp
HCI command response (event)
Definition: snp.h:1389
Add Service Request Structure for SNP_addService / SNP_ADD_SERVICE_REQ.
Definition: snp.h:876
Parameter Structure for SNP_maskEvt.
Definition: snp.h:572
Parameter Structure for SNP_setWhiteListFilterPolicy / SNP_SET_WHITE_LIST_POLICY_REQ.
Definition: snp.h:1366
uint16_t timeout
2 Byte Timeout of the advertisement.
Definition: snp.h:705
Parameter Structure for SNP_MASK_EVENT_RSP.
Definition: snp.h:586
uint8_t state
1 Byte New Security State Security States
Definition: snp.h:1529
struct snpSetGattParamRsp_t snpSetAuthDataRsp_t
1 Byte Command Status Response
Parameter Structure for Response to SNP_addCharValueDecl / SNP_ADD_CHAR_VAL_DECL_RSP.
Definition: snp.h:928
struct snpSetGattParamRsp_t snpSetSecParamRsp_t
1 Byte Command Status Response
snpAddCharValueDeclReq_t addCharValueDecReq
Add characteristic value Request.
Definition: snp.h:1426
uint16_t offset
2 Byte Offset of the characteristic to start reading from
Definition: snp.h:1099
snpSetGattParamReq_t setGattParamReq
Set GATT parameter request.
Definition: snp.h:1441
Parameter Structure used to add a generic attribute descriptor (short UUID)
Definition: snp.h:997
snpCharCfgUpdatedInd_t charCfgUpdatedReq
Characteristic configuration updated indication.
Definition: snp.h:1447
snpGetGattParamReq_t getGattParamReq
Get GATT parameter response.
Definition: snp.h:1443
Parameter Structure for the Characteristic Notification and Indication Request data This is a packed ...
Definition: snp.h:1169
uint16_t intervalMin
2 Byte Minimum value for the connection event interval.
Definition: snp.h:758
snpAddServiceReq_t addServiceReq
Add service request.
Definition: snp.h:1424
snpSetAuthDataReq_t setAuthDataReq
Set Authentication Data request.
Definition: snp.h:1416
snpEventParam_t * pEvtParams
snpEventParam_t
Definition: snp.h:1605
uint16_t charValProps
2 Byte property of the value attribute, see GATT Characteristic Properties Bit Fields ...
Definition: snp.h:909
Parameter Structure for SNP_setGapParam / SNP_SET_GAP_PARAM_REQ.
Definition: snp.h:829
snpAddAttrCccd_t * pCCCD
Pointer to Parameter Structure, snpAddAttrCccd_t.
Definition: snp.h:1049
uint8_t paramID
1 Byte ID of the parameter to retrieved.
Definition: snp.h:1339
snpMaskEventRsp_t maskEventCnf
event mask confirmation.
Definition: snp.h:1379
uint16_t connInterval
2 Byte
Definition: snp.h:1465
snpSetAuthDataRsp_t setAuthDataRsp
Set Authentication Data response.
Definition: snp.h:1417
snpHciCmdReq_t hciCmdReq
HCI command request.
Definition: snp.h:1388
Connection Termination Request Structure.
Definition: snp.h:742
uint16_t intervalMax
2 Byte
Definition: snp.h:1620
snpNotifIndCnf_t notifIndCnf
Indication Confirmation.
Definition: snp.h:1438
uint16_t cccdHandle
2 Byte Handle of the characteristic value attribute to notify/indicate
Definition: snp.h:1354
snpSetWhiteListRsp_t setWhiteListRsp
Set the White List Filter Policy response.
Definition: snp.h:1421
uint16_t opcode
Definition: snp.h:616
SNP Event Structure.
Definition: snp.h:1602
Parameter Structure for the Get GAP Parameter Value Response.
Definition: snp.h:844
Parameter Structure for SNP_getAttrValue / SNP_SET_ATTR_VALUE_REQ.
Definition: snp.h:1310
uint16_t eventMask
Definition: snp.h:574
snpSetGapParamReq_t setGapParamReq
Set GAP parameter Request.
Definition: snp.h:1408
Parameter Structure for response to SNP_setAttrValue / SNP_SET_ATTR_VALUE_RSP.
Definition: snp.h:1297
snpAdvStatusEvt_t advStatusEvt
Parameter Structure snpAdvStatusEvt_t.
Definition: snp.h:1588
uint32_t numCmp
32 bit Numeric Comparison value to display, 0 if not used.
Definition: snp.h:1576
The SNP message. A union of all SNP message types.
Definition: snp.h:1375
snpSetAdvDataReq_t setAdvDataReq
Set advertising data Request.
Definition: snp.h:1399
uint16_t slaveLatency
2 Byte
Definition: snp.h:1466
snpGetGapParamRsp_t getGapParamRsp
Get GAP parameter Response.
Definition: snp.h:1411
struct snpSetGattParamRsp_t snpSetAdvDataCnf_t
1 Byte Command Status Response
snpTermConnReq_t connTermReq
Connection terminated Request.
Definition: snp.h:1403
Parameter Structure for SNP_startAdv.
Definition: snp.h:702
Parameter Structure for SNP_getRev.
Definition: snp.h:652
uint16_t paramId
2 Byte GAP Parameter ID, GAP Parameter IDs or snpSetSecParamReq_t
Definition: snp.h:831
snpCharWriteInd_t charWriteInd
Characteristic write request.
Definition: snp.h:1435
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:983
uint8_t display
1 Byte TRUE if device must display passcode.
Definition: snp.h:1574
Parameter Structure for response to SNP_getAttrValue / SNP_SET_ATTR_VALUE_RSP.
Definition: snp.h:1322
Parameter Structure for SNP_setAttrValue / SNP_SET_ATTR_VALUE_REQ.
Definition: snp.h:1284
Parameter Structure for SNP_HCI_CMD_RSP.
Definition: snp.h:633
uint8_t * pDesc
Pointer to initial string (must be null terminated)
Definition: snp.h:985
Parameter Structure for the response to SNP_getStatus This is a packed structure. see Dealing with Pa...
Definition: snp.h:676
Parameter Structure for SNP_setAdvData.
Definition: snp.h:727
snpGetGattParamRsp_t getGattParamRsp
Get GATT parameter request.
Definition: snp.h:1444
uint8_t exponent
1 Byte Exponent, as described by BLE Spec, Vol 3, Part G, Chapter 3.3
Definition: snp.h:965
uint8_t mgmtOption
1 Byte Reserved for future use
Definition: snp.h:910
snpGetRandRsp_t randRsp
Get Random Number Response.
Definition: snp.h:1385
snpConnEstEvt_t connEstEvt
Parameter Structure snpConnEstEvt_t.
Definition: snp.h:1585
snpAddCharDescDeclReq_t addCharDescDeclReq
Add characteristic descriptor Request.
Definition: snp.h:1428
uint8_t rspNeeded
1 Byte Indicate if the AP must answer this indication or not, Options for Response Needed Field ...
Definition: snp.h:1133
Parameter Structure used to add a User Descriptor attribute.
Definition: snp.h:980
snpAddAttrGenShortUUID_t * pShortUUID
Pointer to Parameter Structure, snpAddAttrGenShortUUID_t.
Definition: snp.h:1047
uint8_t serviceID
Definition: snp.h:1270
Parameter Structure for SNP_executeHCIcmd.
Definition: snp.h:614
snpMaskEventReq_t maskEventReq
event mask request.
Definition: snp.h:1378
uint8_t format
1 Byte Format, as described by BLE Spec, Vol 3, Part G, Chapter 3.3
Definition: snp.h:964
Parameter Structure for SNP_executeTestCmd.
Definition: snp.h:600
snpSetWhiteListReq_t setWhiteListReq
Set the White List Filter Policy request.
Definition: snp.h:1420