1 General
1概述
BlueLab TM SDKs provide developers with a ries of libraries that support the implementation of Bluetooth applications that run on Bluetooth chips.
BlueLab TM SDKs为开发者提供了一系列的资料,从而支持Bluetooth芯片上的应用程序。
The u of the supplied libraries allows engineers to develop BlueCore applications that implement Bluetooth Profiles without becoming distracted by the complexity of the underlying Bluetooth Protocols.
通过jennifer aniston使用所提供的资料,让工程师们在没有复杂的蓝牙议定书的情况下不可预见发展BlueCore应用软件以实行蓝牙配置文件。
This approach has the additional benefit of allowing the underlying BlueCore firmwar
e to be considered as a pre-qualified component of the final product.
这种做法有特别的好处,就是在组成最终产品时优先考虑BlueCore底层固件。
it is too late
This document illustrates at a conceptual level how the source code and supplied libraries are ud to build Bluetooth applications to run on BlueCore chips.
本文件在一个概念性的水平上说明了源代码和库文件是nasty8如何构建一个蓝牙应用软件在BlueCore芯片上运行的。
This document should be read in conjunction with the Reference Guides provided as part of BlueLab’s on-line documentation that details the library-defined functions and the messages generated by the supplied libraries.
在阅读本文件时应乘客英文版与参考指南中提供的BlueLab’s在线文件部分相联系,该部分详细介绍了库定义的职能和keyword库中产生的信息。
1.1 Introduction
google image arch
1.1 导言
This document introduces the fundamental concepts employed when developing applications designed to run on CSR’s BlueCore chips.
本文件介绍了开发应用程序在CSR的BlueCore芯片上运行时所使用的基本概念。
The document covers:
该文件包括:
●The fundamentals of tasks, messages and message handling
●任务,信息和信息处理的基本原理
●weedsHow the are ud by the libraries
●如何在库中进行应用。
bumptop
●How this defines the architectural of a typical BlueCore application
●详细说明典型的BlueCore芯片如何应用.
The basic concepts and simple coding examples in this document are intended to illustrate good practice when writing code to run on BlueCore’s Virtual Machine and to help engineers gain a clearer understanding of using BlueLab SDKs to develop applications.
这份文件中的基本概念和简单的编码例子是为了说明编写BlueCore虚拟机运行代码的良好习惯和做法,使工程师对BlueLab SDK的开发应用获得更清晰的了解。
In addition the reference applications supplied with BlueLab provide engineers with a valuable resource that can be ud as a basis for their own application development or simply to help increa the understanding of how to implement BlueCore applications.
此外,该文件所提供的参考应用软件BlueLab为工程师们提供了一个宝贵的资源,它不仅
可以作为应用软件开发的基础,还对理解BlueCore应用起到了重要作用。
The VM Memory Mapping and Memory Usage application note is also recommended reading for engineers embarking on the process of developing BlueCore applications.
VM 内变换和存储器使用操作说明也被作为推荐资料推荐给正在开发BlueCore芯片应用的工程师们。
2 Tasks, Messages and Message Handlers
2任务,信息和信息处理
It is important to understand the concept of tasks, messages and message handling as they are integral to the way BlueLab applications are implemented.
了解任务,信息和信息处理的概念是很重要的,因为它们在运行BlueLab应用软件时是一个整体.
The ctions 2.1 to 2.3 introduce the concepts:
2.1和2.3两节分别介绍了这些概念:
2.1 Tasks
2.1任务
Tasks are the basic architectural building blocks ud to construct an application and to provide an interface with the BlueCore firmware.
任务是构建一个应用软件和提供一个与BlueCore固件相接触的基础。
Tasks provide functionality to the an instance of the appropriate task must be initialized by the code in order for the functionality it supports to be available to the application.
任务对应用软件提供功能性,即一个适当的任务是编写代码功能的基础,支持应用软件的功能性。
A task is basically a message handling function and a structure containing the task’s current state. All tasks are run as a single tasks do not execute concurrently.
任务大体是一个具有信息处理功能和包含初始电流状态的结构。各项任务都作为一个单一的线路运行,即不执行兼容。
The tasks that make up the application include a top level task known as the application task. The application task responds to messages and controls the behavior of the application.
编辑程序任务包括一个被称为应用任务的慢速英语高层任务。该任务回应信息并控制应用程序的行为。
Note:
注:
More complex applications may define more than one application task.
更复杂的应用程序可能会定义一个以上的应用任务。
2.2 Messages
2.2 信息
Messages pass information between the tasks and are constructed in the form:
信息在任务之间传递报告并构建成以下形式:
Task t, MessageId id, Message payload
任务 t, 信息Id id, 信息有效载荷
The elements of a message are described below:
各项信息要素说明如下:
●Task t: Identifies the destination of the it is a pointer to the recipient &AppTask.
●任务t:识别该信息的目的地,即它是接收任务的一个指示器,例如: & AppTask 。
●MessageId id: is the message label that allows the task receiving the message to identify the appropriate function within the handler code.
●信息Id id: 是信息标签,它允许任务接收信息以识别管理编码中适当的功能。
The MessageId id also implies the fields that can be expected in the payload. This allows the required information to be extracted by casting pointers to the payload fields.