InertiaSDK

Loading...
Searching...
No Matches
c_InertiaDLL.h
1#pragma once
2
3#include "dll/InertiaExport.h"
4
5#ifdef __cplusplus
6 extern "C"
7{
8#endif
9
15 INERTIA_API bool setConnection(const char* port, bool open);
16
27 INERTIA_API unsigned getImuSamples(const char* port, unsigned addrID, double* data, unsigned rows, unsigned timeoutMs);
28
32 INERTIA_API unsigned getImuColumns();
33
43 INERTIA_API unsigned getADCSamples(const char* port, unsigned addrID, double* data, unsigned rows, unsigned cols, unsigned timeoutMs);
44
49 INERTIA_API void setUseRawADCSamples(bool enable);
50
60 INERTIA_API unsigned getStatusSamples(const char* port, unsigned addrID, double* data, unsigned rows);
61
65 INERTIA_API unsigned getStatusColumns();
66
74 INERTIA_API void getDataLossStats(const char* port, unsigned addrID, unsigned long& lost, unsigned long& received);
75
80 INERTIA_API bool resetOrientationAlgorithm(const char* port);
81
89 INERTIA_API bool setOrientationSettings(bool enable, bool useCompass, bool enableBiasEstimation, bool resetInRest);
90
106 INERTIA_API bool updateNexoSettings(const char* port, unsigned addrID, unsigned channel, unsigned channelMask, bool enable,
107 unsigned hwGain, float hwBias, float voltagePH1, float voltagePH2, float current, bool acdc, unsigned frontEnd);
108
114 INERTIA_API bool setOperatingMode(const char* port, unsigned addrID, unsigned mode);
115
122 INERTIA_API void firmwareUpdate(const char* port, unsigned addrID, const char* file, bool validate);
123
127 INERTIA_API int getFirmwareUpdateStatus();
128
129#ifdef __cplusplus
130}
131#endif