/************************************************************************ Project: Washing Machine Drive Filename: classB.h Partner Filename: N/A Description: Partner file of main.c Complier: IAR Embedded Workbench for ARM 7.80, IAR Systems. CPU TYPE : ST32F0xx ************************************************************************* Copyright (c) 2017 Welling Motor Technology(Shanghai) Co. Ltd. All rights reserved. ************************************************************************* ************************************************************************* Revising History (ECL of this file): WLBDM_M0_SR_20170814-new FSM1.1, by cyf, create this file; ************************************************************************/ /************************************************************************ Beginning of File, do not put anything above here except notes Compiler Directives: *************************************************************************/ #ifndef TEMP_H #define TEMP_H /************************************************************************ Definitions & Macros *************************************************************************/ #define PCB_TEMP_SAMPLER 1000 // 0.01kOhm #define PCB_TEMP_NUM 13 #define TORQ_TEMP_NUM 7 #define CURCALIBNUM 8 #define CURCALIBUNIT 10 // centidegree /************************************************************************ TypeDefs & Structure defines (N/A) *************************************************************************/ #define temp_0 0 #define temp_10 1 #define temp_20 2 #define temp_30 3 #define temp_40 4 #define temp_50 5 #define temp_60 6 #define temp_70 7 #define temp_80 8 #define temp_90 9 #define temp_100 10 #define temp_110 11 #define temp_120 12 #define temp_coef_0_10 0 #define temp_coef_10_20 1 #define temp_coef_20_30 2 #define temp_coef_30_40 3 #define temp_coef_40_50 4 #define temp_coef_50_60 5 #define temp_coef_60_70 6 #define temp_coef_70_80 7 #define temp_coef_80_90 8 #define temp_coef_90_100 9 #define temp_coef_100_110 10 #define temp_coef_110_120 11 /************************************************************************ Exported Variables *************************************************************************/ extern SWORD tmp_PcbTemp; extern SWORD tmp_CurCalibCoef[]; extern SWORD tmp_CurCalibLimitDeta[]; extern void TempInit(void); extern void PcbTempCal(SWORD PcbR); extern void MotorTempCal(void); SWORD temp_swTorqTempCal(UWORD Reg); /************************************************************************ Flag Define (N/A) *************************************************************************/ #endif /************************************************************************ Copyright (c) 2017 Welling Motor Technology(Shanghai) Co. Ltd. All rights reserved. ************************************************************************* End of this File (EOF)! Do not put anything after this part! *************************************************************************/