/************************************************************************ 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 MOTOR_TEMP_DETECT 1 // #define MOTOR_TEMP_R1 100 //0.01K #define TEMPNUM 8 #define CURCALIBNUM 8 #define CURCALIBUNIT 10 // centidegree /************************************************************************ TypeDefs & Structure defines (N/A) *************************************************************************/ #define PCBtemp_N20 0 #define PCBtemp_0 1 #define PCBtemp_20 2 #define PCBtemp_40 3 #define PCBtemp_60 4 #define PCBtemp_80 5 #define PCBtemp_100 6 #define PCBtemp_120 7 #define temp_0 0 #define temp_20 1 #define temp_40 2 #define temp_60 3 #define temp_80 4 #define temp_100 5 #define temp_120 6 #define temp_motor_150 21 #define temp_pcb_140 25 #define temp_coef_0_20 0 #define temp_coef_20_40 1 #define temp_coef_40_60 2 #define temp_coef_60_80 3 #define temp_coef_80_100 4 /************************************************************************ Exported Variables *************************************************************************/ extern SWORD tmp_PcbTemp; extern SWORD tmp_MotTemp; //extern SWORD tmp_CurCalibCoef[]; //extern SWORD tmp_CurCalibLimitDeta[]; extern void TempInit(void); extern void PcbTempCal(UWORD PcbR); extern void MotorTempCal(SWORD PcbR); /************************************************************************ 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! *************************************************************************/