EasyManuals Logo

Texas Instruments CC2540DK-MINI Application Guide

Texas Instruments CC2540DK-MINI
36 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #22 background image
TI CC2540 Bluetooth low energy Sample Applications Guide v1.4.1 SWRU297 Version 1.4.1
Page 22 of 36
Copyright © 2011-2015 Texas Instruments, Inc
GlucoseCB: This is the glucose service callback. It handles enabling or
disabling of indications of the glucose measurement, context, glucose
measurement context, and record access control point.
8.2.4 Sending Notifications and Indications
The application sends notifications of the glucose measurement and glucose measurement
context when configured to do so by the peer device. The application sends indications of the
record access control point when configured to do so by the peer device.
Transmissions of notifications are paced by using a timer to trigger the next transmission. The
period of the timer is set in macro DEFAULT_NOTI_PERIOD.
8.2.5 Record Access Control Point Processing
The record access control point is used to perform retrieval and management of measurements
stored in the glucose sensor. The record access control point has its own protocol to perform
these functions. The application implements this protocol in function
glucoseProcessCtlPntMsg. This function is executed when the peer device writes a message
to the control point.
Function glucoseProcessCtlPntMsg processes received messages by decoding the message
operation and operands. It then executes function glucoseCtlPntHandleOpcode to perform the
detailed processing required by the operation.
A set of example utility functions is implemented that processes the simulated glucose
measurement data. These utility functions perform operations such as:
Find records earlier than or later than a given time and date.
Find records within a range of two given times and dates.
Find first, last, or all records.
9 HID Advanced Remote Control
The HID Advanced Remote Control is a sample application which implements a HID mouse,
keyboard, and consumer controls. A gyro and accelerometer act as inputs allow the user to move
a mouse by simply pointing the remote. The example is HID compliant and has been tested with
Windows8 for example. For more information, refer to the TI_CC2541_ARC_User_Guide included
with this release.
The example applications for both peripheral and HID Dongle are located at
C:\TexasInstruments\BLE-CC254x-1.4.1\Projects\ble\HIDAdvRemote\ HIDAdvRemote.eww
C:\TexasInstruments\BLE-CC254x-1.4.1\Projects\ble\HIDAdvRemoteDongle\
HIDAdvRemoteDongle.eww
10 HID Emulated Keyboard
This sample project implements the HID Over GATT profile in a BLE peripheral device to provide
an example of how a HID keyboard can be emulated with a simple two button remote control
device. The project is based on adopted profile and service specifications for HID over GATT ([8]
and [9]) and Scan Parameters ([10] and [11]). The project also includes the Device Information
Service ([12]) and Battery Service ([13]).
The project can be opened with the following IAR workspace file:
C:\TexasInstruments\BLE-CC254x-1.4.1\Projects\ble\HIDEmuKbd\CC2540DB\ HidEmuKbd.eww
10.1 Project Overview
The project structure is very similar to that of the SimpleBLEPeripheral project. The APP directory
contains the application source code and header files.

Table of Contents

Other manuals for Texas Instruments CC2540DK-MINI

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments CC2540DK-MINI and is the answer not in the manual?

Texas Instruments CC2540DK-MINI Specifications

General IconGeneral
BrandTexas Instruments
ModelCC2540DK-MINI
CategoryMicrocontrollers
LanguageEnglish

Related product manuals