blob: 8455502f5d71e6f165b396723cf8ff344312f5ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include <stdint.h>
#define EVE_VTRACK_ACC_A 10000
typedef int (*eve_vtrack_start_t) (EVETouch *, void *);
typedef int (*eve_vtrack_tick_t) (EVETouch *, void *);
typedef void (*eve_vtrack_stop_t) (EVETouch *, void *);
typedef struct EVEVTrack {
eve_vtrack_start_t start;
eve_vtrack_tick_t tick;
eve_vtrack_stop_t stop;
void *param;
} EVEVTrack;
void eve_vtrack_init(void);
EVEVTrack *eve_vtrack_get(void);
void eve_vtrack_set(eve_vtrack_start_t start, eve_vtrack_tick_t tick, eve_vtrack_stop_t stop, void *param);
void eve_vtrack_reset(void);
int eve_vtrack_start(EVETouch *touch, uint8_t tag0, uint32_t to);
void eve_vtrack_stop(EVETouch *touch);
int eve_vtrack_acc_start(EVETouch *touch, void *p);
int eve_vtrack_acc_tick(EVETouch *touch, void *p);
|