Cordio Stack and Cordio Profiles  r2p3-02rel0

Enumerations

enum  {
  WSPC_WSS_WSM_HDL_IDX,
  WSPC_WSS_WSM_CCC_HDL_IDX,
  WSPC_WSS_WSF_HDL_IDX,
  WSPC_WSS_HDL_LIST_LEN
}
 Weight Scale service enumeration of handle indexes of characteristics to be discovered. More...
 

Functions

void WspcWssDiscover (dmConnId_t connId, uint16_t *pHdlList)
 Perform service and characteristic discovery for Weight Scale service. Parameter pHdlList must point to an array of length WSPC_WSS_HDL_LIST_LEN. If discovery is successful the handles of discovered characteristics and descriptors will be set in pHdlList. More...
 
uint8_t WspcWssValueUpdate (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 WSPC_WSS_HDL_LIST_LEN. If the ATT handle of the message matches a handle in the handle list the value is processed, otherwise it is ignored. More...
 
void WspsMeasComplete (dmConnId_t connId, uint8_t wsmCccIdx)
 Weight scale measurement complete. More...
 
void WspsSetWsmFlags (uint8_t flags)
 Set the weight scale measurement flags. More...
 

Description

Enumeration Type Documentation

anonymous enum

Weight Scale service enumeration of handle indexes of characteristics to be discovered.

Enumerator
WSPC_WSS_WSM_HDL_IDX 

Weight scale measurement.

WSPC_WSS_WSM_CCC_HDL_IDX 

Weight scale measurement CCC descriptor.

WSPC_WSS_WSF_HDL_IDX 

Weight scale feature.

WSPC_WSS_HDL_LIST_LEN 

Handle list length.

Definition at line 36 of file wspc_api.h.

37 {
38  WSPC_WSS_WSM_HDL_IDX, /*!< \brief Weight scale measurement */
39  WSPC_WSS_WSM_CCC_HDL_IDX, /*!< \brief Weight scale measurement CCC descriptor */
40  WSPC_WSS_WSF_HDL_IDX, /*!< \brief Weight scale feature */
41  WSPC_WSS_HDL_LIST_LEN /*!< \brief Handle list length */
42 };
Weight scale measurement.
Definition: wspc_api.h:38
Weight scale feature.
Definition: wspc_api.h:40
Handle list length.
Definition: wspc_api.h:41
Weight scale measurement CCC descriptor.
Definition: wspc_api.h:39

Function Documentation

void WspcWssDiscover ( dmConnId_t  connId,
uint16_t pHdlList 
)

Perform service and characteristic discovery for Weight Scale service. Parameter pHdlList must point to an array of length WSPC_WSS_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 WspcWssValueUpdate ( 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 WSPC_WSS_HDL_LIST_LEN. If the ATT 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.
void WspsMeasComplete ( dmConnId_t  connId,
uint8_t  wsmCccIdx 
)

Weight scale measurement complete.

Parameters
connIdDM connection identifier.
wsmCccIdxIndex of weight scale measurement CCC descriptor in CCC descriptor handle table.
Returns
None.
void WspsSetWsmFlags ( uint8_t  flags)

Set the weight scale measurement flags.

Parameters
flagsWeight scale measurement flags.
Returns
None.