summaryrefslogtreecommitdiffstats
path: root/tests/ipecamera/frame.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2014-03-19 23:12:31 +0100
committerSuren A. Chilingaryan <csa@suren.me>2014-03-19 23:12:31 +0100
commitef4f563559f195672d07114670a461a7c55ea22b (patch)
tree300e583a062fd7fe017d59fc68edef5d84184a85 /tests/ipecamera/frame.sh
parent3b410e54d3925a903adb2cc479177afc579c7679 (diff)
downloadipecamera-ef4f563559f195672d07114670a461a7c55ea22b.tar.gz
ipecamera-ef4f563559f195672d07114670a461a7c55ea22b.tar.bz2
ipecamera-ef4f563559f195672d07114670a461a7c55ea22b.tar.xz
ipecamera-ef4f563559f195672d07114670a461a7c55ea22b.zip
Add HEB scripts and re-organize the structure
Diffstat (limited to 'tests/ipecamera/frame.sh')
-rwxr-xr-xtests/ipecamera/frame.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/ipecamera/frame.sh b/tests/ipecamera/frame.sh
new file mode 100755
index 0000000..679817b
--- /dev/null
+++ b/tests/ipecamera/frame.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+TESTS_PATH="`dirname \"$0\"`"
+TESTS_PATH="`( cd \"$TESTS_PATH\" && pwd )`"
+
+function pci {
+ PCILIB_PATH=$TESTS_PATH/..
+ LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
+}
+
+pci --stop-dma dma1
+#pci --reset
+
+echo "Set packet size 1024 .. "
+pci -w cmosis_number_lines 1088
+#pci -w xrawdata_packet_length 4096
+pci --start-dma dma1
+usleep 1000
+
+echo "Send frame request ... "
+pci -w control 1e9
+usleep 100000
+pci -w control 1e1
+usleep 100000
+
+echo "Enable Readout ... "
+pci -w control 3e1
+
+usleep 100000
+
+pci -r dma1 -o bench.out --multipacket
+
+pci -w control 1e1
+
+pci --stop-dma dma1
+