Commit f2c2ff91 authored by Matthieu Cattin's avatar Matthieu Cattin

fmc_adc_svec: Fix issues to make run in a vem front-end.

parent 2dc84059
......@@ -12,7 +12,7 @@ import time
import os
# Add common modules and libraries location to path
# 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/')
int = 0
if type(lun) == type(int):
self.lun = lun
self.lun = int
raise BusWarning("Warning: VME __init__: Bad lun, default to 0")
def iread(self, bar, offset, width):
return self.vv_read(offset)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment