Home
Texas Instruments
Microcontrollers
CC253x
Texas Instruments CC253x Software Developers Guide
4
of 1
of 1 rating
162 pages
Give review
Manual
Specs
To Next Page
To Next Page
To Previous Page
To Previous Page
Loading...
Porting
From
Earlier
BLE-Stack
Versions
www.ti.com
88
SWRU271H
–
October
2010
–
Revised
April
2019
Submit
Documentation
Feedback
Copyright
©
2010–2019,
Texas
Instruments
Incorporated
General
Information
3.
Under
C/C++
Compiler,
in
the
Preprocessor
tab,
define
CC2540
(and
make
sure
CC2541
is
not
defined).
Figure
9-3.
IAR
Project
Options
-
Predefined
Symbols
87
89
Table of Contents
Default Chapter
2
Table of Contents
2
Preface
7
1 Overview
8
Support Note
8
Introduction
8
Bluetooth Low Energy Protocol Stack Basics
9
Bluetooth Low Energy Protocol Stack
9
2 The TI Bluetooth Low Energy Software Development Platform
11
Overview
11
Configurations
11
Single-Device Configuration
12
Network Processor Configuration
13
Projects
14
Software Overview
14
3 The Operating System Abstraction Layer (OSAL)
15
Overview
15
Task Initialization
16
Task Events and Event Processing
17
OSAL Task Loop
17
Heap Manager
18
OSAL Messages
19
4 The Application and Profiles
20
Overview
20
Project Overview
20
Project Files
20
Start-Up in Main()
22
Application Initialization
23
Event Processing
23
Periodic Event
23
OSAL Messages
24
Callbacks
24
Complete Attribute Table
25
Simplebleperipheral Complete Attribute Table
25
Additional Sample Projects
26
5 The Bluetooth Low Energy Protocol Stack
27
Overview
27
Generic Access Profile (GAP)
27
GAP State Diagram
27
Connection Event and Interval
28
Slave Latency
29
GAP Abstraction
31
Configuring the GAP Layer
31
Gaprole Task
32
Peripheral Role
32
Central Role
35
Gap Bond Manager (Gapbondmgr)
37
Overview of Bluetooth Low Energy Security
37
Using the Gapbondmgr Profile
38
Gapbondmgr Examples for Various Security Modes
40
Just Works Pairing
40
Bonding after Just Works Pairing
42
Pairing with MITM Authentication
43
Generic Attribute Profile (GATT)
45
GATT Characteristics and Attributes
45
GATT Client and Server
45
GATT Services and Profile
46
Simplegattprofile Characteristic Table from Btool
46
GATT Client Abstraction
48
GATT Server Abstraction
51
Attribute Table Initialization
52
Get and Set Profile Parameter Usage
61
L2Cap
62
Hci
62
HCI Extension Vendor-Specific Commands
62
Receiving HCI Extension Events in the Application
62
Library Files
63
6 Drivers
64
Overview
64
HAL Drivers
65
Adc
66
Aes
66
Lcd
66
Led
66
Key
66
Dma
66
UART and SPI
66
Other Peripherals
67
Simple NV (SNV)
67
7 Creating a Custom Bluetooth Low Energy Application
68
Overview
68
Configuring the Bluetooth Low Energy Stack
68
Define Bluetooth Low Energy Behavior
68
Define Application Tasks
68
Configure Hardware Peripherals
68
Configuring Parameters for Custom Hardware
68
Board File
68
Adjusting for 32-Mhz Crystal Stabilization Time
69
Setting the Sleep Clock Accuracy
69
Software Considerations
69
Memory Management for GATT Notifications and Indications
69
Limit Application Processing During Bluetooth Low Energy Activity
70
Global Interrupts
70
8 Development and Debugging
71
Overview
71
IAR Overview
71
Using IAR Embedded Workbench
71
Open an Existing Project
71
IAR Embedded Workbench
72
Project Options, Configurations, and Defined Symbols
73
Project Configurations
73
Preprocessor Defined Symbols Settings
74
The Buildconfig.h File
75
Configuration File Setup
75
Building and Debugging a Project
77
Building a Project
77
Debug Button in IAR
78
Target Selection
78
Linker Map File
79
IAR Debug Toolbar
79
Map File in File List
79
9 General Information
81
Overview
81
Porting from BLE-Stack 1.4.2 to 1.5.0
81
Porting from Earlier BLE-Stack Versions
82
Porting Blev1.4.1 Projects to Blev1.4.2
82
Porting Blev1.4.0 Projects to Blev1.4.1
82
Porting Blev1.3.2 Projects to Blev1.4.0
86
Porting Blev1.2 Projects to Blev1.3
86
Porting from CC2540 to CC2541 Project
87
Edit IAR Project Configuration
87
IAR Project Options - Device Selection
87
IAR Project Options - Predefined Symbols
88
Stack Build Configuration
89
BLE Library: Exclude from Custom Build
89
Release Notes History
90
BLE Library: Add to LIB Group
90
Document History
104
Gap Api
105
Commands
105
Configurable Parameters
105
A.1 Commands
105
Events
108
A.3 Events
108
Gaprole Peripheral Role API
112
Commands
112
B.1 Commands
112
Configurable Parameters
114
B.2 Configurable Parameters
114
Callbacks
115
State Change Callback (Pfnstatechange)
115
B.3 Callbacks
115
RSSI Callback (Pfnrssiread)
116
Gaprole Central Role API
117
Commands
117
C.1 Commands
117
Configurable Parameters
121
Callbacks
121
RSSI Callback (Rssicb)
121
C.2 Configurable Parameters
121
Central Event Callback (Eventcb)
122
Gatt/Att Api
123
Overview
123
Server Commands
123
Client Commands
124
D.3 Client Commands
124
Return Values
130
D.4 Return Values
130
Events
131
D.5 Events
131
GATT Commands and Corresponding ATT Events
133
ATT_ERROR_RSP Error Codes
133
Gattservapp API
135
Overview
135
Commands
135
E.1 Overview
135
Gapbondmgr API
137
Overview
137
Commands
137
F.1 Overview
137
Configurable Parameters
140
F.3 Configurable Parameters
140
Callbacks
141
Passcode Callback (Passcodecb)
141
Pairing State Callback (Pairstatecb)
141
F.4 Callbacks
141
HCI Extension API
143
Overview
143
Commands
143
G.1 Overview
143
Host Error Codes
160
Revision History
161
Other manuals for Texas Instruments CC253x
User Guide
370 pages
Application Guide
36 pages
Quick Start Guide
7 pages
4
Based on 1 rating
Ask a question
Give review
Questions and Answers:
Need help?
Do you have a question about the Texas Instruments CC253x and is the answer not in the manual?
Ask a question
Texas Instruments CC253x Specifications
General
Brand
Texas Instruments
Model
CC253x
Category
Microcontrollers
Language
English
Related product manuals
Texas Instruments CC2540
29 pages
Texas Instruments CC2541
370 pages
Texas Instruments CC2541EMK
370 pages
Texas Instruments CC2540DK-MINI
370 pages
Texas Instruments CC110 Series
9 pages
Texas Instruments C2000
41 pages
OMAP-L138/C6748
15 pages
C2000 LED BoosterPack
15 pages
C2000 LAUNCHXL-F280049C
28 pages
Texas Instruments TMS570LS0714
162 pages
Texas Instruments TM4C1294NCPDT
1890 pages
LaunchPad MSP430G2553
33 pages