EasyManuals Logo

Texas Instruments CC2541EMK Software Developers Guide

Texas Instruments CC2541EMK
162 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 #135 background imageLoading...
Page #135 background image
135
SWRU271HOctober 2010Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
GATTServApp API
Appendix E
SWRU271HOctober 2010Revised April 2019
GATTServApp API
E.1 Overview
This section details the API of the GATTServApp in gattservapp_util.c.
NOTE: These API are only the public commands that should be called by the profile and/or
application.
E.2 Commands
void GATTServApp_InitCharCfg( uint16 connHandle, gattCharCfg_t *charCfgTbl )
Initialize the client characteristic configuration table for a given connection. Use
this whenever a service is added to the application (see Section 5.5.4.2.2)
Parameters connHandle connection handle (0xFFFF for all connections).
charCfgTbl client characteristic configuration table where this characteristic is
bStatus_t GATTServApp_ProcessCharCfg( gattCharCfg_t *charCfgTbl, uint8 *pValue,uint8
authenticated, gattAttribute_t *attrTbl, uint16 numAttrs, uint8 taskId,
pfnGATTReadAttrCB_t pfnReadAttrCB )
Process Client Characteristic Configuration change.
Parameters charCfgTbl profile characteristic configuration table
pValue pointer to attribute value.
authenticated whether an authenticated link is required
attrTbl whether attribute table.
numAttrs number of attributes in attribute table.
tasked task to be notified of confirmation.
pfnReadAttrCB read callback function pointer.
Returns SUCCESS: parameter was set
INVALIDPARAMETER: one of the parameters was a null pointer
ATT_ERR_INSUFFICIENT_AUTHOR: permissions require authorization
bleTimeout: ATT timeout occurred
blePending: another ATT request is pending
LINKDB_ERR_INSUFFICIENT_AUTHEN: authentication is required but link is not
authenticated
bleMemAllocError: memory allocation failure occurred when allocating buffer

Table of Contents

Other manuals for Texas Instruments CC2541EMK

Questions and Answers:

Question and Answer IconNeed help?

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

Texas Instruments CC2541EMK Specifications

General IconGeneral
BrandTexas Instruments
ModelCC2541EMK
CategoryMicrocontrollers
LanguageEnglish

Related product manuals