Commit 2dc84059 authored by Matthieu Cattin's avatar Matthieu Cattin

common: Add a class wrapper for rr based test.

The new class is inherited from the VME class from vv_lib (svec pts)
and it implements iread and iwrite methods needed by rr based tests.
parent c2e55263
#! /usr/bin/env python
# coding: utf8
# Copyright CERN, 2013
# Author: Matthieu Cattin <matthieu.cattin@cern.ch>
# Licence: GPL v2 or later.
# Website: http://www.ohwr.org
# Import system modules
import sys
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 *
class VME_rr_compatible(VME):
def iread(self, bar, offset, width):
return self.vv_read(offset)
def iwrite(self, bar, offset, width, datum):
return self.vv_write(offset, datum)
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