Introduction
This document explains how to integrate the NXP Bluetooth Low Energy Host Stack in an application and provides detailed explanation of the most commonly used APIs and code examples.
Introduction: This section outlines the document structure.
Prerequisites: The document sets out the prerequisites.
Bluetooth LE Host Stack Initialization and APIs: This section describes the Bluetooth Low Energy Host Stack initialization. It also presents the APIs categorized according to the layer and by application role.
Generic Access Profile (GAP) Layer: The Generic Access Profile (GAP) layer is divided into two sections according to the GAP role of the device: Central and Peripheral. The basic setup of two such devices is explained with code examples, such as how to prepare the devices for connections, how to connect them together, and pairing and bonding processes.
Generic Attribute Profile (GATT) Layer: This section describes the Generic Attribute Profile (GATT) layer and introduces the APIs required for data transfer between the two connected devices. This section is divided into two subsections according to the GATT role of the device: Client and Server.
GATT database application interface: The document further describes the usage of the GATT database APIs that allow the application to manipulate data stored in the GATT Server database.
Creating GATT database: This section describes a user-friendly method to build a GATT database statically. The method involves the use of a predefined set of macros that the application can include to build the database at application compile time.
Creating a Custom Profile: This section contains instructions on how to build a custom profile.
Application Structure: The section describes the structure of the typical application.
Low-Power Management: This section describes low-power management and how an application can use the low-power modes of the hardware and software.
Over the Air Programming (OTAP): This section describes the Over The Air Programming (OTAP) capabilities that the Host Stack offers via a dedicated Service/Profile. The section also describes how to use the OTAP capabilities in an application and also contains a detailed description of the SDK components involved in the OTAP process.
Creating a Bluetooth LE application when the Host Stack runs on another processor: This section describes how to build a Bluetooth Low Energy application when the Host Stack is running on a separate processor.
References: This section lists the documents that can be referred to for more information.
Acronyms and abbreviations: This section lists the acronyms used in this document.