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 "Capsule/CDefinesPrivate.h"
6
7#ifdef __cplusplus
8 extern "C" {
9#endif
10
11 CLC_CLASS_WN(ClassificationPhysiologicalStatesPrivate, clCPhysiologicalStates);
12
13 typedef struct clCPhysiologicalStatesValue {
14 float relaxation;
15 float fatigue;
16 float none;
17 float concentration;
18 float involvement;
19 float stress;
20 bool nfbArtifacts;
21 bool cardioArtifacts;
22} clCPhysiologicalStatesValue;
23
30 CL_DLL clCPhysiologicalStates clCPhysiologicalStates_Create(clCSession session) NOEXCEPT;
31
37 CL_DLL void clCPhysiologicalStates_Destroy(clCPhysiologicalStates states) NOEXCEPT;
38
39 CLC_STRUCT(clCPhysiologicalStatesDelegatePhysiologicalStatesUpdate);
40 typedef void (*clCPhysiologicalStatesHandlerPhysiologicalStatesUpdate)(clCPhysiologicalStates, const clCPhysiologicalStatesValue*);
44 CL_DLL void clCPhysiologicalStatesOnPhysiologicalStatesUpdateEvent_Set(clCPhysiologicalStatesDelegatePhysiologicalStatesUpdate delegate,
45 clCPhysiologicalStatesHandlerPhysiologicalStatesUpdate handler) NOEXCEPT;
49 CL_DLL clCPhysiologicalStatesDelegatePhysiologicalStatesUpdate clCPhysiologicalStates_GetOnPhysiologicalStatesUpdateEvent(clCPhysiologicalStates states) NOEXCEPT;
50
51 CLC_STRUCT(clCPhysiologicalStatesDelegateInitialized);
52 typedef void (*clCPhysiologicalStatesHandlerInitialized)(clCPhysiologicalStates);
56 CL_DLL void clCPhysiologicalStatesOnInitializedEvent_Set(clCPhysiologicalStatesDelegateInitialized delegate, clCPhysiologicalStatesHandlerInitialized handler) NOEXCEPT;
60 CL_DLL clCPhysiologicalStatesDelegateInitialized clCPhysiologicalStates_GetOnInitializedEvent(clCPhysiologicalStates states) NOEXCEPT;
61
62 typedef struct clCPhysiologicalStatesBaselines {
63 float alpha;
64 float beta;
65 float alphaGravity;
66 float betaGravity;
67 float concentration;
68} clCPhysiologicalStatesBaselines;
69
70 CLC_STRUCT(clCPhysiologicalStatesDelegateCalibrated);
71 typedef void (*clCPhysiologicalStatesHandlerCalibrated)(clCPhysiologicalStates, const clCPhysiologicalStatesBaselines*);
72
76 CL_DLL void clCPhysiologicalStatesOnCalibratedEvent_Set(clCPhysiologicalStatesDelegateCalibrated delegate,
77 clCPhysiologicalStatesHandlerCalibrated handler) NOEXCEPT;
81 CL_DLL clCPhysiologicalStatesDelegateCalibrated clCPhysiologicalStates_GetOnCalibratedEvent(clCPhysiologicalStates states) NOEXCEPT;
82
88 CL_DLL void clCPhysiologicalStates_Initialize(clCPhysiologicalStates states) NOEXCEPT;
89
96 CL_DLL void clCPhysiologicalStates_InitializeWithCalculationPeriod(clCPhysiologicalStates states, float calculationPeriod) NOEXCEPT;
97
103 CL_DLL void clCPhysiologicalStates_StartCalibration(clCPhysiologicalStates states) NOEXCEPT;
104
105#ifdef __cplusplus
106}
107#endif
CDefinesPrivate.h
CLC_STRUCT
#define CLC_STRUCT(Name)
Definition CDefinesPrivate.h:24
NOEXCEPT
#define NOEXCEPT
Definition CDefinesPrivate.h:52
CL_DLL
#define CL_DLL
Definition CDefinesPrivate.h:21
CLC_CLASS_WN
#define CLC_CLASS_WN(Wrapped, Name)
Definition CDefinesPrivate.h:54
clCPhysiologicalStatesOnInitializedEvent_Set
CL_DLL void clCPhysiologicalStatesOnInitializedEvent_Set(clCPhysiologicalStatesDelegateInitialized delegate, clCPhysiologicalStatesHandlerInitialized handler) NOEXCEPT
Set handler for physiological staes initialized delegate.
clCPhysiologicalStatesOnPhysiologicalStatesUpdateEvent_Set
CL_DLL void clCPhysiologicalStatesOnPhysiologicalStatesUpdateEvent_Set(clCPhysiologicalStatesDelegatePhysiologicalStatesUpdate delegate, clCPhysiologicalStatesHandlerPhysiologicalStatesUpdate handler) NOEXCEPT
Set handler for physiological states update event.
clCPhysiologicalStates_StartCalibration
CL_DLL void clCPhysiologicalStates_StartCalibration(clCPhysiologicalStates states) NOEXCEPT
Start physiological states calibration.
clCPhysiologicalStates_Create
CL_DLL clCPhysiologicalStates clCPhysiologicalStates_Create(clCSession session) NOEXCEPT
Create a PhysiologicalStates classifier.
clCPhysiologicalStates_GetOnCalibratedEvent
CL_DLL clCPhysiologicalStatesDelegateCalibrated clCPhysiologicalStates_GetOnCalibratedEvent(clCPhysiologicalStates states) NOEXCEPT
Get delegate for physiological states calibrated event.
clCPhysiologicalStatesHandlerCalibrated
void(* clCPhysiologicalStatesHandlerCalibrated)(clCPhysiologicalStates, const clCPhysiologicalStatesBaselines *)
Definition CPhysiologicalStates.h:71
clCPhysiologicalStates_GetOnInitializedEvent
CL_DLL clCPhysiologicalStatesDelegateInitialized clCPhysiologicalStates_GetOnInitializedEvent(clCPhysiologicalStates states) NOEXCEPT
Get delegate for physiological states initialized event.
clCPhysiologicalStatesHandlerPhysiologicalStatesUpdate
void(* clCPhysiologicalStatesHandlerPhysiologicalStatesUpdate)(clCPhysiologicalStates, const clCPhysiologicalStatesValue *)
Definition CPhysiologicalStates.h:40
clCPhysiologicalStatesHandlerInitialized
void(* clCPhysiologicalStatesHandlerInitialized)(clCPhysiologicalStates)
Definition CPhysiologicalStates.h:52
clCPhysiologicalStates_InitializeWithCalculationPeriod
CL_DLL void clCPhysiologicalStates_InitializeWithCalculationPeriod(clCPhysiologicalStates states, float calculationPeriod) NOEXCEPT
Initialize physiological states classifier with custom calculation period.
clCPhysiologicalStates_GetOnPhysiologicalStatesUpdateEvent
CL_DLL clCPhysiologicalStatesDelegatePhysiologicalStatesUpdate clCPhysiologicalStates_GetOnPhysiologicalStatesUpdateEvent(clCPhysiologicalStates states) NOEXCEPT
Set delegate for physiological states update event.
clCPhysiologicalStates_Initialize
CL_DLL void clCPhysiologicalStates_Initialize(clCPhysiologicalStates states) NOEXCEPT
Initialize physiological states classifier with default calculation period.
clCPhysiologicalStates_Destroy
CL_DLL void clCPhysiologicalStates_Destroy(clCPhysiologicalStates states) NOEXCEPT
Destroy PhysiologicalStates classifier.
clCPhysiologicalStatesOnCalibratedEvent_Set
CL_DLL void clCPhysiologicalStatesOnCalibratedEvent_Set(clCPhysiologicalStatesDelegateCalibrated delegate, clCPhysiologicalStatesHandlerCalibrated handler) NOEXCEPT
Set handler for physiological staes calibrated delegate.
clCPhysiologicalStatesBaselines
Definition CPhysiologicalStates.h:62
clCPhysiologicalStatesBaselines::betaGravity
float betaGravity
Definition CPhysiologicalStates.h:66
clCPhysiologicalStatesBaselines::beta
float beta
Definition CPhysiologicalStates.h:64
clCPhysiologicalStatesBaselines::alphaGravity
float alphaGravity
Definition CPhysiologicalStates.h:65
clCPhysiologicalStatesBaselines::alpha
float alpha
Definition CPhysiologicalStates.h:63
clCPhysiologicalStatesBaselines::concentration
float concentration
Definition CPhysiologicalStates.h:67
clCPhysiologicalStatesValue
Definition CPhysiologicalStates.h:13
clCPhysiologicalStatesValue::nfbArtifacts
bool nfbArtifacts
Definition CPhysiologicalStates.h:20
clCPhysiologicalStatesValue::fatigue
float fatigue
Definition CPhysiologicalStates.h:15
clCPhysiologicalStatesValue::stress
float stress
Definition CPhysiologicalStates.h:19
clCPhysiologicalStatesValue::concentration
float concentration
Definition CPhysiologicalStates.h:17
clCPhysiologicalStatesValue::relaxation
float relaxation
Definition CPhysiologicalStates.h:14
clCPhysiologicalStatesValue::cardioArtifacts
bool cardioArtifacts
Definition CPhysiologicalStates.h:21
clCPhysiologicalStatesValue::involvement
float involvement
Definition CPhysiologicalStates.h:18
clCPhysiologicalStatesValue::none
float none
Definition CPhysiologicalStates.h:16