Application¶
Table of contents
Memory Management¶
This section aims to describe the various memory regions available on the device as well as how they are used by the stack and application. The chapter starts with an overview of the memory map of the device, and then each section goes into detail on how this memory region is used.
BLE-Stack¶
Table of contents
- Overview
- Generic Access Profile (GAP)
- GAPRole Task
- Generic Attribute Profile (GATT)
- GAP GATT Service (GGS)
- Generic Attribute Profile Service (GATT Service)
- GATTServApp Module
- Building up the Attribute Table
- Implementing Profiles in Attributes Table
- Add Service Function
- Register Application Callback Function
- Read and Write Callback Functions
- Read Request from Client
- Write Request from Client
- Get and Set Functions
- Queued Writes
- Allocating Memory for GATT Procedures
- Registering to Receive Additional GATT Events in the Application
- GAP Bond Manager and LE Secure Connections
- Privacy
- Logical Link Control and Adaptation Layer Protocol (L2CAP)
- Link Layer (LL)
- Host Controller Interface (HCI)
- Stack Configurations
Developing a Custom Application¶
A system designer must have a firm grasp on the general system architecture, application, and Bluetooth Low Energy stack framework to implement a custom Bluetooth Low Energy application. This section provides indications and guidance on where and how to start implementing a custom application based on information presented in the previous sections (Introduction and BLE-Stack) as well as knowledge of TI RTOS and CC2640R2.
Decide what role and purpose the custom application should have. If an application is tied to a specific service or profile, start with that sample application. Base your project on one of the following sample applications that implement one of the fundamental GAP roles:
simple_central
simple_peripheral
simple_broadcaster
simple_observer
If you are using a network processor solution, please see the BLE Network Processor section.