]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
take address, mt
authorMichael Traxler <M.Traxler@gsi.de>
Wed, 4 Aug 2021 02:43:16 +0000 (04:43 +0200)
committerMichael Traxler <M.Traxler@gsi.de>
Wed, 4 Aug 2021 02:43:16 +0000 (04:43 +0200)
users/gsi_ee_trb84/tdcv4_enable_channels.sh [new file with mode: 0755]

diff --git a/users/gsi_ee_trb84/tdcv4_enable_channels.sh b/users/gsi_ee_trb84/tdcv4_enable_channels.sh
new file mode 100755 (executable)
index 0000000..b657bc2
--- /dev/null
@@ -0,0 +1,12 @@
+ADDR=$1
+
+MASK1=$2
+MASK2=$3
+
+trbcmd w $ADDR 0xcd10 0
+trbcmd w $ADDR 0xcd20 0
+trbcmd w $ADDR 0xcd12 $MASK1
+trbcmd w $ADDR 0xcd22 $MASK2
+
+trbcmd clearbit $ADDR 0xcd00 $(perl -e '$r=1<<25; printf "0x%x",$r')
+trbcmd setbit   $ADDR 0xcd00 $(perl -e '$r=1<<27; printf "0x%x",$r')