Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pts-base
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
misc
pts-base
Commits
f2c2ff91
Commit
f2c2ff91
authored
11 years ago
by
Matthieu Cattin
Browse files
Options
Downloads
Patches
Plain Diff
fmc_adc_svec: Fix issues to make svec_test00.py run in a vem front-end.
parent
2dc84059
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/rr2vv.py
+16
-1
16 additions, 1 deletion
common/rr2vv.py
with
16 additions
and
1 deletion
common/rr2vv.py
+
16
−
1
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment