![]() |
Cordio Stack and Cordio Profiles
r2p3-02rel0
|
Data Structures | |
| struct | plxpsCfg_t |
| Configurable parameters. More... | |
| struct | plxpsRec_t |
| Pulse Oximeter measurement record. More... | |
Macros | |
| #define | PLXPS_RACP_MIN_WRITE_LEN 2 |
| Minimum RACP write length. | |
| #define | PLXPS_RACP_RSP_LEN 4 |
| RACP response length. | |
| #define | PLXPS_RACP_NUM_REC_RSP_LEN 4 |
| Pulse Oximeter RACP number of stored records response length. | |
| #define | PLXPS_OPERAND_MAX ((CH_RACP_GLS_FILTER_TIME_LEN * 2) + 1) |
| RACP operand maximum length. | |
Typedefs | |
| typedef appPlxCm_t | plxpCm_t |
| Pulse Oximeter continuous measurement structure. | |
| typedef appPlxScm_t | plxpScm_t |
| Pulse Oximeter spot check measurement structure. | |
Enumerations | |
| enum | { PLXPC_PLXS_PLXSC_HDL_IDX, PLXPC_PLXS_PLXSC_CCC_HDL_IDX, PLXPC_PLXS_PLXC_HDL_IDX, PLXPC_PLXS_PLXC_CCC_HDL_IDX, PLXPC_PLXS_PLXF_HDL_IDX, PLXPC_PLXS_RACP_HDL_IDX, PLXPC_PLXS_RACP_CCC_HDL_IDX, PLXPC_PLXS_HDL_LIST_LEN } |
| Pulse Oximeter service enumeration of handle indexes of characteristics to be discovered. More... | |
Functions | |
| void | PlxpcPlxsDiscover (dmConnId_t connId, uint16_t *pHdlList) |
| Perform service and characteristic discovery for Pulse Oximeter service. Parameter pHdlList must point to an array of length PLXPC_PLXS_HDL_LIST_LEN. If discovery is successful the handles of discovered characteristics and descriptors will be set in pHdlList. More... | |
| uint8_t | PlxpcPlxsValueUpdate (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 PLXPC_PLXS_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 | PlxpcPlxsRacpSend (dmConnId_t connId, uint16_t handle, uint8_t opcode, uint8_t oper) |
| Send a command to the pulse oximeter service record access control point. More... | |
| void | PlxpsInit (wsfHandlerId_t handlerId, plxpsCfg_t *pCfg) |
| Initialize the Pulse Oximeter profile sensor. More... | |
| void | PlxpsProcMsg (wsfMsgHdr_t *pMsg) |
| This function is called by the application when a message that requires processing by the pulse oximeter profile sensor is received. More... | |
| void | PlxpsBtn (dmConnId_t connId, uint8_t btn) |
| Handle a button press. More... | |
| uint8_t | PlxpsWriteCback (dmConnId_t connId, uint16_t handle, uint8_t operation, uint16_t offset, uint16_t len, uint8_t *pValue, attsAttr_t *pAttr) |
| ATTS write callback for pulse oximeter service. More... | |
| void | PlxpsSetFeature (uint16_t feature, uint16_t measStatus, uint32_t sensorStatus) |
| Set the supported features of the pulse oximeter sensor. More... | |
| void | PlxpsSetCccIdx (uint8_t plxscCccIdx, uint8_t plxcCccIdx, uint8_t racpCccIdx) |
| Set the CCCD index used by the application for pulse oximeter service characteristics. More... | |
| void | PlxpsMeasStart (dmConnId_t connId, uint8_t timerEvt, uint8_t plxmCccIdx) |
| Start periodic pulse oximeter measurement. This function starts a timer to perform periodic measurements. More... | |
| void | PlxpsMeasStop (void) |
| Stop periodic pulse oximeter measurement. More... | |
| void | plxpsSendSpotCheckMeas (dmConnId_t connId, plxpScm_t *pMeas) |
| Send a spot check measurement indication. More... | |
| void | plxpsSendContinuousMeas (dmConnId_t connId, plxpCm_t *pMeas) |
| Send a Continuous measurement notification. More... | |
| void | plxpsDbInit (void) |
| Initialize the pulse oximeter record database. More... | |
| uint8_t | plxpsDbGetNextRecord (uint8_t oper, plxpsRec_t *pCurrRec, plxpsRec_t **pRec) |
| Get the next record that matches the given filter parameters that follows the given current record. More... | |
| uint8_t | plxpsDbDeleteRecords (uint8_t oper) |
| Delete records that match the given filter parameters. More... | |
| uint8_t | plxpsDbGetNumRecords (uint8_t oper, uint8_t *pNumRec) |
| Get the number of records matching the filter parameters. More... | |
| void | plxpsDbGenerateRecord (void) |
| Generate a new record. More... | |
| anonymous enum |
Pulse Oximeter service enumeration of handle indexes of characteristics to be discovered.
Definition at line 36 of file plxpc_api.h.
| void PlxpcPlxsDiscover | ( | dmConnId_t | connId, |
| uint16_t * | pHdlList | ||
| ) |
Perform service and characteristic discovery for Pulse Oximeter service. Parameter pHdlList must point to an array of length PLXPC_PLXS_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 PLXPC_PLXS_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 PlxpcPlxsRacpSend | ( | dmConnId_t | connId, |
| uint16_t | handle, | ||
| uint8_t | opcode, | ||
| uint8_t | oper | ||
| ) |
Send a command to the pulse oximeter service record access control point.
| connId | Connection identifier. |
| handle | Attribute handle. |
| opcode | Command opcode. |
| oper | Command operator or 0 if no operator required. |
| void PlxpsInit | ( | wsfHandlerId_t | handlerId, |
| plxpsCfg_t * | pCfg | ||
| ) |
Initialize the Pulse Oximeter profile sensor.
| handlerId | DM connection identifier. |
| pCfg | Configuration parameters. |
| void PlxpsProcMsg | ( | wsfMsgHdr_t * | pMsg | ) |
This function is called by the application when a message that requires processing by the pulse oximeter profile sensor is received.
| pMsg | Event message. |
| void PlxpsBtn | ( | dmConnId_t | connId, |
| uint8_t | btn | ||
| ) |
Handle a button press.
| connId | Connection identifier. |
| btn | Button press. |
| uint8_t PlxpsWriteCback | ( | dmConnId_t | connId, |
| uint16_t | handle, | ||
| uint8_t | operation, | ||
| uint16_t | offset, | ||
| uint16_t | len, | ||
| uint8_t * | pValue, | ||
| attsAttr_t * | pAttr | ||
| ) |
ATTS write callback for pulse oximeter service.
| connId | DM connection identifier. |
| handle | ATT handle. |
| operation | ATT operation. |
| offset | Write offset. |
| len | Write length. |
| pValue | Value to write. |
| pAttr | Attribute to write. |
Set the supported features of the pulse oximeter sensor.
| feature | Feature bitmask. |
| measStatus | Measurement status. |
| sensorStatus | Sensor status. |
Set the CCCD index used by the application for pulse oximeter service characteristics.
| plxscCccIdx | Pulse Oximeter spot check CCCD index. |
| plxcCccIdx | Pulse Oximeter continuous CCCD index. |
| racpCccIdx | Record access control point CCCD index. |
| void PlxpsMeasStart | ( | dmConnId_t | connId, |
| uint8_t | timerEvt, | ||
| uint8_t | plxmCccIdx | ||
| ) |
Start periodic pulse oximeter measurement. This function starts a timer to perform periodic measurements.
| connId | DM connection identifier. |
| timerEvt | WSF event designated by the application for the timer. |
| plxmCccIdx | Index of pulse oximeter CCC descriptor in CCC descriptor handle table. |
| void PlxpsMeasStop | ( | void | ) |
Stop periodic pulse oximeter measurement.
| void plxpsSendSpotCheckMeas | ( | dmConnId_t | connId, |
| plxpScm_t * | pMeas | ||
| ) |
Send a spot check measurement indication.
| connId | Connection ID. |
| pMeas | Pointer to pulse oximeter spot check measurement. |
| void plxpsSendContinuousMeas | ( | dmConnId_t | connId, |
| plxpCm_t * | pMeas | ||
| ) |
Send a Continuous measurement notification.
| connId | Connection ID. |
| pMeas | Pointer to Pulse Oximiter continuous measurement. |
| void plxpsDbInit | ( | void | ) |
Initialize the pulse oximeter record database.
| uint8_t plxpsDbGetNextRecord | ( | uint8_t | oper, |
| plxpsRec_t * | pCurrRec, | ||
| plxpsRec_t ** | pRec | ||
| ) |
Get the next record that matches the given filter parameters that follows the given current record.
| oper | Operator. |
| pCurrRec | Pointer to current record. |
| pRec | Return pointer to next record, if found. |
Delete records that match the given filter parameters.
| oper | Operator. |
Get the number of records matching the filter parameters.
| oper | Operator. |
| pNumRec | Returns number of records which match filter parameters. |
| void plxpsDbGenerateRecord | ( | void | ) |
Generate a new record.