TI BLE-Stack for Bluetooth API Documentation  3.03.08.00
Modules | Files | Macros
SNP

This module describes the Simple Network Processor API. More...

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 SNP status codes
 
 Options for Response Needed Field
 
 Predefined services
 
 SNP Constants
 
 SNP Device API
 
 SNP GAP API
 
 SNP GATT API
 
 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.
 

Files

file  snp.h
 Simple Network Processor API.
 

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_INVALID_HANDLE   0x0000
 Invalid Handle.
 
#define SNP_MAX_ADVDATA_LENGTH   31
 < This is the maximum size of a scan response or advertising data buffer.
 

Detailed Description

This module describes the Simple Network Processor API.

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:243
#define SNP_CONN_EST_EVT
SNP Connection Established Event.
Definition: snp.h:242
#define SNP_ADV_ENDED_EVT
SNP Advertising Ended Event.
Definition: snp.h:246
#define SNP_ERROR_EVT
SNP Error Event.
Definition: snp.h:250
#define SNP_ADV_STARTED_EVT
SNP Advertising Started Event.
Definition: snp.h:245

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:396

mask for clearing RFU bits on the attribute permissions field

© Copyright 1995-2021, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale