2018-01-15 14:56:48 +08:00
|
|
|
/*
|
2022-06-22 13:41:06 +08:00
|
|
|
* Copyright (c) 2006-2022, RT-Thread Development Team
|
2018-01-15 14:56:48 +08:00
|
|
|
*
|
2018-12-24 18:49:00 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2018-01-15 14:56:48 +08:00
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2017-12-30 Sundm75 first version
|
|
|
|
*/
|
|
|
|
#ifndef __TOUCH_H__
|
|
|
|
#define __TOUCH_H__
|
|
|
|
|
2022-06-22 13:41:06 +08:00
|
|
|
#define RT_TOUCH_NORMAL 0
|
|
|
|
#define RT_TOUCH_CALIBRATION_DATA 1
|
|
|
|
#define RT_TOUCH_CALIBRATION 2
|
2018-01-15 14:56:48 +08:00
|
|
|
|
|
|
|
//#define SAVE_CALIBRATION
|
|
|
|
|
2022-06-22 13:41:06 +08:00
|
|
|
|
2018-01-15 14:56:48 +08:00
|
|
|
rt_uint16_t touch_read_x(void);
|
|
|
|
rt_uint16_t touch_read_y(void);
|
|
|
|
void touch_config(void);
|
2022-06-22 13:41:06 +08:00
|
|
|
|
2018-01-15 14:56:48 +08:00
|
|
|
|
|
|
|
rt_err_t rtgui_touch_hw_init(const char * spi_device_name);
|
2022-06-22 13:41:06 +08:00
|
|
|
|
2018-01-15 14:56:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|