commit d2880e4b028d67cd3c9c857b6572efc26933eb65 Author: cfif Date: Mon Jun 2 13:26:40 2025 +0300 Init diff --git a/Inc/AccelDataFlowInterface.h b/Inc/AccelDataFlowInterface.h new file mode 100644 index 0000000..f93b5b7 --- /dev/null +++ b/Inc/AccelDataFlowInterface.h @@ -0,0 +1,24 @@ +// +// Created by xemon on 21.11.22. +// + +#ifndef UVEOS_ON_NATION_ACCELDATAFLOWINTERFACE_H +#define UVEOS_ON_NATION_ACCELDATAFLOWINTERFACE_H + +#include "vector.h" +#include "stdbool.h" + +typedef bool (*accelDataGetNextCall)(void *env, vector3 *value, uint32_t timeout); + +typedef void (*accelDataClearCall)(void *env); + +typedef struct { + void *env; + accelDataGetNextCall getNext; + accelDataClearCall clear; +} tAccelDataFlowInterface; + +#define AccelDataFlow_GetNext(ENV, VEC, TIMEOUT) (ENV)->getNext((ENV)->env,VEC,TIMEOUT) +#define AccelDataFlow_Clear(ENV) (ENV)->clear((ENV)->env) + +#endif //UVEOS_ON_NATION_ACCELDATAFLOWINTERFACE_H diff --git a/modular.json b/modular.json new file mode 100644 index 0000000..b953627 --- /dev/null +++ b/modular.json @@ -0,0 +1,17 @@ +{ + "dep": [ + { + "type": "git", + "provider": "Smart_Components_Aurus", + "repo": "VectorMath" + } + ], + "cmake": { + "inc_dirs": [ + "Inc" + ], + "srcs": [ + "Src/**.c" + ] + } +} \ No newline at end of file