#record(mbbo, "$(TPR):$(INST):BKBN_CNFG") {
#  field(DESC, "Timing backbone configuration")
#  field(DTYP, "bpmCpCarrier")
#  field(OMSL, "supervisory")
#  field(ZRST, "Backplane Rx")
#  field(ZRVL, "0")
#  field(ONST, "Standalone")
#  field(ONVL, "1")
#  field(TWST, "LCLS->backplane")
#  field(TWVL, "2")
#  field(THST, "LCLS2->backplane")
#  field(THVL, "3")
#  field(VAL,  "$(BKBN)")
#  field(PINI, "YES")
#  field(OUT,  "#C$(INST)S0@backbone")
#  info(autosaveFields, "VAL RVAL")
#}

#=======================================
# Timing Backbone dictates how timing
# is received and if our carrier 
# distributes it to the backplane:
# 4-element array register OutputConfig[]
# Instructions here:
# https://confluence.slac.stanford.edu/display/ppareg/How+to+configure+the+timing+crossbar
#=======================================

record(longin, "$(TPR):$(INST):OUTPUTCONFIG0RB") {
  field(DESC, "Backbone configuration reg 0")
  field(DTYP, "bpmCpCarrier")
  field(SCAN, "1 second")
  field(INP,  "#C$(INST)S0@OutputConfig[0]")
  field(ASG,  "Internal")
}
record(longin, "$(TPR):$(INST):OUTPUTCONFIG1RB") {
  field(DESC, "Backbone configuration reg 1")
  field(DTYP, "bpmCpCarrier")
  field(SCAN, "1 second")
  field(INP,  "#C$(INST)S0@OutputConfig[1]")
  field(ASG,  "Internal")
}
record(longin, "$(TPR):$(INST):OUTPUTCONFIG2RB") {
  field(DESC, "Backbone configuration reg 2")
  field(DTYP, "bpmCpCarrier")
  field(SCAN, "1 second")
  field(INP,  "#C$(INST)S0@OutputConfig[2]")
  field(ASG,  "Internal")
}
record(longin, "$(TPR):$(INST):OUTPUTCONFIG3RB") {
  field(DESC, "Backbone configuration reg 3")
  field(DTYP, "bpmCpCarrier")
  field(SCAN, "1 second")
  field(INP,  "#C$(INST)S0@OutputConfig[3]")
  field(ASG,  "Internal")
}

record(longout, "$(TPR):$(INST):OUTPUTCONFIG0") {
  field(DESC, "Backbone configuration reg 0")
  field(DTYP, "bpmCpCarrier")
  field(OMSL, "supervisory")
  field(OUT,  "#C$(INST)S0@OutputConfig[0]")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}
record(longout, "$(TPR):$(INST):OUTPUTCONFIG1") {
  field(DESC, "Backbone configuration reg 1")
  field(DTYP, "bpmCpCarrier")
  field(OMSL, "supervisory")
  field(OUT,  "#C$(INST)S0@OutputConfig[1]")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}
record(longout, "$(TPR):$(INST):OUTPUTCONFIG2") {
  field(DESC, "Backbone configuration reg 2")
  field(DTYP, "bpmCpCarrier")
  field(OMSL, "supervisory")
  field(OUT,  "#C$(INST)S0@OutputConfig[2]")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
  field(ASG,  "Internal")
}
record(longout, "$(TPR):$(INST):OUTPUTCONFIG3") {
  field(DESC, "Backbone configuration reg 3")
  field(DTYP, "bpmCpCarrier")
  field(OMSL, "supervisory")
  field(OUT,  "#C$(INST)S0@OutputConfig[3]")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
  field(ASG,  "Internal")
}

record(longin, "$(TPR):$(INST):GLOBALCNT") {
  field(DESC, "Global event count")
  field(DTYP, "bpmCpCarrier")
  field(SCAN, "1 second")
  field(INP,  "#C$(INST)S0@GlobalEventCnt")
}
