TI BLE-Stack for Bluetooth 4.2 API Documentation  3.01.00.07
Modules | Macros | Enumerations
SNP Constants

Modules

 Adv. behavior when connection are established or terminated.
 
 Adv. data buffer
 
 Advertisement Filter Policy Type
 
 Advertisement Type
 
 Device Information Service Parameters
 
 GAP Bond Manager parameters
 
 GAP GATT Server Parameters
 
 GAP GATT Terminate connection request option field
 
 GATT Attribute Access Permissions Bit Fields
 
 GATT Characteristic Properties Bit Fields
 
 List of GAP commands for device sub group
 
 List of GAP responses/indications for device sub group
 
 List of GATT commands for device sub group
 
 List of GATT responses/indications for device sub group
 
 List of commands for device sub group
 
 List of indication/response for device sub group
 
 NPI frame type for SNP (NPI cmd 0)
 list of command type (include SNP subsystem)
 
 Options for Response Needed Field
 
 Predefined services
 
 SNP GATT Descriptors Header
 
 SNP UUID sizes
 
 SNP indication type
 
 Security States
 
 Service Type
 
 connection termination reason.
 Connection Terminated (CT)
 
 list of all HCI commands allowed by the SNP.
 
 list of asynchronous events generated by the SNP.
 
 list of status generated by the SNP.
 

Macros

#define SNP_CHAR_MANAGED_BY_AP   0x00
 characteristic value management Management option (RFU)
 
#define SNP_CHAR_MANAGED_BY_NP   0x01
 characteristic value management Management option (RFU)
 
#define SNP_CONN_INT_MAX   0x0C80
 maximal connection interval range: 4a
 
#define SNP_CONN_INT_MIN   0x0006
 Connection Interval Range (in 1.25ms units, ranging from 7.5ms to 4s) More...
 
#define SNP_CONN_SL_MAX   0x01F3
 maximum slave latency value
 
#define SNP_CONN_SL_MIN   0x0000
 Slave Latency Ranges. More...
 
#define SNP_CONN_SUPERVISOR_TIMEOUT_MAX   0x0C80
 maximum supervision timeout, multiple of 10ms
 
#define SNP_CONN_SUPERVISOR_TIMEOUT_MIN   0x000A
 Supervisor Timeout Range (in 10ms units, ranging from 100ms to 32 seconds) More...
 
#define SNP_DEV_ALL_EVENT_MASK
 this mask check that only meaningful event can be masked/send. More...
 
#define SNP_GATT_CHAR_MAX_LENGTH   512
 Maximum Length of the Characteristic Value Attribute.
 
#define SNP_GATT_CLIENT_CFG_INDICATE   0x0002
 The Characteristic Value shall be indicated.
 
#define SNP_GATT_CLIENT_CFG_NOTIFY   0x0001
 The Characteristic Value shall be notified.
 
#define SNP_GATT_PERM_RFU_MASK
 mask for clearing RFU bits on the attribute permissions field More...
 
#define SNP_HCI_OPCODE_SIZE   0x02
 Number of bytes an HCI OPCODE should be.
 
#define SNP_IMAGE_START   0x00000000
 Location in memory where the SNP image is located.
 
#define SNP_INVALID_HANDLE   0x0000
 Invalid Handle.
 
#define SNP_MAX_ADVDATA_LENGTH   31
 < This is the maximum size of a scan response or advertising data buffer.
 

Enumerations

enum  SNP_CMD1_HDR_TYPE { SNP_DEVICE_GRP = 0, SNP_GAP_GRP, SNP_GATT_GRP, SNP_RFU_GRP }
 list of subgroup
 

Detailed Description

Defines used in SNP

Macro Definition Documentation

§ SNP_CONN_INT_MIN

#define SNP_CONN_INT_MIN   0x0006

Connection Interval Range (in 1.25ms units, ranging from 7.5ms to 4s)

minimal connection interval range: 7.5ms

§ SNP_CONN_SL_MIN

#define SNP_CONN_SL_MIN   0x0000

Slave Latency Ranges.

minimal slave latency value

§ SNP_CONN_SUPERVISOR_TIMEOUT_MIN

#define SNP_CONN_SUPERVISOR_TIMEOUT_MIN   0x000A

Supervisor Timeout Range (in 10ms units, ranging from 100ms to 32 seconds)

minimum supervision timeout, multiple of 10ms

§ SNP_DEV_ALL_EVENT_MASK

#define SNP_DEV_ALL_EVENT_MASK
Value:
SNP_CONN_PARAM_UPDATED_EVT | SNP_ADV_STARTED_EVT | SNP_ADV_ENDED_EVT | \
SNP_ATT_MTU_EVT | SNP_ERROR_EVT)
#define SNP_CONN_TERM_EVT
SNP Connection Terminated Event.
Definition: snp.h:205
#define SNP_CONN_EST_EVT
SNP Connection Established Event.
Definition: snp.h:204
#define SNP_ADV_ENDED_EVT
SNP Advertising Ended Event.
Definition: snp.h:208
#define SNP_ERROR_EVT
SNP Error Event.
Definition: snp.h:212
#define SNP_ADV_STARTED_EVT
SNP Advertising Started Event.
Definition: snp.h:207

this mask check that only meaningful event can be masked/send.

§ SNP_GATT_PERM_RFU_MASK

#define SNP_GATT_PERM_RFU_MASK
Value:
SNP_GATT_PERMIT_WRITE | \
SNP_GATT_PERMIT_AUTHEN_READ | \
SNP_GATT_PERMIT_AUTHEN_WRITE | \
SNP_GATT_PERMIT_ENCRYPT_READ | \
SNP_GATT_PERMIT_ENCRYPT_WRITE)
#define SNP_GATT_PERMIT_READ
For now, Only read and write permissions are allowed. permission to read the attribute value...
Definition: snp.h:358

mask for clearing RFU bits on the attribute permissions field

Copyright 2017, Texas Instruments Incorporated