Cordio Stack and Cordio Profiles  r2p3-02rel0
Blood Pressure Profile

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...
 

Description

Enumeration Type Documentation

anonymous enum

Blood Pressure service enumeration of handle indexes of characteristics to be discovered.

Enumerator
BLPC_BPS_BPM_HDL_IDX 

Blood pressure measurement.

BLPC_BPS_BPM_CCC_HDL_IDX 

Blood pressure measurement CCC descriptor.

BLPC_BPS_ICP_HDL_IDX 

Intermediate cuff pressure.

BLPC_BPS_ICP_CCC_HDL_IDX 

Intermediate cuff pressure CCC descriptor.

BLPC_BPS_BPF_HDL_IDX 

Blood pressure feature.

BLPC_BPS_HDL_LIST_LEN 

Handle list length.

Definition at line 36 of file blpc_api.h.

37 {
38  BLPC_BPS_BPM_HDL_IDX, /*!< \brief Blood pressure measurement */
39  BLPC_BPS_BPM_CCC_HDL_IDX, /*!< \brief Blood pressure measurement CCC descriptor */
40  BLPC_BPS_ICP_HDL_IDX, /*!< \brief Intermediate cuff pressure */
41  BLPC_BPS_ICP_CCC_HDL_IDX, /*!< \brief Intermediate cuff pressure CCC descriptor */
42  BLPC_BPS_BPF_HDL_IDX, /*!< \brief Blood pressure feature */
43  BLPC_BPS_HDL_LIST_LEN /*!< \brief Handle list length */
44 };
Handle list length.
Definition: blpc_api.h:43
Intermediate cuff pressure CCC descriptor.
Definition: blpc_api.h:41
Blood pressure measurement.
Definition: blpc_api.h:38
Intermediate cuff pressure.
Definition: blpc_api.h:40
Blood pressure measurement CCC descriptor.
Definition: blpc_api.h:39
Blood pressure feature.
Definition: blpc_api.h:42

Function Documentation

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.

Parameters
connIdConnection identifier.
pHdlListCharacteristic handle list.
Returns
None.
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.

Parameters
pHdlListCharacteristic handle list.
pMsgATT callback message.
Returns
ATT_SUCCESS if handle is found, ATT_ERR_NOT_FOUND otherwise.
void BlpsInit ( wsfHandlerId_t  handlerId,
blpsCfg_t pCfg 
)

Initialize the Blood Pressure profile sensor.

Parameters
handlerIdWSF handler ID of the application using this service.
pCfgConfigurable parameters.
Returns
None.
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.

Parameters
connIdDM connection identifier.
timerEvtWSF event designated by the application for the timer.
icpCccIdxIndex of intermediate cuff pressure CCC descriptor in CCC descriptor handle table.
Returns
None.
void BlpsMeasStop ( void  )

Stop periodic blood pressure measurement.

Returns
None.
void BlpsMeasComplete ( dmConnId_t  connId,
uint8_t  bpmCccIdx 
)

Blood pressure measurement complete.

Parameters
connIdDM connection identifier.
bpmCccIdxIndex of blood pressure measurement CCC descriptor in CCC descriptor handle table.
Returns
None.
void BlpsProcMsg ( wsfMsgHdr_t pMsg)

This function is called by the application when the periodic measurement timer expires.

Parameters
pMsgEvent message.
Returns
None.
void BlpsSetBpmFlags ( uint8_t  flags)

Set the blood pressure measurement flags.

Parameters
flagsBlood pressure measurement flags.
Returns
None.
void BlpsSetIcpFlags ( uint8_t  flags)

Set the intermediate cuff pressure flags.

Parameters
flagsIntermediate cuff pressure flags.
Returns
None.