Files
luban-lite/bsp/peripheral/touch/common/touch_common.h

25 lines
712 B
C
Raw Normal View History

2024-10-30 16:50:31 +08:00
/*
2025-04-23 17:54:31 +08:00
* Copyright (c) 2024-2025, ArtInChip Technology Co., Ltd
2024-10-30 16:50:31 +08:00
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Notes
* 2024-10-18 the first version
*/
#ifndef __TOUCH_COMMON_H__
#define __TOUCH_COMMON_H__
#include <rtthread.h>
#include <rtdevice.h>
2025-04-23 17:54:31 +08:00
#include <drivers/touch.h>
2024-10-30 16:50:31 +08:00
void aic_touch_flip(int16_t *x_coordinate, int16_t *y_coordinate);
void aic_touch_rotate(int16_t *x_coordinate, int16_t *y_coordinate);
void aic_touch_scale(int16_t *x_coordinate, int16_t *y_coordinate);
rt_int8_t aic_touch_crop(int16_t *x_coordinate, int16_t *y_coordinate);
2025-04-23 17:54:31 +08:00
void aic_touch_dynamic_rotate(struct rt_touch_device *touch, int16_t *x_coordinate, int16_t *y_coordinate);
2024-10-30 16:50:31 +08:00
#endif