/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/ipecamera/stimuli.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
 
function pci {
4
 
    PCILIB_PATH="/root/pcitool"
5
 
    LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
6
 
}
7
 
 
8
 
rm -f bench.out
9
 
 
10
 
echo "Set FFFF the frame space .."
11
 
pci -w 0x9180 fff 
12
 
 
13
 
echo "Set the number of frames .."
14
 
pci -w reg9170 55
15
 
 
16
 
pci --start-dma dma1
17
 
 
18
 
echo "Send frame request ... "
19
 
pci -w control 1f1
20
 
usleep 100000
21
 
pci -w control 1e1
22
 
 
23
 
 
24
 
echo "Enable Readout ... "
25
 
pci -w control 3e1
26
 
pci -r dma1 -o bench.out --multipacket
27
 
pci -w control 1e1
28
 
 
29
 
pci --stop-dma dma1
30