Commit 6a1cbb5d authored by Peter Zumbruch's avatar Peter Zumbruch
Browse files

continued streamlining

parent 28d635e7
......@@ -20,16 +20,17 @@
# CONFIG_SITE file.
TEMPLATE_TOP=$(EPICS_BASE)/templates/makeBaseApp/top
SUPPORT=/usr/local/epics/synApps_5_6/support
# If using the sequencer, point SNCSEQ at its top directory:
SNCSEQ=/home/epics/EPICS/EPICS-3.14.12.4/modules/soft/seq/seq-2.1.16
SNCSEQ=$(SUPPORT)/seq-2-1-3
# EPICS_BASE usually appears last so other apps can override stuff:
EPICS_BASE=/home/epics/EPICS/EPICS-3.14.12.4/base
EPICS_BASE=/usr/local/epics/base-3.14.12.5
ASYN=/home/epics/EPICS/EPICS-3.14.12.4/modules/soft/asyn/asyn4-23
ASYN=$(SUPPORT)/asyn-4-18
STREAM=/home/epics/EPICS/EPICS-3.14.12.4/modules/soft/StreamDevice/StreamDevice-2-6
STREAM=$(SUPPORT)/stream-2-5-1
# EPICS_BASE usually appears last so other apps can override stuff:
#EPICS_BASE=$(EPICS_HOME)/base
......@@ -37,3 +38,4 @@ STREAM=/home/epics/EPICS/EPICS-3.14.12.4/modules/soft/StreamDevice/StreamDevice-
# Set RULES here if you want to take build rules from somewhere
# other than EPICS_BASE:
#RULES=/path/to/epics/support/module/rules/x-y
# RELEASE - Location of external support modules
#
# IF YOU MAKE ANY CHANGES to this file you must subsequently
# do a "gnumake rebuild" in this application's top level
# directory.
#
# The build process does not check dependencies against files
# that are outside this application, thus you should do a
# "gnumake rebuild" in the top level directory after EPICS_BASE
# or any other external module pointed to below is rebuilt.
#
# Host- or target-specific settings can be given in files named
# RELEASE.$(EPICS_HOST_ARCH).Common
# RELEASE.Common.$(T_A)
# RELEASE.$(EPICS_HOST_ARCH).$(T_A)
#
# This file should ONLY define paths to other support modules,
# or include statements that pull in similar RELEASE files.
# Build settings that are NOT module paths should appear in a
# CONFIG_SITE file.
TEMPLATE_TOP=$(EPICS_BASE)/templates/makeBaseApp/top
SNCSEQ=$(EPICS_HOME)/modules/soft/seq/seq-2.1.13
ASYN=$(EPICS_HOME)/modules/soft/asyn/asyn4-18
STREAM=$(EPICS_HOME)/modules/soft/StreamDevice/StreamDevice-2-6
# EPICS_BASE usually appears last so other apps can override stuff:
EPICS_BASE=$(EPICS_HOME)/base
EPICS_HOME=/home/epics/EPICS/EPICS-3.14.12.3
......@@ -21,7 +21,7 @@ drvAsynSerialPortConfigure("hadcon2","/dev/ttyUSB0",0,0,0)
## Load record instances
##
#dbLoadRecords ("../../db/hadcon_global.db", "HADCON=${HOSTNAME}:1, PREFIX=, SUFFIX=, device=hadcon2")
dbLoadRecords ("../../db/hadcon_global.db", "HADCON=${HOSTNAME}:1, PREFIX=, SUFFIX=, device=hadcon2")
#dbLoadRecords ("../../db/hadcon_debug_global.db", "HADCON=${HOSTNAME}:1, PREFIX=, SUFFIX=, device=hadcon2")
#dbLoadRecords ("../../db/hadcon_stats.db", "IOC=${HOSTNAME}")
......
......@@ -23,7 +23,6 @@
# ZNAM/ONAM B6: "$(ZNAM_B6)/$(ONAM_B6)"
# ZNAM/ONAM B7: "$(ZNAM_B7)/$(ONAM_B7)"
record(longin, "$(PREFIX)$(HADCON):$(NAME):receive_$(RegName)$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):receive_$(RegName)$(SUFFIX)")
field(DESC, "receive $(RegName)@$(HADCON)")
field(DTYP, "stream")
field(SCAN, "I/O Intr")
......@@ -32,7 +31,6 @@ record(longin, "$(PREFIX)$(HADCON):$(NAME):receive_$(RegName)$(SUFFIX)") {
}
record(longin, "$(PREFIX)$(HADCON):$(NAME):read_$(RegName)$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):read_$(RegName)$(SUFFIX)")
field(DESC, "read $(RegName)@$(HADCON)")
field(DTYP, "stream")
field(INP, "@hadcon_RGRE.proto read($(RegAddress)) $(device)")
......@@ -40,14 +38,12 @@ record(longin, "$(PREFIX)$(HADCON):$(NAME):read_$(RegName)$(SUFFIX)") {
}
record(longin, "$(PREFIX)$(HADCON):$(NAME):request_$(RegName)$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):request_$(RegName)$(SUFFIX)")
field(DESC, "request $(RegName)@$(HADCON)")
field(DTYP, "stream")
field(INP, "@hadcon_RGRE.proto read_request($(RegAddress)) $(device)")
}
record(longin, "$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):$(RegName)$(SUFFIX)")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_ PP MS")
}
......@@ -72,134 +68,101 @@ record(longout, "$(PREFIX)$(HADCON):$(NAME):deploy2_$(RegName)$(SUFFIX)_") {
record(mbbiDirect, "$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_") {
field(DESC, "split $(RegName)@$(HADCON)")
field(DTYP, "Raw Soft Channel")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_ PP MS")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B0$(SUFFIX)")
field(INP, "$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX) NPP MS")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B0$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):$(RegName)_B0$(SUFFIX)")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(OMSL, "closed_loop")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B0 NPP MS")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B1$(SUFFIX)")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B1$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):$(RegName)_B1$(SUFFIX)")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(OMSL, "closed_loop")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B1 NPP MS")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B2$(SUFFIX)")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B2$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):$(RegName)_B2$(SUFFIX)")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(OMSL, "closed_loop")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B2 NPP MS")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B3$(SUFFIX)")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B3$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):$(RegName)_B3$(SUFFIX)")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(OMSL, "closed_loop")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B3 NPP MS")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B4$(SUFFIX)")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B4$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):$(RegName)_B4$(SUFFIX)")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(OMSL, "closed_loop")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B4 NPP MS")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B5$(SUFFIX)")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B5$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):$(RegName)_B5$(SUFFIX)")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(OMSL, "closed_loop")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B5 NPP MS")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B6$(SUFFIX)")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B6$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):$(RegName)_B6$(SUFFIX)")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(OMSL, "closed_loop")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B6 NPP MS")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B7$(SUFFIX)")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B7$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):$(RegName)_B7$(SUFFIX)")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(OMSL, "closed_loop")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B7 NPP MS")
}
record(fanout, "$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_") {
field(DESC, "split $(RegName)@$(HADCON)")
field(LNK1, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B0$(SUFFIX) PP MS")
field(LNK2, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B1$(SUFFIX) PP MS")
field(LNK3, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B2$(SUFFIX) PP MS")
field(LNK4, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B3$(SUFFIX) PP MS")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_ PP MS")
}
record(fanout, "$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_") {
field(DESC, "split $(RegName)@$(HADCON)")
field(LNK1, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B4$(SUFFIX) PP MS")
field(LNK2, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B5$(SUFFIX) PP MS")
field(LNK3, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B6$(SUFFIX) PP MS")
field(LNK4, "$(PREFIX)$(HADCON):$(NAME):$(RegName)_B7$(SUFFIX) PP MS")
}
record(longout, "$(PREFIX)$(HADCON):$(NAME):addr_$(RegName)$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):addr_$(RegName)$(SUFFIX)")
field(DESC, "Register Address")
field(PINI, "YES")
field(UDF, "0")
field(VAL, "0x$(RegAddress)")
}
record(stringout, "$(PREFIX)$(HADCON):$(NAME):name_$(RegName)$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):name_$(RegName)$(SUFFIX)")
field(PINI, "YES")
field(UDF, "0")
field(VAL, "$(RegName)")
}
#! Further lines contain data used by VisualDCT
#! View(345,173,1.2)
#! Record("$(PREFIX)$(HADCON):$(NAME):receive_$(RegName)$(SUFFIX)",400,350,0,0,"$(PREFIX)$(HADCON):$(NAME):receive_$(RegName)$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):receive_$(RegName)$(SUFFIX).FLNK",16777215,1,"$(PREFIX)$(HADCON):$(NAME):receive_$(RegName)$(SUFFIX).FLNK")
#! View(365,20,0.9)
#! Record("$(PREFIX)$(HADCON):$(NAME):receive_$(RegName)$(SUFFIX)",540,494,0,0,"$(PREFIX)$(HADCON):$(NAME):receive_$(RegName)$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):receive_$(RegName)$(SUFFIX).FLNK",16711731,1,"$(PREFIX)$(HADCON):$(NAME):receive_$(RegName)$(SUFFIX).FLNK")
#! Link("$(PREFIX)$(HADCON):$(NAME):receive_$(RegName)$(SUFFIX).FLNK","$(PREFIX)$(HADCON):$(NAME):deploy1_$(RegName)$(SUFFIX)_")
#! Field("$(PREFIX)$(HADCON):$(NAME):receive_$(RegName)$(SUFFIX).VAL",16777215,1,"$(PREFIX)$(HADCON):$(NAME):receive_$(RegName)$(SUFFIX).VAL")
#! Record("$(PREFIX)$(HADCON):$(NAME):read_$(RegName)$(SUFFIX)",400,625,0,0,"$(PREFIX)$(HADCON):$(NAME):read_$(RegName)$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):read_$(RegName)$(SUFFIX).FLNK",16777215,1,"$(PREFIX)$(HADCON):$(NAME):read_$(RegName)$(SUFFIX).FLNK")
#! Field("$(PREFIX)$(HADCON):$(NAME):receive_$(RegName)$(SUFFIX).VAL",52275,1,"$(PREFIX)$(HADCON):$(NAME):receive_$(RegName)$(SUFFIX).VAL")
#! Record("$(PREFIX)$(HADCON):$(NAME):read_$(RegName)$(SUFFIX)",540,707,0,0,"$(PREFIX)$(HADCON):$(NAME):read_$(RegName)$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):read_$(RegName)$(SUFFIX).FLNK",16711731,1,"$(PREFIX)$(HADCON):$(NAME):read_$(RegName)$(SUFFIX).FLNK")
#! Link("$(PREFIX)$(HADCON):$(NAME):read_$(RegName)$(SUFFIX).FLNK","$(PREFIX)$(HADCON):$(NAME):deploy2_$(RegName)$(SUFFIX)_")
#! Field("$(PREFIX)$(HADCON):$(NAME):read_$(RegName)$(SUFFIX).VAL",16777215,1,"$(PREFIX)$(HADCON):$(NAME):read_$(RegName)$(SUFFIX).VAL")
#! Record("$(PREFIX)$(HADCON):$(NAME):request_$(RegName)$(SUFFIX)",400,220,0,0,"$(PREFIX)$(HADCON):$(NAME):request_$(RegName)$(SUFFIX)")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX)",980,488,0,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX).FLNK",16777215,1,"$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX).FLNK")
#! Field("$(PREFIX)$(HADCON):$(NAME):read_$(RegName)$(SUFFIX).VAL",52275,1,"$(PREFIX)$(HADCON):$(NAME):read_$(RegName)$(SUFFIX).VAL")
#! Record("$(PREFIX)$(HADCON):$(NAME):request_$(RegName)$(SUFFIX)",540,342,0,0,"$(PREFIX)$(HADCON):$(NAME):request_$(RegName)$(SUFFIX)")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX)",1120,730,0,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX).FLNK",16711731,1,"$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX).FLNK")
#! Link("$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX).FLNK","$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX).VAL",16777215,1,"$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX).VAL")
#! Record("$(PREFIX)$(HADCON):$(NAME):deploy1_$(RegName)$(SUFFIX)_",700,356,0,0,"$(PREFIX)$(HADCON):$(NAME):deploy1_$(RegName)$(SUFFIX)_")
#! Field("$(PREFIX)$(HADCON):$(NAME):deploy1_$(RegName)$(SUFFIX)_.OUT",16777215,1,"$(PREFIX)$(HADCON):$(NAME):deploy1_$(RegName)$(SUFFIX)_.OUT")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX).VAL",52275,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX).VAL")
#! Record("$(PREFIX)$(HADCON):$(NAME):deploy1_$(RegName)$(SUFFIX)_",840,479,16711731,0,"$(PREFIX)$(HADCON):$(NAME):deploy1_$(RegName)$(SUFFIX)_")
#! Field("$(PREFIX)$(HADCON):$(NAME):deploy1_$(RegName)$(SUFFIX)_.OUT",52275,1,"$(PREFIX)$(HADCON):$(NAME):deploy1_$(RegName)$(SUFFIX)_.OUT")
#! Link("$(PREFIX)$(HADCON):$(NAME):deploy1_$(RegName)$(SUFFIX)_.OUT","$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX).VAL")
#! Field("$(PREFIX)$(HADCON):$(NAME):deploy1_$(RegName)$(SUFFIX)_.DOL",16777215,0,"$(PREFIX)$(HADCON):$(NAME):deploy1_$(RegName)$(SUFFIX)_.DOL")
#! Field("$(PREFIX)$(HADCON):$(NAME):deploy1_$(RegName)$(SUFFIX)_.DOL",52275,0,"$(PREFIX)$(HADCON):$(NAME):deploy1_$(RegName)$(SUFFIX)_.DOL")
#! Link("$(PREFIX)$(HADCON):$(NAME):deploy1_$(RegName)$(SUFFIX)_.DOL","$(PREFIX)$(HADCON):$(NAME):receive_$(RegName)$(SUFFIX).VAL")
#! Record("$(PREFIX)$(HADCON):$(NAME):deploy2_$(RegName)$(SUFFIX)_",700,636,0,0,"$(PREFIX)$(HADCON):$(NAME):deploy2_$(RegName)$(SUFFIX)_")
#! Field("$(PREFIX)$(HADCON):$(NAME):deploy2_$(RegName)$(SUFFIX)_.OUT",16777215,1,"$(PREFIX)$(HADCON):$(NAME):deploy2_$(RegName)$(SUFFIX)_.OUT")
#! Record("$(PREFIX)$(HADCON):$(NAME):deploy2_$(RegName)$(SUFFIX)_",840,679,16711731,0,"$(PREFIX)$(HADCON):$(NAME):deploy2_$(RegName)$(SUFFIX)_")
#! Field("$(PREFIX)$(HADCON):$(NAME):deploy2_$(RegName)$(SUFFIX)_.OUT",52275,1,"$(PREFIX)$(HADCON):$(NAME):deploy2_$(RegName)$(SUFFIX)_.OUT")
#! Link("$(PREFIX)$(HADCON):$(NAME):deploy2_$(RegName)$(SUFFIX)_.OUT","$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX).VAL")
#! Field("$(PREFIX)$(HADCON):$(NAME):deploy2_$(RegName)$(SUFFIX)_.DOL",16777215,0,"$(PREFIX)$(HADCON):$(NAME):deploy2_$(RegName)$(SUFFIX)_.DOL")
#! Field("$(PREFIX)$(HADCON):$(NAME):deploy2_$(RegName)$(SUFFIX)_.DOL",52275,0,"$(PREFIX)$(HADCON):$(NAME):deploy2_$(RegName)$(SUFFIX)_.DOL")
#! Link("$(PREFIX)$(HADCON):$(NAME):deploy2_$(RegName)$(SUFFIX)_.DOL","$(PREFIX)$(HADCON):$(NAME):read_$(RegName)$(SUFFIX).VAL")
#! Record("$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_",1260,645,0,0,"$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_")
#! Field("$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.FLNK",16777215,1,"$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.FLNK")
#! Link("$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.FLNK","$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_")
#! Record("$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_",1360,687,16711731,1,"$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_")
#! Field("$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.FLNK",16711731,1,"$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.FLNK")
#! Link("$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.FLNK","$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_/FLNK")
#! Field("$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.INP",16777215,0,"$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.INP")
#! Link("$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.INP","$(PREFIX)$(HADCON):$(NAME):$(RegName)$(SUFFIX).VAL")
#! Field("$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B0",16777215,1,"$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B0")
......@@ -210,49 +173,45 @@ record(stringout, "$(PREFIX)$(HADCON):$(NAME):name_$(RegName)$(SUFFIX)") {
#! Field("$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B5",16777215,1,"$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B5")
#! Field("$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B6",16777215,1,"$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B6")
#! Field("$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B7",16777215,1,"$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B7")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B0$(SUFFIX)",1780,325,0,1,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B0$(SUFFIX)")
#! Connector("$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_/FLNK","$(PREFIX)$(HADCON):$(NAME):$(RegName)_B0$(SUFFIX)",1571,563,16711731,"",0)
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B0$(SUFFIX)",1680,254,16711731,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B0$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B0$(SUFFIX).DOL",16777215,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B0$(SUFFIX).DOL")
#! Link("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B0$(SUFFIX).DOL","$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B0")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B1$(SUFFIX)",2100,345,0,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B1$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B0$(SUFFIX).FLNK",16711731,1,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B0$(SUFFIX).FLNK")
#! Link("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B0$(SUFFIX).FLNK","$(PREFIX)$(HADCON):$(NAME):$(RegName)_B1$(SUFFIX)")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B1$(SUFFIX)",1940,314,16711731,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B1$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B1$(SUFFIX).DOL",16777215,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B1$(SUFFIX).DOL")
#! Link("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B1$(SUFFIX).DOL","$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B1")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B2$(SUFFIX)",1760,485,0,1,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B2$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B1$(SUFFIX).FLNK",16711731,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B1$(SUFFIX).FLNK")
#! Link("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B1$(SUFFIX).FLNK","$(PREFIX)$(HADCON):$(NAME):$(RegName)_B2$(SUFFIX)")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B2$(SUFFIX)",1680,454,16711731,1,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B2$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B2$(SUFFIX).DOL",16777215,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B2$(SUFFIX).DOL")
#! Link("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B2$(SUFFIX).DOL","$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B2")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B3$(SUFFIX)",2100,505,0,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B3$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B2$(SUFFIX).FLNK",16777215,1,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B2$(SUFFIX).FLNK")
#! Link("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B2$(SUFFIX).FLNK","$(PREFIX)$(HADCON):$(NAME):$(RegName)_B3$(SUFFIX)")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B3$(SUFFIX)",1940,494,0,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B3$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B3$(SUFFIX).DOL",16777215,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B3$(SUFFIX).DOL")
#! Link("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B3$(SUFFIX).DOL","$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B3")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B4$(SUFFIX)",1780,645,0,1,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B4$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B3$(SUFFIX).FLNK",16711731,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B3$(SUFFIX).FLNK")
#! Link("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B3$(SUFFIX).FLNK","$(PREFIX)$(HADCON):$(NAME):$(RegName)_B4$(SUFFIX)")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B4$(SUFFIX)",1680,634,16711731,1,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B4$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B4$(SUFFIX).DOL",16777215,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B4$(SUFFIX).DOL")
#! Link("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B4$(SUFFIX).DOL","$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B4")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B5$(SUFFIX)",2100,665,0,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B5$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B4$(SUFFIX).FLNK",16711731,1,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B4$(SUFFIX).FLNK")
#! Link("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B4$(SUFFIX).FLNK","$(PREFIX)$(HADCON):$(NAME):$(RegName)_B5$(SUFFIX)")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B5$(SUFFIX)",1940,674,16711731,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B5$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B5$(SUFFIX).DOL",16777215,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B5$(SUFFIX).DOL")
#! Link("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B5$(SUFFIX).DOL","$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B5")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B6$(SUFFIX)",1760,805,0,1,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B6$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B5$(SUFFIX).FLNK",16711731,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B5$(SUFFIX).FLNK")
#! Link("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B5$(SUFFIX).FLNK","$(PREFIX)$(HADCON):$(NAME):$(RegName)_B6$(SUFFIX)")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B6$(SUFFIX)",1680,814,16711731,1,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B6$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B6$(SUFFIX).DOL",16777215,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B6$(SUFFIX).DOL")
#! Link("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B6$(SUFFIX).DOL","$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B6")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B7$(SUFFIX)",2120,825,0,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B7$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B6$(SUFFIX).FLNK",16711731,1,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B6$(SUFFIX).FLNK")
#! Link("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B6$(SUFFIX).FLNK","$(PREFIX)$(HADCON):$(NAME):$(RegName)_B7$(SUFFIX)")
#! Record("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B7$(SUFFIX)",1940,867,16711731,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B7$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B7$(SUFFIX).DOL",16777215,0,"$(PREFIX)$(HADCON):$(NAME):$(RegName)_B7$(SUFFIX).DOL")
#! Link("$(PREFIX)$(HADCON):$(NAME):$(RegName)_B7$(SUFFIX).DOL","$(PREFIX)$(HADCON):$(NAME):split_get_$(RegName)$(SUFFIX)_.B7")
#! Record("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_",1700,16,0,0,"$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_")
#! Field("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_.LNK1",16777215,1,"$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_.LNK1")
#! Link("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_.LNK1","$(PREFIX)$(HADCON):$(NAME):$(RegName)_B0$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_.LNK2",16777215,1,"$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_.LNK2")
#! Link("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_.LNK2","$(PREFIX)$(HADCON):$(NAME):$(RegName)_B1$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_.LNK3",16777215,1,"$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_.LNK3")
#! Link("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_.LNK3","$(PREFIX)$(HADCON):$(NAME):$(RegName)_B2$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_.LNK4",16777215,1,"$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_.LNK4")
#! Link("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_.LNK4","$(PREFIX)$(HADCON):$(NAME):$(RegName)_B3$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_.FLNK",16777215,0,"$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_.FLNK")
#! Link("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)1_.FLNK","$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_")
#! Record("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_",1660,1030,0,0,"$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_")
#! Field("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_.LNK1",16777215,1,"$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_.LNK1")
#! Link("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_.LNK1","$(PREFIX)$(HADCON):$(NAME):$(RegName)_B4$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_.LNK2",16777215,1,"$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_.LNK2")
#! Link("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_.LNK2","$(PREFIX)$(HADCON):$(NAME):$(RegName)_B5$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_.LNK3",16777215,1,"$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_.LNK3")
#! Link("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_.LNK3","$(PREFIX)$(HADCON):$(NAME):$(RegName)_B6$(SUFFIX)")
#! Field("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_.LNK4",16777215,1,"$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_.LNK4")
#! Link("$(PREFIX)$(HADCON):$(NAME):fo_split_get_$(RegName)$(SUFFIX)2_.LNK4","$(PREFIX)$(HADCON):$(NAME):$(RegName)_B7$(SUFFIX)")
#! Record("$(PREFIX)$(HADCON):$(NAME):addr_$(RegName)$(SUFFIX)",580,845,0,1,"$(PREFIX)$(HADCON):$(NAME):addr_$(RegName)$(SUFFIX)")
#! Record("$(PREFIX)$(HADCON):$(NAME):name_$(RegName)$(SUFFIX)",880,860,0,1,"$(PREFIX)$(HADCON):$(NAME):name_$(RegName)$(SUFFIX)")
#! TextBox(TB0,560,320,680,340,0,"Dialog",12,1,16777215,"Request (via Intr.)",null)
#! TextBox(TB1,560,460,680,480,0,"Dialog",12,1,16777215,"Receive (via Intr.)",null)
#! TextBox(TB2,560,680,680,700,0,"Dialog",12,1,16777215,"Read",null)
#RegAddress must be lower case!
substitute "RegName=PORT$(port),RegAddress=$(PORT), DRVL=0x0, DRVH=0xff"
include "hadcon_atmel_register.template"
include "hadcon_atmel_write_register.template"
substitute "RegName=PIN$(port), RegAddress=$(PIN), DRVL=0x0, DRVH=0xff"
include "hadcon_atmel_read_register.template"
substitute "RegName=PORT$(port),RegAddress=$(PORT), DRVL=0x0, DRVH=0xff, ZNAM_B0=IDLE, ONAM_B0=PULLUP, ZNAM_B1=IDLE, ONAM_B1=PULLUP, ZNAM_B2=IDLE, ONAM_B2=PULLUP, ZNAM_B3=IDLE, ONAM_B3=PULLUP, ZNAM_B4=IDLE, ONAM_B4=PULLUP, ZNAM_B5=IDLE, ONAM_B5=PULLUP, ZNAM_B6=IDLE, ONAM_B6=PULLUP, ZNAM_B7=IDLE, ONAM_B7=PULLUP"
include "hadcon_atmel_read_register.template"
substitute "RegName=DDR$(port), RegAddress=$(DDR), DRVL=0x0, DRVH=0xff, ZNAM_B0=INPUT, ONAM_B0=OUTPUT, ZNAM_B1=INPUT, ONAM_B1=OUTPUT, ZNAM_B2=INPUT, ONAM_B2=OUTPUT, ZNAM_B3=INPUT, ONAM_B3=OUTPUT, ZNAM_B4=INPUT, ONAM_B4=OUTPUT, ZNAM_B5=INPUT, ONAM_B5=OUTPUT, ZNAM_B6=INPUT, ONAM_B6=OUTPUT, ZNAM_B7=INPUT, ONAM_B7=OUTPUT"
substitute "RegName=PIN$(port), RegAddress=$(PIN), DRVL=0x0, DRVH=0xff"
include "hadcon_atmel_register.template"
include "hadcon_atmel_read_register.template"
substitute "RegName=PIN$(port), RegAddress=$(PIN), DRVL=0x0, DRVH=0xff, ZNAM_B0=IDLE, ONAM_B0=TOGGLE, ZNAM_B1=IDLE, ONAM_B1=TOGGLE, ZNAM_B2=IDLE, ONAM_B2=TOGGLE, ZNAM_B3=IDLE, ONAM_B3=TOGGLE, ZNAM_B4=IDLE, ONAM_B4=TOGGLE, ZNAM_B5=IDLE, ONAM_B5=TOGGLE, ZNAM_B6=IDLE, ONAM_B6=TOGGLE, ZNAM_B7=IDLE, ONAM_B7=TOGGLE"
include "hadcon_atmel_write_register.template"
substitute "RegName=DDR$(port), RegAddress=$(DDR), DRVL=0x0, DRVH=0xff, ZNAM_B0=INPUT, ONAM_B0=OUTPUT, ZNAM_B1=INPUT, ONAM_B1=OUTPUT, ZNAM_B2=INPUT, ONAM_B2=OUTPUT, ZNAM_B3=INPUT, ONAM_B3=OUTPUT, ZNAM_B4=INPUT, ONAM_B4=OUTPUT, ZNAM_B5=INPUT, ONAM_B5=OUTPUT, ZNAM_B6=INPUT, ONAM_B6=OUTPUT, ZNAM_B7=INPUT, ONAM_B7=OUTPUT"
include "hadcon_atmel_register.template"
include "hadcon_atmel_read_register.template"
include "hadcon_atmel_write_register.template"
#substitute "RegName=PORT$(port),RegAddress=$(PORT), DRVL=0x0, DRVH=0xff, ZNAM_B0=IDLE, ONAM_B0=PULLUP, ZNAM_B1=IDLE, ONAM_B1=PULLUP, ZNAM_B2=IDLE, ONAM_B2=PULLUP, ZNAM_B3=IDLE, ONAM_B3=PULLUP, ZNAM_B4=IDLE, ONAM_B4=PULLUP, ZNAM_B5=IDLE, ONAM_B5=PULLUP, ZNAM_B6=IDLE, ONAM_B6=PULLUP, ZNAM_B7=IDLE, ONAM_B7=PULLUP"
#include "hadcon_atmel_read_register.template"
include "hadcon_atmel_read_IO_port_register.template"
......
......@@ -22,7 +22,6 @@
# ZNAM/ONAM B6: "$(ZNAM_B6)/$(ONAM_B6)"
# ZNAM/ONAM B7: "$(ZNAM_B7)/$(ONAM_B7)"
record(longout, "$(PREFIX)$(HADCON):$(NAME):write_$(RegName)$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):write_$(RegName)$(SUFFIX)")
field(DESC, "write $(RegName)@$(HADCON)")
field(DTYP, "Soft Channel")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):send_$(RegName)$(SUFFIX)_.VAL PP MS")
......@@ -32,163 +31,135 @@ record(longout, "$(PREFIX)$(HADCON):$(NAME):write_$(RegName)$(SUFFIX)") {
field(UDF, "0")
}
record(mbboDirect, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):set_$(RegName)$(SUFFIX)")
field(DESC, "join $(RegName)@$(HADCON)")
field(DTYP, "Raw Soft Channel")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):write_$(RegName)$(SUFFIX) PP MS")
field(IVOA, "Don't drive outputs")
field(UDF, "0")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B0$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):set_$(RegName)_B0$(SUFFIX)")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX).B0")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX)_.B0 PP")
field(ZNAM, "$(ZNAM_B0)")
field(ONAM, "$(ONAM_B0)")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):FLNK_$(RegName)$(SUFFIX)_")
field(UDF, "")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B1$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):set_$(RegName)_B1$(SUFFIX)")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX).B1")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX)_.B1 PP")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):FLNK_$(RegName)$(SUFFIX)_")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B2$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):set_$(RegName)_B2$(SUFFIX)")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX).B2")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX)_.B2 PP")
field(ZNAM, "$(ZNAM_B2)")
field(ONAM, "$(ONAM_B2)")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):FLNK_$(RegName)$(SUFFIX)_")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B3$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):set_$(RegName)_B3$(SUFFIX)")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX).B3")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX)_.B3 PP")
field(ZNAM, "$(ZNAM_B3)")
field(ONAM, "$(ONAM_B3)")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):FLNK_$(RegName)$(SUFFIX)_")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B4$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):set_$(RegName)_B4$(SUFFIX)")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX).B4")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX)_.B4 PP")
field(ZNAM, "$(ZNAM_B4)")
field(ONAM, "$(ONAM_B4)")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):FLNK_$(RegName)$(SUFFIX)_")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B5$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):set_$(RegName)_B5$(SUFFIX)")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX).B5")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX)_.B5 PP")
field(ZNAM, "$(ZNAM_B5)")
field(ONAM, "$(ONAM_B5)")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):FLNK_$(RegName)$(SUFFIX)_")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B6$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):set_$(RegName)_B6$(SUFFIX)")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX).B6")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX)_.B6 PP")
field(ZNAM, "$(ZNAM_B6)")
field(ONAM, "$(ONAM_B6)")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):FLNK_$(RegName)$(SUFFIX)_")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B7$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):set_$(RegName)_B7$(SUFFIX)")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX).B7")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)$(SUFFIX)_.B7 PP")
field(ZNAM, "$(ZNAM_B7)")
field(ONAM, "$(ONAM_B7)")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):FLNK_$(RegName)$(SUFFIX)_")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B0$(SUFFIX)_") {
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B0$(SUFFIX) PP")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B0$(SUFFIX) PP")
field(ZNAM, "$(ZNAM_B0)")
field(ONAM, "$(ONAM_B0)")
field(OMSL, "closed_loop")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):split_set_$(RegName)$(SUFFIX)_.B0")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B1$(SUFFIX)_")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B1$(SUFFIX)_") {
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B1$(SUFFIX) PP")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B1$(SUFFIX) PP")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(OMSL, "closed_loop")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):split_set_$(RegName)$(SUFFIX)_.B1")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B2$(SUFFIX)_")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B2$(SUFFIX)_") {
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B2$(SUFFIX) PP")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B2$(SUFFIX) PP")
field(ZNAM, "$(ZNAM_B2)")
field(ONAM, "$(ONAM_B2)")
field(OMSL, "closed_loop")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):split_set_$(RegName)$(SUFFIX)_.B2")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B3$(SUFFIX)_")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B3$(SUFFIX)_") {
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B3$(SUFFIX) PP")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B3$(SUFFIX) PP")
field(ZNAM, "$(ZNAM_B3)")
field(ONAM, "$(ONAM_B3)")
field(OMSL, "closed_loop")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):split_set_$(RegName)$(SUFFIX)_.B3")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B4$(SUFFIX)_")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B4$(SUFFIX)_") {
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B4$(SUFFIX) PP")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B4$(SUFFIX) PP")
field(ZNAM, "$(ZNAM_B4)")
field(ONAM, "$(ONAM_B4)")
field(OMSL, "closed_loop")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):split_set_$(RegName)$(SUFFIX)_.B4")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B5$(SUFFIX)_")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B5$(SUFFIX)_") {
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B5$(SUFFIX) PP")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B5$(SUFFIX) PP")
field(ZNAM, "$(ZNAM_B5)")
field(ONAM, "$(ONAM_B5)")
field(OMSL, "closed_loop")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):split_set_$(RegName)$(SUFFIX)_.B5")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B6$(SUFFIX)_")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B6$(SUFFIX)_") {
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B6$(SUFFIX) PP")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B6$(SUFFIX) PP")
field(ZNAM, "$(ZNAM_B6)")
field(ONAM, "$(ONAM_B6)")
field(OMSL, "closed_loop")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):split_set_$(RegName)$(SUFFIX)_.B6")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B7$(SUFFIX)_")
}
record(bo, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B7$(SUFFIX)_") {
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B7$(SUFFIX) PP")
field(ZNAM, "$(ZNAM_B1)")
field(ONAM, "$(ONAM_B1)")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):set_$(RegName)_B7$(SUFFIX) PP")
field(ZNAM, "$(ZNAM_B7)")
field(ONAM, "$(ONAM_B7)")
field(OMSL, "closed_loop")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):split_set_$(RegName)$(SUFFIX)_.B7")
}
record(fanout, "$(PREFIX)$(HADCON):$(NAME):fo_split_set_$(RegName)$(SUFFIX)1_") {
field(DESC, "split $(RegName)@$(HADCON)")
field(LNK1, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B0$(SUFFIX)_")
field(LNK2, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B1$(SUFFIX)_")
field(LNK3, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B2$(SUFFIX)_")
field(LNK4, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B3$(SUFFIX)_")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):fo_split_set_$(RegName)$(SUFFIX)2_")
}
record(fanout, "$(PREFIX)$(HADCON):$(NAME):fo_split_set_$(RegName)$(SUFFIX)2_") {
field(DESC, "split $(RegName)@$(HADCON)")
field(LNK1, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B4$(SUFFIX)_")
field(LNK2, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B5$(SUFFIX)_")
field(LNK3, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B6$(SUFFIX)_")
field(LNK4, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B7$(SUFFIX)_")
}
record(calcout, "$(PREFIX)$(HADCON):$(NAME):test_write_$(RegName)$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):test_write_$(RegName)$(SUFFIX)")
field(SCAN, "1 second")
field(DISV, "0")
field(CALC, "C>0?((D>=A&&D<B)?D+C:A):((D>A&&D<=B)?D+C:B)")
......@@ -201,219 +172,212 @@ record(calcout, "$(PREFIX)$(HADCON):$(NAME):test_write_$(RegName)$(SUFFIX)") {
}
record(longout, "$(PREFIX)$(HADCON):$(NAME):send_$(RegName)$(SUFFIX)_") {
field(DESC, "write $(RegName)@$(HADCON)")
field(DESC, "write $(RegName)@$(HADCON)")
field(DTYP, "stream")
field(OUT, "@hadcon_RGWR.proto write($(RegAddress)) $(device)")
field(DRVH, "$(DRVH)")
field(DRVL, "$(DRVL)")
field(IVOA, "Don't drive outputs")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):split_set_$(RegName)$(SUFFIX)_ PP MS")
field(DOL, "$(PREFIX)$(HADCON):$(NAME):write_$(RegName)$(SUFFIX) NPP MS")
}
record(bi, "$(PREFIX)$(HADCON):$(NAME):bitwise_$(RegName)$(SUFFIX)") {
alias("$(PREFIX)$(HADCON):$(ALIAS):bitwise_$(RegName)$(SUFFIX)")
record(bo, "$(PREFIX)$(HADCON):$(NAME):bitwise_$(RegName)$(SUFFIX)") {
field(DESC, "bit wise write $(RegName)@$(HADCON)")
field(UDF, "0")
field(VAL, "0")
field(OUT, "$(PREFIX)$(HADCON):$(NAME):FLNK_$(RegName)$(SUFFIX)_.DISA")
field(ZNAM, "NO")
field(ONAM, "YES")
}
record(mbbiDirect, "$(PREFIX)$(HADCON):$(NAME):split_set_$(RegName)$(SUFFIX)_") {
field(DESC, "split $(RegName)@$(HADCON)")
field(DESC, "split $(RegName)@$(HADCON)")
field(DTYP, "Raw Soft Channel")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):fo_split_set_$(RegName)$(SUFFIX)1_")
field(FLNK, "$(PREFIX)$(HADCON):$(NAME):reset_$(RegName)_B0$(SUFFIX)_")
field(INP, "$(PREFIX)$(HADCON):$(NAME):send_$(RegName)$(SUFFIX)_ NPP MS")