ugfx/drivers/ginput/touch/MCU/gmouse_lld_MCU_board_template.h

33 lines
1.1 KiB
C
Raw Normal View History

2014-10-07 11:54:19 +00:00
/*
* This file is subject to the terms of the GFX License. If a copy of
* the license was not distributed with this file, you can obtain one at:
*
* http://ugfx.org/license.html
*/
#ifndef _LLD_GMOUSE_MCU_BOARD_H
#define _LLD_GMOUSE_MCU_BOARD_H
2014-10-13 06:35:57 +00:00
// Resolution and Accuracy Settings
#define GMOUSE_MCU_PEN_CALIBRATE_ERROR 8
#define GMOUSE_MCU_PEN_CLICK_ERROR 6
#define GMOUSE_MCU_PEN_MOVE_ERROR 4
#define GMOUSE_MCU_FINGER_CALIBRATE_ERROR 14
#define GMOUSE_MCU_FINGER_CLICK_ERROR 18
#define GMOUSE_MCU_FINGER_MOVE_ERROR 14
#define GMOUSE_MCU_Z_MIN 0 // The minimum Z reading
#define GMOUSE_MCU_Z_MAX 100 // The maximum Z reading
#define GMOUSE_MCU_Z_TOUCHON 80 // Values between this and Z_MAX are definitely pressed
#define GMOUSE_MCU_Z_TOUCHOFF 70 // Values between this and Z_MIN are definitely not pressed
// How much extra data to allocate at the end of the GMouse structure for the board's use
#define GMOUSE_MCU_BOARD_DATA_SIZE 0
2014-10-07 11:54:19 +00:00
static bool_t init_board(GMouse *m, unsigned driverinstance) {
}
2014-11-10 04:41:27 +00:00
static bool_t read_xyz(GMouse *m, GMouseReading *prd) {
2014-10-07 11:54:19 +00:00
}
#endif /* _LLD_GMOUSE_MCU_BOARD_H */