diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-04-20 22:01:04 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-04-20 22:01:04 +0200 |
commit | 77c4d6e67debf0e729734d882df033c4c0f5b0c3 (patch) | |
tree | 4a59e86332d6cc78fc5c97110ecba281b0f67bc9 /tests/ipedma/ipecamera-frame.sh | |
parent | 0002c0cc260a6a8e2b6c53f19ae99a625eca4355 (diff) | |
download | pcitool-77c4d6e67debf0e729734d882df033c4c0f5b0c3.tar.gz pcitool-77c4d6e67debf0e729734d882df033c4c0f5b0c3.tar.bz2 pcitool-77c4d6e67debf0e729734d882df033c4c0f5b0c3.tar.xz pcitool-77c4d6e67debf0e729734d882df033c4c0f5b0c3.zip |
Big redign of model structures
Diffstat (limited to 'tests/ipedma/ipecamera-frame.sh')
-rwxr-xr-x | tests/ipedma/ipecamera-frame.sh | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/ipedma/ipecamera-frame.sh b/tests/ipedma/ipecamera-frame.sh new file mode 100755 index 0000000..f34fe93 --- /dev/null +++ b/tests/ipedma/ipecamera-frame.sh @@ -0,0 +1,48 @@ +#!/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 -m ipedma $* +} + + +rm bench.out + +pci --stop-dma dma0r +#pci --reset + +echo "Set packet size 1024 .. " +#pci -w cmosis_number_lines 1088 +#pci -w xrawdata_packet_length 4096 +pci --start-dma dma0r +usleep 1000 + +pci -w 0x90a8 0x0a +pci -w 0x90a0 0x0a + +echo "Send frame request ... " +# Single frame +pci -w 0x9040 80000209 +# Stimuli +#pci -w 0x9040 800002f1 +# Streaming +#pci -w 0x9040 80000a01 +usleep 100000 +pci -w 0x9040 80000201 +usleep 100000 + +echo "Enable Readout ... " +#pci -w control 3e1 +pci -w 0x4 0x1 + +usleep 100000 + +pci -r dma0 -o bench.out --multipacket + +pci -w 0x9040 80000001 + +pci --stop-dma dma0r + |