Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Production Test Suite - base
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Production Test Suite - base
Commits
f2c2ff91
Commit
f2c2ff91
authored
Jul 16, 2013
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmc_adc_svec: Fix issues to make svec_test00.py run in a vem front-end.
parent
2dc84059
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
rr2vv.py
common/rr2vv.py
+16
-1
No files found.
common/rr2vv.py
View file @
f2c2ff91
...
...
@@ -12,7 +12,7 @@ import time
import
os
# Add common modules and libraries location to path
sys
.
path
.
append
(
'../../svec_pts/ubuntu/pts/pyts/'
)
# Import common modules
from
vv_pts
import
*
...
...
@@ -20,6 +20,21 @@ from vv_pts import *
class
VME_rr_compatible
(
VME
):
def
__init__
(
self
,
lun
):
""" The vmeio driver lun (logical unit).
At driver install time, insmod maps lun on to
VME (csr, application window, interrupts).
Lun is set when creating a VME object
"""
cwd
=
os
.
path
.
dirname
(
__file__
)
self
.
lib
=
CDLL
(
cwd
+
'/../../svec_pts/src/lib/libvv_pts.so'
)
int
=
0
if
type
(
lun
)
==
type
(
int
):
self
.
lun
=
lun
else
:
self
.
lun
=
int
raise
BusWarning
(
"Warning: VME __init__: Bad lun, default to 0"
)
def
iread
(
self
,
bar
,
offset
,
width
):
return
self
.
vv_read
(
offset
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment