Skip to content

Commit cdcb617

Browse files
committed
afc_timing: add new upstream debug records.
1 parent 17d7db4 commit cdcb617

File tree

2 files changed

+95
-0
lines changed

2 files changed

+95
-0
lines changed

utcaApp/Db/afc_timing.template

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,91 @@ record(longin, "$(P)$(R)Alive-Mon"){
141141
field(INP,"@asyn($(PORT))ALIVE")
142142
field(SCAN,"I/O Intr")
143143
}
144+
145+
record(bo, "$(P)$(R)UpstreamDebugEn-Sel"){
146+
field(DTYP, "asynInt32")
147+
field(DESC, "Enable upstream debug")
148+
field(PINI, YES)
149+
field(ZNAM, "Dsbl")
150+
field(ONAM, "Enbl")
151+
field(OUT, "@asyn($(PORT))DBG_EN")
152+
}
153+
record(bi, "$(P)$(R)UpstreamDebugEn-Sts"){
154+
field(DTYP, "asynInt32")
155+
field(DESC, "Enable upstream debug")
156+
field(PINI, YES)
157+
field(ZNAM, "Dsbl")
158+
field(ONAM, "Enbl")
159+
field(INP, "@asyn($(PORT))DBG_EN")
160+
field(SCAN, "I/O Intr")
161+
}
162+
163+
record(bo, "$(P)$(R)UpstreamDebugCounterRst-Cmd"){
164+
field(DTYP, "asynInt32")
165+
field(DESC, "Reset debug counter")
166+
field(OUT, "@asyn($(PORT))DBG_COUNTER_RST")
167+
field(PINI, YES)
168+
field(MASK, 1)
169+
field(HIGH, 1)
170+
field(ZNAM, nothing)
171+
field(ONAM, reset)
172+
}
173+
174+
record(longout, "$(P)$(R)UpstreamDebugEvtIn-SP"){
175+
field(DTYP, "asynInt32")
176+
field(DESC, "Downstream start event")
177+
field(PINI, YES)
178+
field(OUT, "@asyn($(PORT))DBG_EVT_DS_START")
179+
}
180+
record(longin, "$(P)$(R)UpstreamDebugEvtIn-RB"){
181+
field(DTYP, "asynInt32")
182+
field(DESC, "Downstream start event")
183+
field(INP, "@asyn($(PORT))DBG_EVT_DS_START")
184+
field(SCAN, "I/O Intr")
185+
}
186+
187+
record(longout, "$(P)$(R)UpstreamDebugEvtOut-SP"){
188+
field(DTYP, "asynInt32")
189+
field(DESC, "Upstream event")
190+
field(PINI, YES)
191+
field(OUT, "@asyn($(PORT))DBG_EVT_US")
192+
}
193+
record(longin, "$(P)$(R)UpstreamDebugEvtOut-RB"){
194+
field(DTYP, "asynInt32")
195+
field(DESC, "Upstream event")
196+
field(INP, "@asyn($(PORT))DBG_EVT_US")
197+
field(SCAN, "I/O Intr")
198+
}
199+
200+
record(longout, "$(P)$(R)UpstreamDebugSpacing-SP"){
201+
field(DTYP, "asynInt32")
202+
field(DESC, "Spacing between upstream events")
203+
field(PINI, YES)
204+
field(OUT, "@asyn($(PORT))DBG_EVT_SPACING")
205+
}
206+
record(longin, "$(P)$(R)UpstreamDebugSpacing-RB"){
207+
field(DTYP, "asynInt32")
208+
field(DESC, "Spacing between upstream events")
209+
field(INP, "@asyn($(PORT))DBG_EVT_SPACING")
210+
field(SCAN, "I/O Intr")
211+
}
212+
213+
record(longout, "$(P)$(R)UpstreamDebugReps-SP"){
214+
field(DTYP, "asynInt32")
215+
field(DESC, "Upstream event repetitions")
216+
field(PINI, YES)
217+
field(OUT, "@asyn($(PORT))DBG_EVT_REPS")
218+
}
219+
record(longin, "$(P)$(R)UpstreamDebugReps-RB"){
220+
field(DTYP, "asynInt32")
221+
field(DESC, "Upstream event repetitions")
222+
field(INP, "@asyn($(PORT))DBG_EVT_REPS")
223+
field(SCAN, "I/O Intr")
224+
}
225+
226+
record(longin, "$(P)$(R)UpstreamDebugCounter-Mon"){
227+
field(DTYP, "asynInt32")
228+
field(DESC, "Debug procedure counter")
229+
field(INP, "@asyn($(PORT))DBG_COUNTER")
230+
field(SCAN, "I/O Intr")
231+
}

utcaApp/src/afc_timing.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ class AFCTiming: public UDriver {
3939
{"LOCKED_GT0_LTC", p_last_lock},
4040
{"ALIVE", p_read_only},
4141
ParamInit{"RST_LOCKED_LTCS", p_decoder_controller}.set_wo(),
42+
{"DBG_EN", p_decoder_controller},
43+
ParamInit{"DBG_COUNTER_RST", p_decoder_controller}.set_wo(),
44+
{"DBG_EVT_DS_START", p_decoder_controller},
45+
{"DBG_EVT_US", p_decoder_controller},
46+
{"DBG_EVT_SPACING", p_decoder_controller},
47+
{"DBG_EVT_REPS", p_decoder_controller},
48+
{"DBG_COUNTER", p_read_only},
4249
},
4350
{
4451
ParamInit{"RFREQ_HI", p_read_only}.set_nc(2),

0 commit comments

Comments
 (0)