![]() |
Cordio Stack and Cordio Profiles
r2p3-02rel0
|
Data Structures | |
| struct | blpsCfg_t |
| Configurable parameters. More... | |
Enumerations | |
| enum | { BLPC_BPS_BPM_HDL_IDX, BLPC_BPS_BPM_CCC_HDL_IDX, BLPC_BPS_ICP_HDL_IDX, BLPC_BPS_ICP_CCC_HDL_IDX, BLPC_BPS_BPF_HDL_IDX, BLPC_BPS_HDL_LIST_LEN } |
| Blood Pressure service enumeration of handle indexes of characteristics to be discovered. More... | |
Functions | |
| void | BlpcBpsDiscover (dmConnId_t connId, uint16_t *pHdlList) |
| Perform service and characteristic discovery for Blood Pressure service. Parameter pHdlList must point to an array of length BLPC_BPS_HDL_LIST_LEN. If discovery is successful the handles of discovered characteristics and descriptors will be set in pHdlList. More... | |
| uint8_t | BlpcBpsValueUpdate (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 BLPC_BPS_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 | BlpsInit (wsfHandlerId_t handlerId, blpsCfg_t *pCfg) |
| Initialize the Blood Pressure profile sensor. More... | |
| void | BlpsMeasStart (dmConnId_t connId, uint8_t timerEvt, uint8_t icpCccIdx) |
| Start periodic blood pressure measurement. This function starts a timer to perform periodic measurements. More... | |
| void | BlpsMeasStop (void) |
| Stop periodic blood pressure measurement. More... | |
| void | BlpsMeasComplete (dmConnId_t connId, uint8_t bpmCccIdx) |
| Blood pressure measurement complete. More... | |
| void | BlpsProcMsg (wsfMsgHdr_t *pMsg) |
| This function is called by the application when the periodic measurement timer expires. More... | |
| void | BlpsSetBpmFlags (uint8_t flags) |
| Set the blood pressure measurement flags. More... | |
| void | BlpsSetIcpFlags (uint8_t flags) |
| Set the intermediate cuff pressure flags. More... | |
| anonymous enum |
Blood Pressure service enumeration of handle indexes of characteristics to be discovered.
Definition at line 36 of file blpc_api.h.
| void BlpcBpsDiscover | ( | dmConnId_t | connId, |
| uint16_t * | pHdlList | ||
| ) |
Perform service and characteristic discovery for Blood Pressure service. Parameter pHdlList must point to an array of length BLPC_BPS_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 BLPC_BPS_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 BlpsInit | ( | wsfHandlerId_t | handlerId, |
| blpsCfg_t * | pCfg | ||
| ) |
Initialize the Blood Pressure profile sensor.
| handlerId | WSF handler ID of the application using this service. |
| pCfg | Configurable parameters. |
| void BlpsMeasStart | ( | dmConnId_t | connId, |
| uint8_t | timerEvt, | ||
| uint8_t | icpCccIdx | ||
| ) |
Start periodic blood pressure measurement. This function starts a timer to perform periodic measurements.
| connId | DM connection identifier. |
| timerEvt | WSF event designated by the application for the timer. |
| icpCccIdx | Index of intermediate cuff pressure CCC descriptor in CCC descriptor handle table. |
| void BlpsMeasStop | ( | void | ) |
Stop periodic blood pressure measurement.
| void BlpsMeasComplete | ( | dmConnId_t | connId, |
| uint8_t | bpmCccIdx | ||
| ) |
Blood pressure measurement complete.
| connId | DM connection identifier. |
| bpmCccIdx | Index of blood pressure measurement CCC descriptor in CCC descriptor handle table. |
| void BlpsProcMsg | ( | wsfMsgHdr_t * | pMsg | ) |
This function is called by the application when the periodic measurement timer expires.
| pMsg | Event message. |
| void BlpsSetBpmFlags | ( | uint8_t | flags | ) |
Set the blood pressure measurement flags.
| flags | Blood pressure measurement flags. |
| void BlpsSetIcpFlags | ( | uint8_t | flags | ) |
Set the intermediate cuff pressure flags.
| flags | Intermediate cuff pressure flags. |