![]() |
Cordio Stack and Cordio Profiles
r2p3-02rel0
|
Data Structures | |
struct | htpsCfg_t |
Configurable parameters. More... | |
Enumerations | |
enum | { HTPC_HTS_TM_HDL_IDX, HTPC_HTS_TM_CCC_HDL_IDX, HTPC_HTS_IT_HDL_IDX, HTPC_HTS_IT_CCC_HDL_IDX, HTPC_HTS_TT_HDL_IDX, HTPC_HTS_HDL_LIST_LEN } |
Health Thermometer service enumeration of handle indexes of characteristics to be discovered. More... | |
Functions | |
void | HtpcHtsDiscover (dmConnId_t connId, uint16_t *pHdlList) |
Perform service and characteristic discovery for Health Thermometer service. Parameter pHdlList must point to an array of length HTPC_HTS_HDL_LIST_LEN. If discovery is successful the handles of discovered characteristics and descriptors will be set in pHdlList. More... | |
uint8_t | HtpcHtsValueUpdate (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 HTPC_HTS_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 | HtpsInit (wsfHandlerId_t handlerId, htpsCfg_t *pCfg) |
Initialize the Health Thermometer profile sensor. More... | |
void | HtpsMeasStart (dmConnId_t connId, uint8_t timerEvt, uint8_t itCccIdx) |
Start periodic temperature measurement. This function starts a timer to perform periodic measurements. More... | |
void | HtpsMeasStop (void) |
Stop periodic temperature measurement. More... | |
void | HtpsMeasComplete (dmConnId_t connId, uint8_t tmCccIdx) |
Temperature measurement complete. More... | |
void | HtpsProcMsg (wsfMsgHdr_t *pMsg) |
This function is called by the application when the periodic measurement timer expires. More... | |
void | HtpsSetTmFlags (uint8_t flags) |
Set the temperature measurement flags. More... | |
void | HtpsSetItFlags (uint8_t flags) |
Set the intermediate temperature flags. More... | |
anonymous enum |
Health Thermometer service enumeration of handle indexes of characteristics to be discovered.
Definition at line 36 of file htpc_api.h.
void HtpcHtsDiscover | ( | dmConnId_t | connId, |
uint16_t * | pHdlList | ||
) |
Perform service and characteristic discovery for Health Thermometer service. Parameter pHdlList must point to an array of length HTPC_HTS_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 HTPC_HTS_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 | Characteristc handle list. |
pMsg | ATT callback message. |
void HtpsInit | ( | wsfHandlerId_t | handlerId, |
htpsCfg_t * | pCfg | ||
) |
Initialize the Health Thermometer profile sensor.
handlerId | WSF handler ID of the application using this service. |
pCfg | Configurable parameters. |
void HtpsMeasStart | ( | dmConnId_t | connId, |
uint8_t | timerEvt, | ||
uint8_t | itCccIdx | ||
) |
Start periodic temperature measurement. This function starts a timer to perform periodic measurements.
connId | DM connection identifier. |
timerEvt | WSF event designated by the application for the timer. |
itCccIdx | Index of intermediate temperature CCC descriptor in CCC descriptor handle table. |
void HtpsMeasStop | ( | void | ) |
Stop periodic temperature measurement.
void HtpsMeasComplete | ( | dmConnId_t | connId, |
uint8_t | tmCccIdx | ||
) |
Temperature measurement complete.
connId | DM connection identifier. |
tmCccIdx | Index of temperature measurement CCC descriptor in CCC descriptor handle table. |
void HtpsProcMsg | ( | wsfMsgHdr_t * | pMsg | ) |
This function is called by the application when the periodic measurement timer expires.
pMsg | Event message. |
void HtpsSetTmFlags | ( | uint8_t | flags | ) |
Set the temperature measurement flags.
flags | Temperature measurement flags. |
void HtpsSetItFlags | ( | uint8_t | flags | ) |
Set the intermediate temperature flags.
flags | Intermediate temperature flags. |