项目

一般

简介

SM5225.def

李 凯健, 2023-06-30 16:35

 
1
;ֱ????Դ??????_ֱ?????,
2
[comm]
3
;?򿪵????????Ϣ, 0-??????, 1-????
4
debug=1
5
;????
6
note=??????????Э??
7
;???ݶ?ȡʱ????(??????ָ???, ?ӳٶ?ȡ????ʱ????), ??λ: ????(ms)??Ĭ??10ms
8
delay=50
9
;???ݳ?ʱʱ??, ??λ: ????(ms)??Ĭ??300ms
10
timeout=300
11
;????
12
mask=0
13
;?ͺ?????֧????????
14
model=OM-5130
15
;?? %x%Ϊij?ֶ?ֵ, %xst%Ϊ?ֶ?״̬, ???в??ܴ??ֺ?";"
16
brief=?????????ѹ: %1% V %1st% 
17
;????Э??汾??, ?汾??Ϊ?ձ?ʾ?Զ???ȡ?汾
18
ver=21
19
;????Э?? CID1 ??????
20
cid1=2A
21
;????Э?? CID2 ??????, ??xxHyyH...??ʽ??CID2??????????д??.
22
cid2=42HE0HE3H43H44H
23
;ң?ع???, ??ʽ:Ykxx=Cmd. ң?? xx??ӦiFunc Cmd??ʽ:cmd[,dat]
24
;??Ҫ????ң?ع???, Э??汾?Ų???Ϊ??
25
;Yk00=20  ;
26
;Yk00=10 ;????յ?????
27
;Yk01=1F ;????յ??ػ?
28

    
29

    
30

    
31
;ָ??????????ر?־?ֶ???Ϣ, ??Ŀ??????[comm]cid2??Ӧ
32
[42H]
33
;?????????Ƿ???? DATAFLAG ?ֶ?, 1??ʾ???????ݰ??? DATAFLAG ?ֶ?, 0??ʾ??????
34
dflag=0
35
;????????????, I(i)??ʾDATAI(??????), F(f)??ʾDATAF(??????), S(s)??ʾRUNSTATE(״̬)
36
dinfo=I
37
;????????ϵ??, ??????ֵ???ȡֵ?ı?????ϵ, ??ϵ??=10, ??: ??????ֵ=??ȡֵ * 10
38
dfac=1
39
;????ָ?? Command info ??Ϣ
40
;dcmd=
41
;??ȡ???ݴ?С
42
;dmax=512
43
;???????ݶ?Ӧ??????ݵ????ݴ?С, "-"??ʾ??ʹ?ò?????, I(i)-INT16(4B), L(l)-INT32(8B), F(f)-FLOAT(8B), S(s)-STATE(2B)
44
;Ĭ??ΪS(s)-STATE(2B)
45
;?????Ϊ1??????ΪINT16????????, ?????ݱ?ʾΪ
46
;1=I
47
;?????Ϊ2?????ݲ?????(???ɼ?), ?????ݱ?ʾΪ??
48
;2=-
49
;??λ??չ??ʶ, 1=8λ 2=16λ 4=32λ. ???±?ʾ???Ϊ3??????Ϊ8λ????״̬??
50
;3bit=1
51
1=S
52

    
53

    
54
[E0H]
55
dflag=0
56
dinfo=I
57
dfac=1
58
1=S
59
[E3H]
60
dflag=0
61
dinfo=I
62
dfac=1
63
1=S
64

    
65

    
66
[43H]
67
dflag=0
68
dinfo=S
69
dfac=1
70
1=S
71
2=S
72
3=S
73

    
74
[44H]
75
dflag=0
76
dinfo=S
77
dfac=1
78
;dmax=512
79
8=S
80
9=S
81
10=S
82
11=S
83
12=S
84
13=S
85
14=S
86
15=S
87
16=S
88
17=S
89
18=S
90
19=S
91
20=S
92
21=S
93
22=S
94
23=S
95
24=S
96
25=S
97
26=S
98
27=S
99
28=S
100
29=S
101

    
102

    
103

    
104

    
105
;?ж??ֶζ???, ??ʽ: ?ֶκ?(Fld)=???ݵ?ַ. ?????ݲ??????жϼ??, ????????
106
[flds]
107
;?ֶ?????
108
cnt=18
109
;?ֶ????ݵ?ַ????ʽ: ?ֶκ?(Fld)=???ݵ?ַ?????ݵ?ַ??CID2+IDX??ʽ??ʾ, IDX??ʾ??Ӧ?????????
110
;1=42H02 ;
111
;??λ??չ??ʶ, 1=8λ 2=16λ 4=32λ. ???±?ʾ???Ϊ1??????Ϊ16λ????״̬??
112
;1bit=2
113
;??λ??չ???ֶ?????, ???±?ʾ?ֶ?3????Ϊ???ݵ?ַ40003(??Ӧ[regs3]?ĵ?ַ2)???ݵ?BIT0
114
;3=42H02-0
115

    
116

    
117
1=42H02  ;?????????ѹ				
118
2=42H05  ;?????????ѹ		
119
3=42H08  ;???????????	
120
;4=42H10 ;??ص?ѹ
121
5=42H12 ;???Ƶ??
122
6=E0H14 ;??·??ѹ	
123
7=E0H19 ;??·Ƶ??
124
8=E3H09 ;??غ?ʱ??		
125
9=E3H10 ;????¶?
126
10=E3H12  ;???????
127
11=43H01  ;???緽ʽ	
128
12=43H03  ;???빩??״̬
129
13=44H09  ;??·?쳣			
130
14=44H10  ;ϵͳ????		
131
15=44H15  ;??????????
132
16=44H17  ;?????????
133
17=44H21  ;??·?쳣
134
18=44H28  ;??ص?ѹ?쳣
135

    
136

    
137
;???ݱ???????
138
[flds.def]
139
;??ʽ: ?ֶκ?(Fld)='????',??????,'????',??ֵ????,ϵ??,?ж?ģʽ,??Сֵ,'??Сֵ????',???ֵ,'???ֵ????'
140
;      x=FldName,FldDept,Note,vkind,vfactor,vmode,vref,vtip,vref2,vtip2
141
;      ???ֶκ?(x)?ĵ?1???ַ?Ϊ0, ???ʾ??????Ϊ????????
142
;????: ?ֶκ?(Fld)??[flds]?е??ֶκ?һһ??Ӧ
143
;	   ??ֵ????: ????, Ĭ??Ϊ0
144
;	   ϵ??: ʵ??ֵ???ȡֵ?ı?????ϵ, ??ϵ??=10, ??: ʵ??ֵ=??ȡֵ / 10
145
;	   ?ж?ģʽ: 0-?????, 1-????(v = vref), 2-??????(v != vref), 3-????(v > vref), 4-С??(v < vref), 
146
;				 10-?????, 11-??Χ??(vref <= v <= vref2), 12-??Χ??(v < vref or vref2 < v)
147
;				 Ĭ??????Ϊ?????(0 ???? 10)
148
1='Fld',1,'?????????ѹ',0,10,11,2000,'??Сֵ|???????ֵ',3500,'???ֵ|???????ֵ'
149
2='Fld',1,'?????????ѹ',0,10,11,2000,'??Сֵ|???????ֵ',3500,'???ֵ|???????ֵ'
150
3='Fld',1,'???????????',0,10,10,10,'??Сֵ|???????ֵ',350,'???ֵ|???????ֵ'
151
4='Fld',1,'??ص?ѹ',0,10,10,200,'??Сֵ|???????ֵ',3500,'???ֵ|???????ֵ'
152
5='Fld',1,'???Ƶ??',0,10,10,480,'??Сֵ|???????ֵ',510,'???ֵ|???????ֵ'
153
6='Fld',1,'??·??ѹ',0,10,11,2000,'??Сֵ|???????ֵ',3500,'???ֵ|???????ֵ'
154
7='Fld',1,'??·Ƶ??',0,10,10,480,'??Сֵ|???????ֵ',510,'???ֵ|???????ֵ'
155
;8='Fld',1,'ʪ?ȴ?????',0,1,0,0,'0:????,1:????',0,''
156
9='Fld',1,'????¶?',0,10,10,100,'??Сֵ|???????ֵ',300,'???ֵ|???????ֵ'
157
10='Fld',1,'????¶?',0,10,10,100,'??Сֵ|???????ֵ',300,'???ֵ|???????ֵ'
158
;11='Fld',1,'???緽ʽ',0,1,0,0,'0:????,1:?澯',0,''
159
13='Fld',1,'??·?쳣',0,1,0,0,'0:????,240:?澯',0,''
160
14='Fld',1,'ϵͳ????',0,1,0,0,'0:????,240:?澯',0,''
161
15='Fld',1,'??????????',0,1,0,0,'0:????,240:?澯',0,''
162
16='Fld',1,'?????????',0,1,0,0,'0:????,240:?澯',0,''
163
17='Fld',1,'??·?쳣',0,1,0,0,'0:????,240:?澯',0,''
164
18='Fld',1,'??ص?ѹ?쳣',0,1,0,0,'0:????,240:?澯',0,''
165

    
166

    
167
[flds.val]
168

    
169
[vals]
170