Files
luban-lite/bsp/peripheral/touch/st16xx/inc/st16xx.h
刘可亮 803cac77d5 V1.0.6
2024-09-03 11:16:08 +08:00

33 lines
779 B
C

/*
* Copyright (c) 2024, ArtInChip Technology Co., Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Notes
* 2024-04-19 the first version
*/
#ifndef __ST16XX_H__
#define __ST16XX_H__
#include <aic_hal_gpio.h>
#include <aic_drv_gpio.h>
#include "drivers/touch.h"
/* ST16XX device reg */
#define ST16XX_ADDR 0x55
#define ST16XX_STATUS_REG 0x01
#define ST16XX_RESET_REG 0x02
#define ST16XX_TIMOUT_REG 0x03
#define ST16XX_RESOLUTION_REG 0x04
#define ST16XX_KEY_REG 0x11
#define ST16XX_CONTACTS_NUM_REG 0x3f
#define ST16XX_MAX_TOUCH 5
#define ST16XX_POINT_INFO_NUM 8
int rt_hw_st16xx_init(const char *name, struct rt_touch_config *cfg);
#endif