From 3735babebab7f72ef3c558da6cc0cc8808ee9ce6 Mon Sep 17 00:00:00 2001 From: "hadaq@countinghouse" Date: Thu, 28 Aug 2014 17:27:54 +0200 Subject: [PATCH] status, mt --- pion/config/nxyter/disable_channel.sh | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100755 pion/config/nxyter/disable_channel.sh diff --git a/pion/config/nxyter/disable_channel.sh b/pion/config/nxyter/disable_channel.sh deleted file mode 100755 index aa358d4..0000000 --- a/pion/config/nxyter/disable_channel.sh +++ /dev/null @@ -1,27 +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 -- 2.43.0