Index: leahi_dialin/common/dd_defs.py =================================================================== diff -u -rcd896dc3a33c4dad04f7aa3b7ad84d75f87abc34 -re9a32dcd15e9112f38ad3de850db56e029aae861 --- leahi_dialin/common/dd_defs.py (.../dd_defs.py) (revision cd896dc3a33c4dad04f7aa3b7ad84d75f87abc34) +++ leahi_dialin/common/dd_defs.py (.../dd_defs.py) (revision e9a32dcd15e9112f38ad3de850db56e029aae861) @@ -450,7 +450,18 @@ 'NUM_OF_PISTON_PUMPS': [], } +@unique +class DDSubstitutionPumpNames(DialinEnum): + D92_PUMP = 0 # HDF Substitution pump + NUM_OF_SUB_PUMPS = 1 # Number of substituion pumps +DDSubstitutionPumpNames._str_list = { + # Official Name : Accepted strings + 'D92_PUMP': ['d92', 'sub pump'], + 'NUM_OF_SUB_PUMPS': [], +} + + @unique class DDPressureSensorNames(DialinEnum): D9_PRES = 0 # Hydraulics outlet pressure (PHo/Pn) @@ -988,6 +999,24 @@ @unique +class DDSubstitutionPumpAttributes(DialinEnum): + TARGET_SPEED = 0 # Target RPM Substitution Pump Attribute + CURRENT_SPEED = 1 # Current Speed Substitution Pump Attribute + STATE = 2 # State to command Substitution Pump Attribute + MEASURED_SPEED = 3 # Measured Speed Substitution Pump Attribute + NUM_OF_DIALYSATE_PUMP_ATTRIBUTES = 4 # Number of Substitution Pump Attributes + +DDSubstitutionPumpAttributes._str_list = { + # Official Name : Accepted strings + 'TARGET_SPEED': ['target rp,'], + 'CURRENT_SPEED': ['current speed'], + 'STATE': ['state'], + 'MEASURED_SPEED': ['measured speed'], + 'NUM_OF_DIALYSATE_PUMP_ATTRIBUTES': [], +} + + +@unique class DDConductivityResistanceAttributes(DialinEnum): RAW_RESISTANCE = 0 # Raw Conductivity resistance Attribute RTD_RESISTANCE = 1 # raw RTD resistance Attribute