![]() |
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... | |
anonymous enum |
Weight Scale service enumeration of handle indexes of characteristics to be discovered.
Definition at line 36 of file wspc_api.h.
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.
connId | Connection identifier. |
pHdlList | Characteristic handle list. |
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.
pHdlList | Characteristic handle list. |
pMsg | ATT callback message. |
void WspsMeasComplete | ( | dmConnId_t | connId, |
uint8_t | wsmCccIdx | ||
) |
Weight scale measurement complete.
connId | DM connection identifier. |
wsmCccIdx | Index of weight scale measurement CCC descriptor in CCC descriptor handle table. |
void WspsSetWsmFlags | ( | uint8_t | flags | ) |
Set the weight scale measurement flags.
flags | Weight scale measurement flags. |