25 lines
634 B
C
25 lines
634 B
C
//
|
|
// 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
|