Skip to content

Commit 48dab9d

Browse files
committed
refactor: change evm-fct-ctrl.template to evm-fct-shutter.template
1 parent c30a8f9 commit 48dab9d

File tree

4 files changed

+64
-282
lines changed

4 files changed

+64
-282
lines changed

evgMrmApp/Db/evm-fct-ctrl.template

Lines changed: 0 additions & 275 deletions
This file was deleted.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# DIR - link direction: Rx or Tx (only).
2+
# PORT - SFP port number.
3+
# BIT - bit index assigned to the given SFP port.
4+
5+
# Enable/Disable events
6+
record(bo, "$(P)$(DIR)Shut$(PORT)Evt-Sel")
7+
{
8+
field(DESC, "$(DIR) Channel Event Shutter")
9+
field(ASG, "$(ASGPROTECTED=protected)")
10+
field(OUT, "$(P)$(DIR)Shutter-SP.B$(BIT) PP")
11+
field(ZNAM, "Enable")
12+
field(ONAM, "Disable")
13+
field(VAL, "0")
14+
info(autosaveFields_pass0, "VAL")
15+
}
16+
record(bi, "$(P)$(DIR)Shut$(PORT)Evt-RB")
17+
{
18+
field(DESC, "$(DIR) Channel Event Shutter")
19+
field(INP, "$(P)$(DIR)Shutter-RB.B$(BIT) CPP")
20+
field(ZNAM, "Enable")
21+
field(ONAM, "Disable")
22+
field(DISP, "1")
23+
}
24+
25+
# Enable/Disable dbus
26+
record(bo, "$(P)$(DIR)Shut$(PORT)Dbus-Sel")
27+
{
28+
field(DESC, "$(DIR) Channel DBUS Shutter")
29+
field(ASG, "$(ASGPROTECTED=protected)")
30+
field(OUT, "$(P)$(DIR)Shutter-SP.B1$(BIT) PP")
31+
field(ZNAM, "Enable")
32+
field(ONAM, "Disable")
33+
field(VAL, "0")
34+
info(autosaveFields_pass0, "VAL")
35+
}
36+
record(bi, "$(P)$(DIR)Shut$(PORT)Dbus-RB")
37+
{
38+
field(DESC, "$(DIR) Channel DBUS Shutter")
39+
field(INP, "$(P)$(DIR)Shutter-RB.B1$(BIT) CPP")
40+
field(ZNAM, "Enable")
41+
field(ONAM, "Disable")
42+
field(DISP, "1")
43+
}

evgMrmApp/Db/evm-fct.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ record(mbboDirect, "$(P)RxShutter-SP")
266266
field(DTYP, "Obj Prop uint32")
267267
field(OUT, "@OBJ=$(OBJ), PROP=RxShutter")
268268
field(PINI, "RUN")
269+
field(VAL, "0")
269270
field(FLNK, "$(P)RxShutter-RB")
270271
info(autosaveFields_pass0, "RVAL")
271272
}
@@ -286,6 +287,7 @@ record(mbboDirect, "$(P)TxShutter-SP")
286287
field(DTYP, "Obj Prop uint32")
287288
field(OUT, "@OBJ=$(OBJ), PROP=TxShutter")
288289
field(PINI, "RUN")
290+
field(VAL, "0")
289291
field(FLNK, "$(P)TxShutter-RB")
290292
info(autosaveFields_pass0, "RVAL")
291293
}

evgMrmApp/Db/evm-mtca-300.uv.substitutions

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,25 @@ file "evm-fct.template"
157157
{
158158
{P="\$(P)FCT", OBJ="$(EVG):FCT"}
159159
}
160-
file "evm-fct-ctrl.template"
161-
{
162-
{P="\$(P)FCT", DIR="Rx"}
163-
}
164-
file "evm-fct-ctrl.template"
165-
{
166-
{P="\$(P)FCT", DIR="Tx"}
160+
file "evm-fct-shutter.template"
161+
{pattern
162+
{P, DIR, PORT, BIT}
163+
{"\$(P)FCT", "Rx", "1", "0"}
164+
{"\$(P)FCT", "Rx", "2", "1"}
165+
{"\$(P)FCT", "Rx", "3", "2"}
166+
{"\$(P)FCT", "Rx", "4", "3"}
167+
{"\$(P)FCT", "Rx", "5", "4"}
168+
{"\$(P)FCT", "Rx", "6", "5"}
169+
{"\$(P)FCT", "Rx", "7", "6"}
170+
{"\$(P)FCT", "Rx", "8", "7"}
171+
{"\$(P)FCT", "Tx", "1", "0"}
172+
{"\$(P)FCT", "Tx", "2", "1"}
173+
{"\$(P)FCT", "Tx", "3", "2"}
174+
{"\$(P)FCT", "Tx", "4", "3"}
175+
{"\$(P)FCT", "Tx", "5", "4"}
176+
{"\$(P)FCT", "Tx", "6", "5"}
177+
{"\$(P)FCT", "Tx", "7", "6"}
178+
{"\$(P)FCT", "Tx", "8", "7"}
167179
}
168180

169181
file "sfp.db"

0 commit comments

Comments
 (0)