36 lines
1.0 KiB
C
36 lines
1.0 KiB
C
/*----------------------------------------------------------------------------
|
|
* Copyright (c) TJD Technologies Co., Ltd. 2024. All rights reserved.
|
|
*
|
|
* Description: focaltech_upgrade.h
|
|
*
|
|
* Author: luziquan@ss-tjd.com
|
|
*
|
|
* Create: 2024-04-18
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
#ifndef __FOCALTECH_UPGRADE_H_
|
|
#define __FOCALTECH_UPGRADE_H_
|
|
|
|
#define HOST_MCU_DRIVER_VERSION "FocalTech MCU V1.0 20220316"
|
|
|
|
#define INTERVAL_READ_REG 200 /* unit:ms */
|
|
|
|
#define FTS_CMD_READ_ID 0x90
|
|
|
|
/* chip id */
|
|
#define FTS_CHIP_IDH 0x64
|
|
#define FTS_CHIP_IDL 0x56
|
|
|
|
/* register address */
|
|
#define FTS_REG_CHIP_ID 0xA3
|
|
#define FTS_REG_CHIP_ID2 0x9F
|
|
#define FTS_REG_FW_VER 0xA6
|
|
#define FTS_REG_UPGRADE 0xFC
|
|
|
|
/*
|
|
* Gesture function enable
|
|
* default: disable
|
|
*/
|
|
#define FTS_GESTURE_EN 0
|
|
|
|
#endif// __FOCALTECH_UPGRADE_H_
|