123

Dependencies:   mbed

Fork of LG by igor Apu

Committer:
Diletant
Date:
Sun Jun 05 11:03:33 2016 +0000
Revision:
167:bedc0a9d559a
Parent:
156:e68ee0bcdcda
Child:
173:7f938afb0447
Device & ... update. Not final!!!

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Diletant 156:e68ee0bcdcda 1 #ifndef __DEVICE_QEI_H__
Diletant 156:e68ee0bcdcda 2 #define __DEVICE_QEI_H__
Diletant 156:e68ee0bcdcda 3
Diletant 156:e68ee0bcdcda 4 typedef struct _DeviceQEISettings {
Diletant 156:e68ee0bcdcda 5 } DeviceQEISettings;
Diletant 156:e68ee0bcdcda 6
Diletant 156:e68ee0bcdcda 7 typedef struct _DeviceQEIState {
Diletant 156:e68ee0bcdcda 8 int32_t position;
Diletant 156:e68ee0bcdcda 9 int32_t delta;
Diletant 156:e68ee0bcdcda 10 } DeviceQEIState;
Diletant 156:e68ee0bcdcda 11
Diletant 156:e68ee0bcdcda 12 typedef struct _DeviceQEI {
Diletant 156:e68ee0bcdcda 13 DeviceQEISettings settings;
Diletant 156:e68ee0bcdcda 14 DeviceQEIState state;
Diletant 156:e68ee0bcdcda 15 } DeviceQEI;
Diletant 156:e68ee0bcdcda 16
Diletant 167:bedc0a9d559a 17 void InitQEIDefaultSettings(void);
Diletant 167:bedc0a9d559a 18 void InitQEIState(void);
Diletant 167:bedc0a9d559a 19 void DeviceStartQEI(void);
Diletant 167:bedc0a9d559a 20
Diletant 156:e68ee0bcdcda 21 void DeviceQEIRead(void);
Diletant 156:e68ee0bcdcda 22
Diletant 156:e68ee0bcdcda 23 #endif /* __DEVICE_QEI_H__ */