Cordio Stack and Cordio Profiles  r2p3-02rel0

Enumerations

enum  {
  GAP_CAR_HDL_IDX,
  GAP_RPAO_HDL_IDX,
  GAP_HDL_LIST_LEN
}
 Enumeration of handle indexes of characteristics to be discovered. More...
 

Functions

void GapDiscover (dmConnId_t connId, uint16_t *pHdlList)
 Perform service and characteristic discovery for GAP service. Note that pHdlList must point to an array of handles of length GAP_HDL_LIST_LEN. If discovery is successful the handles of discovered characteristics and descriptors will be set in pHdlList. More...
 
uint8_t GapValueUpdate (uint16_t *pHdlList, attEvt_t *pMsg)
 Process a value received in an ATT read response, notification, or indication message. Parameter pHdlList must point to an array of length GAP_HDL_LIST_LEN. If the attribute handle of the message matches a handle in the handle list the value is processed, otherwise it is ignored. More...
 

Description

Enumeration Type Documentation

anonymous enum

Enumeration of handle indexes of characteristics to be discovered.

Enumerator
GAP_CAR_HDL_IDX 

Central Address Resolution.

GAP_RPAO_HDL_IDX 

Resolvable Private Address Only.

GAP_HDL_LIST_LEN 

Handle list length.

Definition at line 36 of file gap_api.h.

37 {
38  GAP_CAR_HDL_IDX, /*!< \brief Central Address Resolution */
39  GAP_RPAO_HDL_IDX, /*!< \brief Resolvable Private Address Only */
40  GAP_HDL_LIST_LEN /*!< \brief Handle list length */
41 };
Resolvable Private Address Only.
Definition: gap_api.h:39
Handle list length.
Definition: gap_api.h:40
Central Address Resolution.
Definition: gap_api.h:38

Function Documentation

void GapDiscover ( dmConnId_t  connId,
uint16_t pHdlList 
)

Perform service and characteristic discovery for GAP service. Note that pHdlList must point to an array of handles of length GAP_HDL_LIST_LEN. If discovery is successful the handles of discovered characteristics and descriptors will be set in pHdlList.

Parameters
connIdConnection identifier.
pHdlListCharacteristic handle list.
Returns
None.
uint8_t GapValueUpdate ( uint16_t pHdlList,
attEvt_t pMsg 
)

Process a value received in an ATT read response, notification, or indication message. Parameter pHdlList must point to an array of length GAP_HDL_LIST_LEN. If the attribute handle of the message matches a handle in the handle list the value is processed, otherwise it is ignored.

Parameters
pHdlListCharacteristic handle list.
pMsgATT callback message.
Returns
ATT_SUCCESS if handle is found, ATT_ERR_NOT_FOUND otherwise.