TI BLE-Stack for Bluetooth 4.2 API Documentation  3.01.00.07
Data Fields
snpAddCharDescDeclReq_t Struct Reference

Parameter Structure for SNP_addDescriptionValue. More...

Data Fields

uint8_t header
 1 Byte Header Field, SNP GATT Descriptors Header
 
snpAddAttrCccd_tpCCCD
 Pointer to Parameter Structure, snpAddAttrCccd_t.
 
snpAddAttrFormat_tpFormat
 Pointer to Parameter Structure, snpAddAttrFormat_t.
 
snpAddAttrGenLongUUID_tpLongUUID
 Pointer to Parameter Structure, snpAddAttrGenLongUUID_t.
 
snpAddAttrGenShortUUID_tpShortUUID
 Pointer to Parameter Structure, snpAddAttrGenShortUUID_t.
 
snpAddAttrUserDesc_tpUserDesc
 Pointer to Parameter Structure, snpAddAttrUserDesc_t.
 

Detailed Description

Parameter Structure for SNP_addDescriptionValue.

snpAddCharDescDeclReq_t::header can add multiple attribute types to the characteristic. When a bit is set corresponding to the attribute type, the corresponding set of Parameter Structures must be present to be added.

Parameters Structures must appear in the same order as the bits appear in snpAddCharDescDeclReq_t::header (from least-significant bit to most-significant bit).

Example: Adding CCCD and User Description Attributes

The first byte sent will be snpAddCharDescDeclReq_t::header will be (0x84), followed the CCCD Parameter Structure, snpAddAttrCccd_t (1 Byte), and finally followed by User Descriptor Parameter Structure snpAddAttrUserDesc_t (n Bytes)

This packet structure is not used to create a NPI frame


The documentation for this struct was generated from the following file:
Copyright 2017, Texas Instruments Incorporated