#==================================================================
# Record example for an IntField, RW, 1 element, no encoding register.
# It is a longout record with type asynInt32.
# The OUT field has the form @asyn(PORT,ADDR)PARAM where:
#  - PORT  : The asyn port name. It must match the port name given 
#            when calling "YCPSWASYNConfig" on st.cmd
#  - PARAM : The asyn paramter name. It must be defined in the 
#            dictionary file and assigned to a register.
#  - ADDR  : Addrres based on the type of register.
#            For IntField, RW, without encoding is 1.
#==================================================================

record(longout, "$(P):NumSamp0") {
    field(DTYP, "asynInt32")
    field(DESC, "Number of samples 0, sensor 0")
    field(PINI, "NO")
    field(SCAN, "Passive")
    field(OUT,  "@asyn($(PORT),1)AMC$(AMC):SENS1:NumSamp0")
}#==================================================================
# Record example for an IntField, RW, 1 element, no encoding register.
# It is a longout record with type asynInt32.
# The OUT field has the form @asyn(PORT,ADDR)PARAM where:
#  - PORT  : The asyn port name. It must match the port name given 
#            when calling "YCPSWASYNConfig" on st.cmd
#  - PARAM : The asyn paramter name. It must be defined in the 
#            dictionary file and assigned to a register.
#  - ADDR  : Addrres based on the type of register.
#            For IntField, RW, without encoding is 1.
#==================================================================

record(longout, "$(P):NumSamp1") {
    field(DTYP, "asynInt32")
    field(DESC, "Number of samples 1, sensor 0")
    field(PINI, "NO")
    field(SCAN, "Passive")
    field(OUT,  "@asyn($(PORT),1)AMC$(AMC):SENS1:NumSamp1")
}#==================================================================
# Record example for an IntField, RW, 1 element, no encoding register.
# It is a longout record with type asynInt32.
# The OUT field has the form @asyn(PORT,ADDR)PARAM where:
#  - PORT  : The asyn port name. It must match the port name given 
#            when calling "YCPSWASYNConfig" on st.cmd
#  - PARAM : The asyn paramter name. It must be defined in the 
#            dictionary file and assigned to a register.
#  - ADDR  : Addrres based on the type of register.
#            For IntField, RW, without encoding is 1.
#==================================================================

record(longout, "$(P):TrigDelay1") {
    field(DTYP, "asynInt32")
    field(DESC, "")
    field(PINI, "NO")
    field(SCAN, "Passive")
    field(OUT,  "@asyn($(PORT),1)AMC$(AMC):SENS1:TrigDelay1")
}#==================================================================
# Record example for an IntField, RW, 1 element, no encoding register.
# It is a longout record with type asynInt32.
# The OUT field has the form @asyn(PORT,ADDR)PARAM where:
#  - PORT  : The asyn port name. It must match the port name given 
#            when calling "YCPSWASYNConfig" on st.cmd
#  - PARAM : The asyn paramter name. It must be defined in the 
#            dictionary file and assigned to a register.
#  - ADDR  : Addrres based on the type of register.
#            For IntField, RW, without encoding is 1.
#==================================================================

record(longout, "$(P):TrigDelay2") {
    field(DTYP, "asynInt32")
    field(DESC, "")
    field(PINI, "NO")
    field(SCAN, "Passive")
    field(OUT,  "@asyn($(PORT),1)AMC$(AMC):SENS1:TrigDelay2")
}#==================================================================
# Record example for reading back from an IntField, RW, 1 element, 
# no encoding register.
# It is a longin record with type asynInt32.
# The INP field has the form @asyn(PORT,ADDR)PARAM where:
#  - PORT  : The asyn port name. It must match the port name given 
#            when calling "YCPSWASYNConfig" on st.cmd
#  - PARAM : The asyn paramter name. It must be defined in the 
#            dictionary file and assigned to a register.
#  - ADDR  : Addrres based on the type of register.
#            For IntField, RW, without encoding is 1.
#==================================================================

record(longin,  "$(P):NumSamp0RBV") {
    field(DTYP, "asynInt32")
    field(DESC, "Number of samples 0, sensor 0")
    field(PINI, "YES")
    field(SCAN, "1 second")
    field(INP,  "@asyn($(PORT),1)AMC$(AMC):SENS1:NumSamp0")
}
#==================================================================
# Record example for reading back from an IntField, RW, 1 element, 
# no encoding register.
# It is a longin record with type asynInt32.
# The INP field has the form @asyn(PORT,ADDR)PARAM where:
#  - PORT  : The asyn port name. It must match the port name given 
#            when calling "YCPSWASYNConfig" on st.cmd
#  - PARAM : The asyn paramter name. It must be defined in the 
#            dictionary file and assigned to a register.
#  - ADDR  : Addrres based on the type of register.
#            For IntField, RW, without encoding is 1.
#==================================================================

record(longin,  "$(P):NumSamp1RBV") {
    field(DTYP, "asynInt32")
    field(DESC, "Number of samples 1, sensor 0")
    field(PINI, "YES")
    field(SCAN, "1 second")
    field(INP,  "@asyn($(PORT),1)AMC$(AMC):SENS1:NumSamp1")
}
#==================================================================
# Record example for reading back from an IntField, RW, 1 element, 
# no encoding register.
# It is a longin record with type asynInt32.
# The INP field has the form @asyn(PORT,ADDR)PARAM where:
#  - PORT  : The asyn port name. It must match the port name given 
#            when calling "YCPSWASYNConfig" on st.cmd
#  - PARAM : The asyn paramter name. It must be defined in the 
#            dictionary file and assigned to a register.
#  - ADDR  : Addrres based on the type of register.
#            For IntField, RW, without encoding is 1.
#==================================================================

record(longin,  "$(P):TrigDelay1RBV") {
    field(DTYP, "asynInt32")
    field(DESC, "")
    field(PINI, "YES")
    field(SCAN, "1 second")
    field(INP,  "@asyn($(PORT),1)AMC$(AMC):SENS1:TrigDelay1")
}
#==================================================================
# Record example for reading back from an IntField, RW, 1 element, 
# no encoding register.
# It is a longin record with type asynInt32.
# The INP field has the form @asyn(PORT,ADDR)PARAM where:
#  - PORT  : The asyn port name. It must match the port name given 
#            when calling "YCPSWASYNConfig" on st.cmd
#  - PARAM : The asyn paramter name. It must be defined in the 
#            dictionary file and assigned to a register.
#  - ADDR  : Addrres based on the type of register.
#            For IntField, RW, without encoding is 1.
#==================================================================

record(longin,  "$(P):TrigDelay2RBV") {
    field(DTYP, "asynInt32")
    field(DESC, "")
    field(PINI, "YES")
    field(SCAN, "1 second")
    field(INP,  "@asyn($(PORT),1)AMC$(AMC):SENS1:TrigDelay2")
}
