/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to tests/frame2.sh

  • Committer: Suren A. Chilingaryan
  • Date: 2014-03-19 22:12:31 UTC
  • Revision ID: csa@suren.me-20140319221231-erlz0d7pk8nzo8e6
Add HEB scripts and re-organize the structure

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
function pci {
4
 
    PCILIB_PATH="/root/pcitool"
5
 
    LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
6
 
}
7
 
 
8
 
pci --stop-dma dma1
9
 
#pci --reset
10
 
 
11
 
echo "Set packet size 1024 .. "
12
 
pci -w cmosis_number_lines 1088
13
 
#pci -w xrawdata_packet_length 4096
14
 
pci --start-dma dma1
15
 
usleep 1000
16
 
 
17
 
echo "Send frame request ... "
18
 
pci -w control 1e9
19
 
usleep 1000
20
 
pci -w control 1e1
21
 
usleep 300000
22
 
pci -w control 1e9
23
 
usleep 1000
24
 
pci -w control 1e1
25
 
usleep 3000
26
 
 
27
 
echo "Enable Readout ... "
28
 
pci -w control 3e1
29
 
 
30
 
usleep 100000
31
 
 
32
 
pci -r dma1 -o bench.out --multipacket --timeout 1000000
33
 
 
34
 
pci -w control 1e1
35
 
 
36
 
pci --stop-dma dma1
37