add ioClass to many module classes
+ add converted mb11_cfg.py Change-Id: Ic985fc16b5ce39caacbf1f3abd87b13b1e7c2da7
This commit is contained in:
@@ -30,6 +30,7 @@ class IO(StringIO):
|
||||
|
||||
|
||||
class Power(HasIO, Readable):
|
||||
ioClass = IO
|
||||
value = Parameter(datatype=FloatRange(0,3300,unit='W'))
|
||||
voltage = Parameter('voltage', FloatRange(0,8, unit='V'))
|
||||
current = Parameter('current', FloatRange(0,400, unit='A'))
|
||||
@@ -41,6 +42,7 @@ class Power(HasIO, Readable):
|
||||
|
||||
|
||||
class Output(HasIO, Writable):
|
||||
ioClass = IO
|
||||
value = Parameter(datatype=FloatRange(0,100,unit='%'), default=0)
|
||||
target = Parameter(datatype=FloatRange(0,100,unit='%'))
|
||||
mode = Parameter('regulation mode', EnumType(voltage=1, current=2, both=3),
|
||||
|
||||
Reference in New Issue
Block a user