From: hadaq@countinghouse Date: Thu, 28 Aug 2014 15:28:26 +0000 (+0200) Subject: status, mt X-Git-Tag: pre2018~26 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=f1cbb2dd85702a1f16614f53ad3c19a4e2cf913f;p=hadesdaq.git status, mt --- diff --git a/pion/config/nxyter/enable_channel.sh b/pion/config/nxyter/enable_channel.sh deleted file mode 100755 index 8f8fd5a..0000000 --- a/pion/config/nxyter/enable_channel.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -export PATH=/home/rich/TRB/trbsoft/trbnettools/binlocal:${PATH} - -if [ -z "$1" ] -then - echo "Usage: $0 ChannelID" - exit 0; -fi - -# first disable test_trigger_ mode to allow reading -REG20=$(trb_i2c r 0x3800 0x08 0x20 | awk '{print $2}') -trb_i2c w 0x3800 0x08 0x20 0x00 - -REGISTER=$(($1/8)) -MASK=$((2**($1-8*$REGISTER))) - -echo "Register: $REGISTER Mask: $MASK" - -CURRENT=$(trb_i2c r 0x3800 0x08 $REGISTER | awk '{print $2}' | base) -NEW=$(($CURRENT^$MASK)) - -echo "$CURRENT -> $NEW" -trb_i2c w 0x3800 0x08 $REGISTER $NEW - -# Restore Register 20 -trb_i2c w 0x3800 0x08 0x20 $REG20 -