#ifndef _FINGER_PARA_H_
#define _FINGER_PARA_H_


#include "stdint.h"
#include "stdbool.h"
#include "string.h"
#include "./iic/hal.h"


#define DEF_PRG_NUM 8


/// 产品编号
typedef enum
{
    PN_TS_F_A_OLD = 2,
    PN_TS_F_A = 19,
    PN_TS_F_A2 = 44,
    PN_TS_E_A = 17,
    PN_TS_F_B = 50,
    PN_TS_F_C = 52,
    PN_TS_F_L = 54,
    PN_TS_F_B2 = 69
}ePN;


typedef struct {
    uint8_t     pn;             //产品编号
    uint16_t    packLen;        //包长
    uint16_t    sensorNum;      //传感器数量
    uint16_t    touchNum;       //压力通道数量
    uint16_t    yddsNum;        //三维力数量
    uint16_t    sProxNum;       //自电容接近数量
    uint16_t    mProxNum;       //互电容接近数量
    uint8_t     capByte;        //电容占用字节长度
    uint8_t     yddsType;       //三维力类型
    uint8_t     hadErr;         //是否包含状态字节
    uint8_t     caliNum;        //标定力数量

    const char* name;           //项目名称
} finger_param_ts;

bool findFingerPara(uint8_t pn, finger_param_ts *pPara);


#endif

