Capsule API Example

Loading...
Searching...
No Matches
CCardio.h
Go to the documentation of this file.
1// Copyright. 2019 - 2024 PSBD. All rights reserved.
2
3#pragma once
4
5#include "CDefinesPrivate.h"
6#include "CDevice.h"
7#include "CNFBCalibrator.h"
8#include "CPPGTimedData.h"
9
10#ifdef __cplusplus
11 extern "C" {
12#endif
13
14 CLC_CLASS_WN(ClassificationCardioPrivate, clCCardio);
15
16 typedef struct clCCardio_Data {
17 int64_t timestampMilli = -1;
18 float heartRate = 0.F;
19 float stressIndex = 0.F;
20 float kaplanIndex = 0.F;
21 bool hasArtifacts = 0.F;
22 bool skinContact = 0.F;
23 bool motionArtifacts = 0.F;
24 bool metricsAvailable = 0.F;
25} clCCardio_Data;
26
27 CL_DLL clCCardio clCCardio_Create(clCDevice device, clCError* error) NOEXCEPT;
28 CL_DLL clCCardio clCCardio_CreateCalibrated(clCDevice device, clCNFBCalibrator calibrator, clCError* error) NOEXCEPT;
29
30 typedef void (*clCCardio_IndexesUpdateHandler)(clCCardio, const clCCardio_Data*) NOEXCEPT;
31 CL_DLL void clCCardio_SetOnIndexesUpdateEvent(clCCardio cardio, clCCardio_IndexesUpdateHandler handler, clCError* error) NOEXCEPT;
32
33 typedef void (*clCCardio_CalibratedHandler)(clCCardio) NOEXCEPT;
34 CL_DLL void clCCardio_SetOnCalibratedEvent(clCCardio cardio, clCCardio_CalibratedHandler handler, clCError* error) NOEXCEPT;
35
36 typedef void (*clCCardio_PPGDataHandler)(clCCardio, clCPPGTimedData) NOEXCEPT;
37 CL_DLL void clCCardio_SetOnPPGDataEvent(clCCardio cardio, clCCardio_PPGDataHandler handler, clCError* error) NOEXCEPT;
38
39#ifdef __cplusplus
40}
41#endif
clCCardio_PPGDataHandler
void(* clCCardio_PPGDataHandler)(clCCardio, clCPPGTimedData) NOEXCEPT
Definition CCardio.h:36
clCCardio_CalibratedHandler
void(* clCCardio_CalibratedHandler)(clCCardio) NOEXCEPT
Definition CCardio.h:33
clCCardio_SetOnCalibratedEvent
CL_DLL void clCCardio_SetOnCalibratedEvent(clCCardio cardio, clCCardio_CalibratedHandler handler, clCError *error) NOEXCEPT
clCCardio_SetOnPPGDataEvent
CL_DLL void clCCardio_SetOnPPGDataEvent(clCCardio cardio, clCCardio_PPGDataHandler handler, clCError *error) NOEXCEPT
clCCardio_Create
CL_DLL clCCardio clCCardio_Create(clCDevice device, clCError *error) NOEXCEPT
clCCardio_SetOnIndexesUpdateEvent
CL_DLL void clCCardio_SetOnIndexesUpdateEvent(clCCardio cardio, clCCardio_IndexesUpdateHandler handler, clCError *error) NOEXCEPT
clCCardio_CreateCalibrated
CL_DLL clCCardio clCCardio_CreateCalibrated(clCDevice device, clCNFBCalibrator calibrator, clCError *error) NOEXCEPT
clCCardio_Data
struct clCCardio_Data clCCardio_Data
clCCardio_IndexesUpdateHandler
void(* clCCardio_IndexesUpdateHandler)(clCCardio, const clCCardio_Data *) NOEXCEPT
Definition CCardio.h:30
CDefinesPrivate.h
NOEXCEPT
#define NOEXCEPT
Definition CDefinesPrivate.h:82
CL_DLL
#define CL_DLL
Definition CDefinesPrivate.h:51
CLC_CLASS_WN
#define CLC_CLASS_WN(Wrapped, Name)
Definition CDefinesPrivate.h:84
CDevice.h
CNFBCalibrator.h
CPPGTimedData.h
clCCardio_Data
Definition CCardio.h:16
clCCardio_Data::stressIndex
float stressIndex
Definition CCardio.h:19
clCCardio_Data::hasArtifacts
bool hasArtifacts
Definition CCardio.h:21
clCCardio_Data::motionArtifacts
bool motionArtifacts
Definition CCardio.h:23
clCCardio_Data::metricsAvailable
bool metricsAvailable
Definition CCardio.h:24
clCCardio_Data::skinContact
bool skinContact
Definition CCardio.h:22
clCCardio_Data::heartRate
float heartRate
Definition CCardio.h:18
clCCardio_Data::kaplanIndex
float kaplanIndex
Definition CCardio.h:20
clCCardio_Data::timestampMilli
int64_t timestampMilli
Definition CCardio.h:17
clCError
Definition CError.h:28