Example

Loading...
Searching...
No Matches
CMEMS.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#include "Capsule/CMEMSTimedData.h"
7#include "Capsule/CNFBCalibrator.h"
8#include "Capsule/CSession.h"
9
10#ifdef __cplusplus
11 extern "C" {
12#endif
13
14 CLC_CLASS_WN(ClassificationMEMSPrivate, clCMEMS);
15
22 CL_DLL clCMEMS clCMEMS_Create(clCSession session) NOEXCEPT;
29 CL_DLL clCMEMS clCMEMS_CreateCalibrated(clCNFBCalibrator calibrator) NOEXCEPT;
30
36 CL_DLL void clCMEMS_Initialize(clCMEMS mems) NOEXCEPT;
37
38 CLC_STRUCT(clCMEMSTimedDataDelegate);
42 CL_DLL clCMEMSTimedDataDelegate clCMEMS_GetOnMEMSTimedDataUpdateEvent(clCMEMS mems) NOEXCEPT;
43
44 typedef void (*clCMEMSDataUpdateHandler)(clCMEMS, clCMEMSTimedData);
48 CL_DLL void clCMEMSDelegateMEMSTimedDataUpdate_Set(clCMEMSTimedDataDelegate delegate,
49 clCMEMSDataUpdateHandler callback) NOEXCEPT;
50
56 CL_DLL void clCMEMS_Destroy(clCMEMS mems) NOEXCEPT;
57
58#ifdef __cplusplus
59}
60#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
clCMEMS_Initialize
CL_DLL void clCMEMS_Initialize(clCMEMS mems) NOEXCEPT
Initialize cardio classifier.
clCMEMS_Destroy
CL_DLL void clCMEMS_Destroy(clCMEMS mems) NOEXCEPT
Destroy MEMS classifier.
clCMEMS_Create
CL_DLL clCMEMS clCMEMS_Create(clCSession session) NOEXCEPT
Create a MEMS classifier.
clCMEMSDataUpdateHandler
void(* clCMEMSDataUpdateHandler)(clCMEMS, clCMEMSTimedData)
Definition CMEMS.h:44
clCMEMS_CreateCalibrated
CL_DLL clCMEMS clCMEMS_CreateCalibrated(clCNFBCalibrator calibrator) NOEXCEPT
Create a MEMS classifier after individual NFB has calibrated.
clCMEMSDelegateMEMSTimedDataUpdate_Set
CL_DLL void clCMEMSDelegateMEMSTimedDataUpdate_Set(clCMEMSTimedDataDelegate delegate, clCMEMSDataUpdateHandler callback) NOEXCEPT
Set handler for MEMS data updates delegate.
clCMEMS_GetOnMEMSTimedDataUpdateEvent
CL_DLL clCMEMSTimedDataDelegate clCMEMS_GetOnMEMSTimedDataUpdateEvent(clCMEMS mems) NOEXCEPT
Get delegate for MEMS data event.
CMEMSTimedData.h
CNFBCalibrator.h
CSession.h