This commit is contained in:
Erik Frojdh
2019-03-15 11:01:36 +01:00
parent bb93147537
commit 6ddde83c81
105 changed files with 8798 additions and 2 deletions

View File

@ -0,0 +1,18 @@
from .decorators import error_handling, property_error_handling
class Register:
def __init__(self, detector):
self._detector = detector
@property_error_handling
def __getitem__(self, key):
return self._detector._api.readRegister(key)
def __setitem__(self, key, value):
self._detector._api.writeRegister(key, value)
class Adc_register:
def __init__(self, detector):
self._detector = detector
def __setitem__(self, key, value):
self._detector._api.writeAdcRegister(key, value)