1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- /************************************************************************
- 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 150 //0.01K
- #define MOTOR_TEMP_R2 82 //0.01k
- #define MOTOR_TEMP_VCC 51 //0.1V PCB霍尔板供电电压大约5.1V
- #define MOTOR_TEMP_AD_VCC 33 //0.1V
- #define TEMPNUM 8
- #define CURCALIBNUM 8
- #define CURCALIBUNIT 10 // centidegree
- /************************************************************************
- TypeDefs & Structure defines (N/A)
- *************************************************************************/
- #define temp__20 0
- #define temp_0 1
- #define temp_20 2
- #define temp_40 3
- #define temp_60 4
- #define temp_80 5
- #define temp_100 6
- #define temp_120 7
- #define temp_motor_150 32
- #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(SWORD 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!
- *************************************************************************/
|