/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to tests/ipedma/ipecamera-frame.sh

  • Committer: Suren A. Chilingaryan
  • Date: 2015-04-20 20:01:04 UTC
  • Revision ID: csa@suren.me-20150420200104-b5xny65io8lvoz3w
Big redign of model structures

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
TESTS_PATH="`dirname \"$0\"`"
 
4
TESTS_PATH="`( cd \"$TESTS_PATH\" && pwd )`"
 
5
 
 
6
function pci {
 
7
    PCILIB_PATH=$TESTS_PATH/../../..
 
8
    LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci -m ipedma $*
 
9
}
 
10
 
 
11
 
 
12
rm bench.out
 
13
 
 
14
pci --stop-dma dma0r
 
15
#pci --reset
 
16
 
 
17
echo "Set packet size 1024 .. "
 
18
#pci -w cmosis_number_lines 1088
 
19
#pci -w xrawdata_packet_length 4096
 
20
pci --start-dma dma0r
 
21
usleep 1000
 
22
 
 
23
pci -w 0x90a8 0x0a
 
24
pci -w 0x90a0 0x0a
 
25
 
 
26
echo "Send frame request ... "
 
27
# Single frame
 
28
pci -w 0x9040 80000209
 
29
# Stimuli
 
30
#pci -w 0x9040 800002f1
 
31
# Streaming
 
32
#pci -w 0x9040 80000a01
 
33
usleep 100000
 
34
pci -w 0x9040 80000201
 
35
usleep 100000
 
36
 
 
37
echo "Enable Readout ... "
 
38
#pci -w control 3e1
 
39
pci -w 0x4 0x1
 
40
 
 
41
usleep 100000
 
42
 
 
43
pci -r dma0 -o bench.out --multipacket
 
44
 
 
45
pci -w 0x9040 80000001
 
46
 
 
47
pci --stop-dma dma0r
 
48