Capsule API Example

Loading...
Searching...
No Matches
Functions
CPPGTimedData.h File Reference
`#include "CDefinesPrivate.h"`

Go to the source code of this file.

## Functions
| CLC_STRUCT_WNN (PPGTimedData, clCPPGTimedData, cardio)
| Array of PPG data with timestamps.
CL_DLL int32_t | clCPPGTimedData_GetCount (clCPPGTimedData ppgTimedData) NOEXCEPT
| Get total number of PPG values.
CL_DLL float | clCPPGTimedData_GetValue (clCPPGTimedData ppgTimedData, int32_t index) NOEXCEPT
| Get PPG value by index.
CL_DLL uint64_t | clCPPGTimedData_GetTimestampMilli (clCPPGTimedData ppgTimedData, int32_t index) NOEXCEPT
| Get PPG timestamp by index.

## Function Documentation

## ◆ CLC_STRUCT_WNN()

CLC_STRUCT_WNN | ( | PPGTimedData | ,
|  | clCPPGTimedData | ,
|  | cardio | )

Array of PPG data with timestamps.

Contains samples of PPG sensor and their timestamps

## ◆ clCPPGTimedData_GetCount()

CL_DLL int32_t clCPPGTimedData_GetCount | ( | clCPPGTimedData | ppgTimedData | ) |

Get total number of PPG values.

Parameters

  ppgTimedData | PPG handle

Returns
  number of values

## ◆ clCPPGTimedData_GetTimestampMilli()

CL_DLL uint64_t clCPPGTimedData_GetTimestampMilli | ( | clCPPGTimedData | ppgTimedData,
|  | int32_t | index )

Get PPG timestamp by index.

Parameters

  ppgTimedData | PPG handle
  index | index

Returns
  timestamp in milliseconds since epoch

## ◆ clCPPGTimedData_GetValue()

CL_DLL float clCPPGTimedData_GetValue | ( | clCPPGTimedData | ppgTimedData,
|  | int32_t | index )

Get PPG value by index.

Parameters

  ppgTimedData | PPG handle
  index | index

Returns
  ppg value