Cordio Stack and Cordio Profiles  r2p3-02rel0
Device Information Profile

Enumerations

enum  {
  DIS_MFNS_HDL_IDX,
  DIS_MNS_HDL_IDX,
  DIS_SNS_HDL_IDX,
  DIS_HRS_HDL_IDX,
  DIS_FRS_HDL_IDX,
  DIS_SRS_HDL_IDX,
  DIS_SID_HDL_IDX,
  DIS_HDL_LIST_LEN
}
 Enumeration of handle indexes of characteristics to be discovered. More...
 

Functions

void DisDiscover (dmConnId_t connId, uint16_t *pHdlList)
 Perform service and characteristic discovery for DIS service. Note that pHdlList must point to an array of handles of length DIS_HDL_LIST_LEN. If discovery is successful the handles of discovered characteristics and descriptors will be set in pHdlList. More...
 
uint8_t DisValueUpdate (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 DIS_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
DIS_MFNS_HDL_IDX 

Manufacturer name string.

DIS_MNS_HDL_IDX 

Model number string.

DIS_SNS_HDL_IDX 

Serial number string.

DIS_HRS_HDL_IDX 

Hardware revision string.

DIS_FRS_HDL_IDX 

Firmware revision string.

DIS_SRS_HDL_IDX 

Software revision string.

DIS_SID_HDL_IDX 

System ID.

DIS_HDL_LIST_LEN 

Handle list length.

Definition at line 36 of file dis_api.h.

37 {
38  DIS_MFNS_HDL_IDX, /*!< \brief Manufacturer name string */
39  DIS_MNS_HDL_IDX, /*!< \brief Model number string */
40  DIS_SNS_HDL_IDX, /*!< \brief Serial number string */
41  DIS_HRS_HDL_IDX, /*!< \brief Hardware revision string */
42  DIS_FRS_HDL_IDX, /*!< \brief Firmware revision string */
43  DIS_SRS_HDL_IDX, /*!< \brief Software revision string */
44  DIS_SID_HDL_IDX, /*!< \brief System ID */
45  DIS_HDL_LIST_LEN /*!< \brief Handle list length */
46 };
Handle list length.
Definition: dis_api.h:45
Firmware revision string.
Definition: dis_api.h:42
Serial number string.
Definition: dis_api.h:40
Model number string.
Definition: dis_api.h:39
Software revision string.
Definition: dis_api.h:43
Hardware revision string.
Definition: dis_api.h:41
Manufacturer name string.
Definition: dis_api.h:38
System ID.
Definition: dis_api.h:44

Function Documentation

void DisDiscover ( dmConnId_t  connId,
uint16_t pHdlList 
)

Perform service and characteristic discovery for DIS service. Note that pHdlList must point to an array of handles of length DIS_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 DisValueUpdate ( 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 DIS_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.