123

Dependencies:   mbed

Fork of LG by igor Apu

DeviceQEI.h

Committer:
Diletant
Date:
2016-07-03
Revision:
177:672ef279c8e0
Parent:
173:7f938afb0447
Child:
182:2bd8ec44998f

File content as of revision 177:672ef279c8e0:

#ifndef __DEVICE_QEI_H__
#define __DEVICE_QEI_H__

#ifdef DEBUG_QEI
#warning "Program config: QEI debug enabled!!!"
#endif

typedef struct _DeviceQEISettings {
} DeviceQEISettings;

typedef struct _DeviceQEIState {
  int32_t position;
  int32_t delta;
} DeviceQEIState;

typedef struct _DeviceQEI {
  DeviceQEISettings settings;
  DeviceQEIState state;
} DeviceQEI;

void InitQEIDefaultSettings(void);
void InitQEIState(void);
void DeviceStartQEI(void);

void qeiProcess(void);

#endif  /* __DEVICE_QEI_H__ */