![]() |
Cordio Stack and Cordio Profiles
r2p3-02rel0
|
The App Framework is a service layer for applications that simplifies application development.
For full API, see Application Framework Main API.
The App Framework performs many operations common to Bluetooth LE embedded applications, such as:
The relationship between the App Framework, the application, and the protocol stack is shown in Figure 1.
The App Framework consists of several modules, each interfacing a different aspect of application needs:
The Main module is designed to be platform-independent while the UI and DB modules are designed with platform-independent APIs and platform-specific implementations.
See Application Framework Main API for more detail.
To enable Advertising Extensions (AE) within an application:
For | Replace | With |
---|---|---|
Advertising Role | DmAdvInit() | DmExtAdvInit() |
Scanning Role | DmScanInit() | DmExtScanInit() |
Peripheral Role | DmConnSlaveInit() | DmExtConnSlaveInit() |
Central Role | DmConnMasterInit() | DmExtConnMasterInit() |
The DB interface provides an abstracted device database for storing bonding data and other device parameters. The DB interface is used internally by the App Framework t manage bonding data and client characteristic configuration descriptors. The interface can also be used by the application.
See Application Framework Database API for more detail.
The UI interface provides the application with simple user interface abstractions for button press handling, sounds, display, and other user feedback.
See Application Framework User Interface API for more detail.
The HW interface provides an abstraction layer for hardware sensors.
See Application Framework Hardware Sensor Interface API for more detail.
see Application Framework Parameter Database API for more detail.