summaryrefslogtreecommitdiffstats
path: root/tests/Frame_Req.sh
diff options
context:
space:
mode:
authorroot <root@ipepdvpc4>2011-07-26 16:52:01 +0200
committerroot <root@ipepdvpc4>2011-07-26 16:52:01 +0200
commit093a3ad25ec0eca3d7a535a2d054b15f7ce1f757 (patch)
tree95b22ef6bb14f6cb6681f981cd1b1bd2aea3dc9e /tests/Frame_Req.sh
parent4fb42b72682d05ae15dc19296715fe6fe467bc2e (diff)
downloadpcitool-093a3ad25ec0eca3d7a535a2d054b15f7ce1f757.tar.gz
pcitool-093a3ad25ec0eca3d7a535a2d054b15f7ce1f757.tar.bz2
pcitool-093a3ad25ec0eca3d7a535a2d054b15f7ce1f757.tar.xz
pcitool-093a3ad25ec0eca3d7a535a2d054b15f7ce1f757.zip
DMA support in IPE Camera
Diffstat (limited to 'tests/Frame_Req.sh')
-rwxr-xr-xtests/Frame_Req.sh50
1 files changed, 50 insertions, 0 deletions
diff --git a/tests/Frame_Req.sh b/tests/Frame_Req.sh
new file mode 100755
index 0000000..484f9ee
--- /dev/null
+++ b/tests/Frame_Req.sh
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+echo " Reset Readout and CMOSIS "
+pci -w 0xd2009040 1e5
+pci -r 0xd2009040 -s 10
+echo " Release Reset for CMOSIS"
+pci -w 0xd2009040 1e1
+pci -r 0xd2009040 -s 10
+
+sleep 1
+echo " Start CMOSIS Configuration .."
+pci -w 0xd2009000 f301
+pci -r 0xd2009000 -s 10
+
+usleep 1000
+pci -w 0xd2009000 d207
+pci -r 0xd2009000 -s 10
+usleep 1000
+echo " Number of rows set here "
+pci -w 0xd2009000 8110
+pci -r 0xd2009000 -s 10
+
+usleep 1000
+pci -w 0xd2009000 8200
+pci -r 0xd2009000 -s 10
+
+sleep 1
+echo "Set packet siye 1024 .. "
+pci -w xrawdata_packet_length 4096
+pci --start-dma dma1
+sleep 1
+
+echo "Send frame request ... "
+pci -w 0xd2009040 1e9
+pci -w 0xd2009040 1e1
+
+echo "Status ... "
+pci -r 0xd2009000 -s 100
+
+echo "Enable Readout ... "
+pci -w 0xd2009040 3e1
+pci -r 0xd2009000 -s 100
+
+for i in `seq 1 10`; do
+# pci -r dma1 -s 1024 -o bench.out
+ pci -r dma1 -s 4096
+done
+
+pci --stop-dma dma1
+