#ifndef TABLE_COMM_H_
#define TABLE_COMM_H_
#ifdef __cplusplus
extern "C" {
#endif

#include "kit_table.h"

/********************************************SOP********************************************/
typedef enum
{
    kOcvTab_Default,
	kOcvTab_Cnte, //时代星云
	kOcvTab_End,
}SocTable;

typedef enum
{
    kSopTab_Rated,
	kSopTab_Cnte, //时代星云
	kSopTab_End,
}SopTable;

extern const ThreeDTabItem *ocv_table_list[kOcvTab_End];
extern const ThreeDTabItem *sop_table_list[kSopTab_End];

/********************************************NTC********************************************/
typedef enum
{
    kNtcType_Balance,       //均衡贴片温感 SDNT1608X103F3380FT
    kNtcType_SH10K,         //时恒_CWF4B_103F3950 10k
	kNtcType_Kemit10K,      //KEMIT 科敏WMFC-0603R103FB3950FRR
    kNtcType_Kemit100K,     //CWF2 100KF 3950
    kNtcType_Semitec10K,    //103KT1608T
    kNtcType_HK10K,         //HK103F4R24-1500FC01
    kNtcType_VOSS10K,       //Product specification for 473117-蜂巢液冷
    kNtcType_TDK10K,        //B57332V5103F360-TDK
    kNtcType_NTSM10K,       //RT(NTSM1B103F39501B07083-B07098)
    kNtcType_DAXIN10K,      //大鑫镍片10K
    kNtcType_BA242710k,      //BA2427_10k
    kNtcType_End,
}NtcType;

#define KIT_NTC_TEMP_OPEN_VALUE     0        //温度排线开路值
#define KIT_NTC_TEMP_SHORT_VALUE    2000    //温度排线短路值
#define BSP_NTC_TABLE_LEN           168      //NTC表格长度

#define NTC_TABLE_BUF_LEN             ((168 + 4) * 2)

NtcType bms_get_temp_table(NtcType tab, uint8_t *buf);
uint16_t bms_get_linear_temp(int32_t res, NtcType tab);



#ifdef __cplusplus
}
#endif

#endif
