Capsule API Example

Loading...
Searching...
No Matches
CPhysiologicalStates.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
8#ifdef __cplusplus
9 extern "C" {
10#endif
11
12 CLC_CLASS_WN(ClassificationPhysiologicalStatesPrivate, clCPhysiologicalStates);
13
14 typedef struct clCPhysiologicalStates_Value {
15 int64_t timestampMilli = -1;
16 float relaxation = -1.F;
17 float fatigue = -1.F;
18 float none = -1.F;
19 float concentration = -1.F;
20 float involvement = -1.F;
21 float stress = -1.F;
22 bool nfbArtifacts = false;
23 bool cardioArtifacts = false;
24} clCPhysiologicalStates_Value;
25
26 typedef struct clCPhysiologicalStates_Baselines {
27 int64_t timestampMilli = -1;
28 float alpha = -1.F;
29 float beta = -1.F;
30 float alphaGravity = -1.F;
31 float betaGravity = -1.F;
32 float concentration = -1.F;
33} clCPhysiologicalStates_Baselines;
34
35 CL_DLL clCPhysiologicalStates clCPhysiologicalStates_Create(clCDevice device, clCError* error) NOEXCEPT;
36 CL_DLL void clCPhysiologicalStates_ImportBaselines(clCPhysiologicalStates states, const clCPhysiologicalStates_Baselines* baselines) NOEXCEPT;
37 CL_DLL void clCPhysiologicalStates_StartBaselineCalibration(clCPhysiologicalStates states) NOEXCEPT;
38
39 typedef void (*clCPhysiologicalStates_StatesUpdateHandler)(clCPhysiologicalStates, const clCPhysiologicalStates_Value*) NOEXCEPT;
40 CL_DLL void clCPhysiologicalStates_SetOnStatesUpdateEvent(clCPhysiologicalStates states, clCPhysiologicalStates_StatesUpdateHandler handler, clCError* error) NOEXCEPT;
41
42 typedef void (*clCPhysiologicalStates_CalibratedHandler)(clCPhysiologicalStates, const clCPhysiologicalStates_Baselines*) NOEXCEPT;
43 CL_DLL void clCPhysiologicalStates_SetOnCalibratedEvent(clCPhysiologicalStates states, clCPhysiologicalStates_CalibratedHandler handler, clCError* error) NOEXCEPT;
44
45 typedef void (*clCPhysiologicalStates_CalibrationProgressUpdateHandler)(clCPhysiologicalStates, float) NOEXCEPT;
46 CL_DLL void clCPhysiologicalStates_SetOnCalibrationProgressUpdateEvent(clCPhysiologicalStates states, clCPhysiologicalStates_CalibrationProgressUpdateHandler handler, clCError* error) NOEXCEPT;
47
48 typedef void (*clCPhysiologicalStates_IndividualNFBUpdateHandler)(clCPhysiologicalStates) NOEXCEPT;
49 CL_DLL void clCPhysiologicalStates_SetOnIndividualNFBUpdateEvent(clCPhysiologicalStates states, clCPhysiologicalStates_IndividualNFBUpdateHandler handler, clCError* error) NOEXCEPT;
50
51#ifdef __cplusplus
52}
53#endif
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
clCPhysiologicalStates_Baselines
struct clCPhysiologicalStates_Baselines clCPhysiologicalStates_Baselines
clCPhysiologicalStates_StartBaselineCalibration
CL_DLL void clCPhysiologicalStates_StartBaselineCalibration(clCPhysiologicalStates states) NOEXCEPT
clCPhysiologicalStates_SetOnCalibratedEvent
CL_DLL void clCPhysiologicalStates_SetOnCalibratedEvent(clCPhysiologicalStates states, clCPhysiologicalStates_CalibratedHandler handler, clCError *error) NOEXCEPT
clCPhysiologicalStates_StatesUpdateHandler
void(* clCPhysiologicalStates_StatesUpdateHandler)(clCPhysiologicalStates, const clCPhysiologicalStates_Value *) NOEXCEPT
Definition CPhysiologicalStates.h:39
clCPhysiologicalStates_Create
CL_DLL clCPhysiologicalStates clCPhysiologicalStates_Create(clCDevice device, clCError *error) NOEXCEPT
clCPhysiologicalStates_Value
struct clCPhysiologicalStates_Value clCPhysiologicalStates_Value
clCPhysiologicalStates_SetOnCalibrationProgressUpdateEvent
CL_DLL void clCPhysiologicalStates_SetOnCalibrationProgressUpdateEvent(clCPhysiologicalStates states, clCPhysiologicalStates_CalibrationProgressUpdateHandler handler, clCError *error) NOEXCEPT
clCPhysiologicalStates_IndividualNFBUpdateHandler
void(* clCPhysiologicalStates_IndividualNFBUpdateHandler)(clCPhysiologicalStates) NOEXCEPT
Definition CPhysiologicalStates.h:48
clCPhysiologicalStates_SetOnIndividualNFBUpdateEvent
CL_DLL void clCPhysiologicalStates_SetOnIndividualNFBUpdateEvent(clCPhysiologicalStates states, clCPhysiologicalStates_IndividualNFBUpdateHandler handler, clCError *error) NOEXCEPT
clCPhysiologicalStates_CalibratedHandler
void(* clCPhysiologicalStates_CalibratedHandler)(clCPhysiologicalStates, const clCPhysiologicalStates_Baselines *) NOEXCEPT
Definition CPhysiologicalStates.h:42
clCPhysiologicalStates_SetOnStatesUpdateEvent
CL_DLL void clCPhysiologicalStates_SetOnStatesUpdateEvent(clCPhysiologicalStates states, clCPhysiologicalStates_StatesUpdateHandler handler, clCError *error) NOEXCEPT
clCPhysiologicalStates_CalibrationProgressUpdateHandler
void(* clCPhysiologicalStates_CalibrationProgressUpdateHandler)(clCPhysiologicalStates, float) NOEXCEPT
Definition CPhysiologicalStates.h:45
clCPhysiologicalStates_ImportBaselines
CL_DLL void clCPhysiologicalStates_ImportBaselines(clCPhysiologicalStates states, const clCPhysiologicalStates_Baselines *baselines) NOEXCEPT
clCError
Definition CError.h:28
clCPhysiologicalStates_Baselines
Definition CPhysiologicalStates.h:26
clCPhysiologicalStates_Baselines::alpha
float alpha
Definition CPhysiologicalStates.h:28
clCPhysiologicalStates_Baselines::alphaGravity
float alphaGravity
Definition CPhysiologicalStates.h:30
clCPhysiologicalStates_Baselines::beta
float beta
Definition CPhysiologicalStates.h:29
clCPhysiologicalStates_Baselines::concentration
float concentration
Definition CPhysiologicalStates.h:32
clCPhysiologicalStates_Baselines::betaGravity
float betaGravity
Definition CPhysiologicalStates.h:31
clCPhysiologicalStates_Baselines::timestampMilli
int64_t timestampMilli
Definition CPhysiologicalStates.h:27
clCPhysiologicalStates_Value
Definition CPhysiologicalStates.h:14
clCPhysiologicalStates_Value::timestampMilli
int64_t timestampMilli
Definition CPhysiologicalStates.h:15
clCPhysiologicalStates_Value::none
float none
Definition CPhysiologicalStates.h:18
clCPhysiologicalStates_Value::stress
float stress
Definition CPhysiologicalStates.h:21
clCPhysiologicalStates_Value::relaxation
float relaxation
Definition CPhysiologicalStates.h:16
clCPhysiologicalStates_Value::fatigue
float fatigue
Definition CPhysiologicalStates.h:17
clCPhysiologicalStates_Value::concentration
float concentration
Definition CPhysiologicalStates.h:19
clCPhysiologicalStates_Value::nfbArtifacts
bool nfbArtifacts
Definition CPhysiologicalStates.h:22
clCPhysiologicalStates_Value::involvement
float involvement
Definition CPhysiologicalStates.h:20
clCPhysiologicalStates_Value::cardioArtifacts
bool cardioArtifacts
Definition CPhysiologicalStates.h:23