This commit is contained in:
cfif 2025-06-02 13:26:40 +03:00
commit d2880e4b02
2 changed files with 41 additions and 0 deletions

View File

@ -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

17
modular.json Normal file
View File

@ -0,0 +1,17 @@
{
"dep": [
{
"type": "git",
"provider": "Smart_Components_Aurus",
"repo": "VectorMath"
}
],
"cmake": {
"inc_dirs": [
"Inc"
],
"srcs": [
"Src/**.c"
]
}
}