Cordio Stack and Cordio Profiles  r2p3-02rel0

Enumerations

enum  {
  TIPC_CTS_CT_HDL_IDX,
  TIPC_CTS_CT_CCC_HDL_IDX,
  TIPC_CTS_LTI_HDL_IDX,
  TIPC_CTS_RTI_HDL_IDX,
  TIPC_CTS_HDL_LIST_LEN
}
 Current Time service enumeration of handle indexes of characteristics to be discovered. More...
 

Functions

void TipcCtsDiscover (dmConnId_t connId, uint16_t *pHdlList)
 Perform service and characteristic discovery for Current Time service. Parameter pHdlList must point to an array of length TIPC_CTS_HDL_LIST_LEN. If discovery is successful the handles of discovered characteristics and descriptors will be set in pHdlList. More...
 
uint8_t TipcCtsValueUpdate (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 TIPC_CTS_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

Current Time service enumeration of handle indexes of characteristics to be discovered.

Enumerator
TIPC_CTS_CT_HDL_IDX 

Current time.

TIPC_CTS_CT_CCC_HDL_IDX 

Current time client characteristic configuration descriptor.

TIPC_CTS_LTI_HDL_IDX 

Local time information.

TIPC_CTS_RTI_HDL_IDX 

Reference time information.

TIPC_CTS_HDL_LIST_LEN 

Handle list length.

Definition at line 36 of file tipc_api.h.

37 {
38  TIPC_CTS_CT_HDL_IDX, /*!< \brief Current time */
39  TIPC_CTS_CT_CCC_HDL_IDX, /*!< \brief Current time client characteristic configuration descriptor */
40  TIPC_CTS_LTI_HDL_IDX, /*!< \brief Local time information */
41  TIPC_CTS_RTI_HDL_IDX, /*!< \brief Reference time information */
42  TIPC_CTS_HDL_LIST_LEN /*!< \brief Handle list length */
43 };
Current time client characteristic configuration descriptor.
Definition: tipc_api.h:39
Local time information.
Definition: tipc_api.h:40
Handle list length.
Definition: tipc_api.h:42
Reference time information.
Definition: tipc_api.h:41
Current time.
Definition: tipc_api.h:38

Function Documentation

void TipcCtsDiscover ( dmConnId_t  connId,
uint16_t pHdlList 
)

Perform service and characteristic discovery for Current Time service. Parameter pHdlList must point to an array of length TIPC_CTS_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 TipcCtsValueUpdate ( 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 TIPC_CTS_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.