第一次提交计算机温控
This commit is contained in:
122
SwDriver.H
Normal file
122
SwDriver.H
Normal file
@@ -0,0 +1,122 @@
|
||||
#ifndef _MC33993_H_
|
||||
#define _MC33993_H_
|
||||
|
||||
//*****************************************************************************
|
||||
//<2F>궨<EFBFBD><EAB6A8>
|
||||
//*****************************************************************************
|
||||
//<2F><><EFBFBD><EFBFBD>20Ƭ<30><C6AC>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>
|
||||
#define Mc33993_0 0
|
||||
#define Mc33993_1 1
|
||||
#define Mc33993_2 2
|
||||
#define Mc33993_3 3
|
||||
#define Mc33993_4 4
|
||||
#define Mc33993_5 5
|
||||
#define Mc33993_6 6
|
||||
#define Mc33993_7 7
|
||||
#define Mc33993_8 8
|
||||
#define Mc33993_9 9
|
||||
#define Mc33993_10 10
|
||||
#define Mc33993_11 11
|
||||
#define Mc33993_12 12
|
||||
#define Mc33993_13 13
|
||||
#define Mc33993_14 14
|
||||
#define Mc33993_15 15
|
||||
#define Mc33993_16 16
|
||||
#define Mc33993_17 17
|
||||
#define Mc33993_18 18
|
||||
#define Mc33993_19 19
|
||||
#define Mc33993_20 20
|
||||
|
||||
|
||||
#define D24V 0
|
||||
#define Gnd 1
|
||||
|
||||
#define TriOff 0
|
||||
#define TriOn 1
|
||||
|
||||
#define WetCur2mA 0
|
||||
#define WetCur16mA 1
|
||||
|
||||
#define SwToGnd 0
|
||||
#define SwToPwr 1
|
||||
|
||||
#define ALLTRI 0xff
|
||||
#define ALLD24V 0x0
|
||||
|
||||
#define DF_CMDSWSTATUS 0x00
|
||||
#define DF_CMDSETTING 0x01
|
||||
#define DF_CMDINT_SP 0x02
|
||||
#define DF_CMDINT_SG 0x03
|
||||
#define DF_CMDMETALLIC_SP 0x04
|
||||
#define DF_CMDMETALLIC_SG 0x05
|
||||
#define DF_CMDANALOG 0x06
|
||||
#define DF_CMDWETCURR_SP 0x07
|
||||
#define DF_CMDWETCURR_SG 0x08
|
||||
#define DF_CMDTRISTATE_SP 0x09
|
||||
#define DF_CMDTRISTATE_SG 0x0A
|
||||
#define DF_CMDCALIBRATION 0x0B
|
||||
#define DF_CMDSLEEP 0x0C
|
||||
#define DF_CMDRESET 0x7F
|
||||
|
||||
|
||||
#define DF_FLGTHEM 10
|
||||
#define DF_FLGINT 11
|
||||
#define DF_FLGSP7 12
|
||||
#define DF_FLGSP6 13
|
||||
#define DF_FLGSP5 14
|
||||
#define DF_FLGSP4 15
|
||||
#define DF_FLGSP3 16
|
||||
#define DF_FLGSP2 17
|
||||
#define DF_FLGSP1 18
|
||||
#define DF_FLGSP0 19
|
||||
#define DF_FLGSG13 20
|
||||
#define DF_FLGSG12 21
|
||||
#define DF_FLGSG11 22
|
||||
#define DF_FLGSG10 23
|
||||
#define DF_FLGSG9 24
|
||||
#define DF_FLGSG8 25
|
||||
#define DF_FLGSG7 26
|
||||
#define DF_FLGSG6 27
|
||||
#define DF_FLGSG5 28
|
||||
#define DF_FLGSG4 29
|
||||
#define DF_FLGSG3 30
|
||||
#define DF_FLGSG2 31
|
||||
#define DF_FLGSG1 32
|
||||
#define DF_FLGSG0 33
|
||||
|
||||
//Analog
|
||||
#define DF_AN_HIMP 1
|
||||
#define DF_AN_2MA 2
|
||||
#define DF_AN_16MA 3
|
||||
|
||||
#define DF_CH_SG0 1
|
||||
#define DF_CH_SG1 2
|
||||
#define DF_CH_SG2 3
|
||||
#define DF_CH_SG3 4
|
||||
#define DF_CH_SG4 5
|
||||
#define DF_CH_SG5 6
|
||||
#define DF_CH_SG6 7
|
||||
#define DF_CH_SG7 8
|
||||
#define DF_CH_SG8 9
|
||||
#define DF_CH_SG9 10
|
||||
#define DF_CH_SG10 11
|
||||
#define DF_CH_SG11 12
|
||||
#define DF_CH_SG12 13
|
||||
#define DF_CH_SG13 14
|
||||
#define DF_CH_SP0 15
|
||||
#define DF_CH_SP1 16
|
||||
#define DF_CH_SP2 17
|
||||
#define DF_CH_SP3 18
|
||||
#define DF_CH_SP4 19
|
||||
#define DF_CH_SP5 20
|
||||
#define DF_CH_SP6 21
|
||||
#define DF_CH_SP7 22
|
||||
//*****************************************************************************
|
||||
//<2F>ⲿ<EFBFBD><E2B2BF><EFBFBD><EFBFBD>ȫ<EFBFBD>ֺ<EFBFBD><D6BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//*****************************************************************************
|
||||
void SwStaSample(UnSwSample *ptmp);
|
||||
void InitSW(void);
|
||||
void LedLight(UnSwOut *tmpUn);
|
||||
//void Swtest2(void);
|
||||
//ubyte Mc33993AnalogChSel(ubyte NumMc,ubyte Mode,ubyte Channal);
|
||||
#endif
|
||||
Reference in New Issue
Block a user