TI BLE-Stack for Bluetooth 4.2 API Documentation  3.01.00.07
simple_np_gatt.h
Go to the documentation of this file.
1 /******************************************************************************
2 
3  @file simple_np_gatt.h
4 
5  @brief This file contains the parsing of GATT related command for the
6  Simple Peripheral sample application, for use with the
7  CC2650 Bluetooth Low Energy Protocol Stack.
8 
9  Group: WCS, BTS
10  $Target Device: DEVICES $
11 
12  ******************************************************************************
13  $License: BSD3 2015 $
14  ******************************************************************************
15  $Release Name: PACKAGE NAME $
16  $Release Date: PACKAGE RELEASE DATE $
17  *****************************************************************************/
18 
168 #ifndef SIMPLENP_GATT_H
169 #define SIMPLENP_GATT_H
170 
171 #ifdef __cplusplus
172 extern "C"
173 {
174 #endif
175 
176 /*********************************************************************
177  * INCLUDES
178  */
179 
180 /*********************************************************************
181 * EXTERNAL VARIABLES
182 */
183 
184 /*********************************************************************
185  * CONSTANTS
186  */
187 
188 /*********************************************************************
189  * MACROS
190  */
191 
192 /*********************************************************************
193  * TYPDEFS
194  */
195 
196 /*********************************************************************
197  * FUNCTIONS
198  */
199 
200 
262 uint8_t SNP_addService(snpAddServiceReq_t *pReq, uint8_t uuidLen,
263  snpAddServiceRsp_t *pRsp);
264 
333 uint8_t SNP_addCharValueDecl(snpAddCharValueDeclReq_t *pReq, uint8_t uuidLen,
335 
411  snpAddCharDescDeclRsp_t *lDescRsp);
412 
457 
509  snpGetAttrValueRsp_t *pRsp, uint16_t *pDataLenght);
510 
562 uint8_t SNP_setAttrValue(snpSetAttrValueReq_t *pReq, uint16_t dataLenght,
563  snpSetAttrValueRsp_t *pRsp);
564 
620 uint8_t SNP_setGATTParam(snpSetGattParamReq_t *pReq, uint16_t reqDataLen,
621  snpSetGattParamRsp_t *pRsp);
622 
673  snpGetGattParamRsp_t *pRsp, uint16_t *pDataLen);
674 
742 uint8_t SNP_sendNotifInd(snpNotifIndReq_t *pCmdStruct, int16_t length);
743 
797 uint8_t SNP_writeCharCnf(snpCharWriteCnf_t *pReq);
798 
855 uint8_t SNP_readCharCnf(snpCharReadCnf_t *pReq, uint16_t dataSize);
856 
917 
918 /*********************************************************************
919 *********************************************************************/
920 
921 #ifdef __cplusplus
922 }
923 #endif
924 
925 #endif /* SIMPLENP_GATT_H */
926  // end of SNP
Parameter Structure for SNP_setGATTParam / SNP_SET_GATT_PARAM_RSP.
Definition: snp.h:1219
Parameter Structure for SNP_getGATTParam / SNP_GET_GATT_PARAM_REQ.
Definition: snp.h:1287
uint8_t SNP_processCharConfigUpdatedCnf(snpCharCfgUpdatedRsp_t *pReq)
SNP Characteristic Configuration Update Confirm (0x8B)
uint8_t SNP_setGATTParam(snpSetGattParamReq_t *pReq, uint16_t reqDataLen, snpSetGattParamRsp_t *pRsp)
SNP Set GATT Parameter.
Parameter Structure for SNP_writeCharCnf / SNP_CHAR_WRITE_CNF.
Definition: snp.h:1109
uint8_t SNP_addDescriptionValue(snpAddCharDescDeclReq_t *lDescReq, snpAddCharDescDeclRsp_t *lDescRsp)
SNP Add Characteristic Descriptor Declaration.
Parameter Structure for SNP_addDescriptionValue.
Definition: snp.h:995
Parameter Structure to add new Characteristic Description Response SNP_ADD_CHAR_DESC_DECL_RSP.
Definition: snp.h:1015
uint8_t SNP_addService(snpAddServiceReq_t *pReq, uint8_t uuidLen, snpAddServiceRsp_t *pRsp)
SNP Add Service.
uint8_t SNP_writeCharCnf(snpCharWriteCnf_t *pReq)
SNP Write Characteristic Confirmation.
uint8_t SNP_getAttrValue(snpGetAttrValueReq_t *pReq, snpGetAttrValueRsp_t *pRsp, uint16_t *pDataLenght)
SNP Get Attribute Value.
Parameter Structure for SNP_registerService / SNP_REGISTER_SERVICE_RSP.
Definition: snp.h:1032
uint8_t SNP_setAttrValue(snpSetAttrValueReq_t *pReq, uint16_t dataLenght, snpSetAttrValueRsp_t *pRsp)
SNP Set Attribute Value.
uint8_t SNP_readCharCnf(snpCharReadCnf_t *pReq, uint16_t dataSize)
SNP Read Characteristic Confirmation.
uint8_t SNP_sendNotifInd(snpNotifIndReq_t *pCmdStruct, int16_t length)
SNP Send Notification Indication.
Parameter Structure for SNP_CHAR_READ_CNF / snpCharReadCnf_t.
Definition: snp.h:1061
Parameter Structure used for SNP_addCharValueDecl / SNP_ADD_CHAR_VAL_DECL_REQ.
Definition: snp.h:857
1 Byte Command Status Response
Definition: snp.h:1197
Add Service Request Structure for SNP_addService / SNP_ADD_SERVICE_REQ.
Definition: snp.h:827
Parameter Structure for Response to SNP_addCharValueDecl / SNP_ADD_CHAR_VAL_DECL_RSP.
Definition: snp.h:879
Parameter Structure for the Characteristic Notification and Indication Request data This is a packed ...
Definition: snp.h:1120
Parameter Structure for SNP_getAttrValue / SNP_SET_ATTR_VALUE_REQ.
Definition: snp.h:1261
Parameter Structure for response to SNP_setAttrValue / SNP_SET_ATTR_VALUE_RSP.
Definition: snp.h:1248
uint8_t SNP_addCharValueDecl(snpAddCharValueDeclReq_t *pReq, uint8_t uuidLen, snpAddCharValueDeclRsp_t *pRsp)
SNP Add Characteristic Value Declaration.
uint8_t SNP_getGATTParam(snpGetGattParamReq_t *pReq, snpGetGattParamRsp_t *pRsp, uint16_t *pDataLen)
SNP Get GATT Parameter.
Parameter Structure for response to SNP_getAttrValue / SNP_SET_ATTR_VALUE_RSP.
Definition: snp.h:1273
Parameter Structure for SNP_setAttrValue / SNP_SET_ATTR_VALUE_REQ.
Definition: snp.h:1235
uint8_t SNP_registerService(snpRegisterServiceRsp_t *pRsp)
SNP Register Service.
Copyright 2017, Texas Instruments Incorporated