2022-11-03 21:46:41 +00:00
|
|
|
struct QEI_t{
|
|
|
|
int value;
|
|
|
|
int delta;
|
|
|
|
};
|
|
|
|
|
2022-11-20 12:13:14 +00:00
|
|
|
enum QEI_name_t{
|
|
|
|
QEI_A_NAME=0,
|
|
|
|
QEI_B_NAME=1,
|
|
|
|
QEI_C_NAME=2
|
|
|
|
};
|
|
|
|
|
2022-11-18 14:16:13 +00:00
|
|
|
extern struct QEI_t QEI_A, QEI_B, QEI_C;
|
|
|
|
|
2022-11-03 21:46:41 +00:00
|
|
|
void QEI_update(void);
|
2022-11-18 14:16:13 +00:00
|
|
|
void QEI_init(void);
|
2022-11-20 12:13:14 +00:00
|
|
|
int QEI_get(enum QEI_name_t qei);
|