Index: leahi_dialin/common/td_defs.py =================================================================== diff -u -r3dc5b82f0b6f0ad88f51e709ec969b3f62af5240 -r43f69b19f03145572d88f5f3c0cc739503c6d647 --- leahi_dialin/common/td_defs.py (.../td_defs.py) (revision 3dc5b82f0b6f0ad88f51e709ec969b3f62af5240) +++ leahi_dialin/common/td_defs.py (.../td_defs.py) (revision 43f69b19f03145572d88f5f3c0cc739503c6d647) @@ -1004,6 +1004,7 @@ 'NUM_OF_AIR_PUMP_ATTRIBUTES': [], } + class TDAirPumpStates(DialinEnum): AIR_PUMP_STATE_INIT = 0 # Air Pump Initialize state AIR_PUMP_STATE_OFF = 1 # Air Pump Off state @@ -1167,15 +1168,29 @@ # Syringe pump operations @unique -class SyringePumpOperations(DialinEnum): - SYRINGE_PUMP_OP_STOP = 0 # Stop syringe pump - SYRINGE_PUMP_OP_RETRACT = 1 # Retract syringe pump - SYRINGE_PUMP_OP_SEEK = 2 # Seek plunger - SYRINGE_PUMP_OP_PRIME = 3 # Prime Heparin line - SYRINGE_PUMP_OP_BOLUS = 4 # Deliver Heparin bolus of set volume over 5 minutes - SYRINGE_PUMP_OP_CONTINUOUS = 5 # Continuous dispense of Heparin at set rate - SYRINGE_PUMP_OP_PRELOAD = 6 # Preload syringe pump +class TDSyringePumpStates(DialinEnum): + STOP = 0 # Stop syringe pump + RETRACT = 1 # Retract syringe pump + SEEK = 2 # Seek plunger + PRIME = 3 # Prime Heparin line + BOLUS = 4 # Deliver Heparin bolus of set volume over 5 minutes + CONTINUOUS = 5 # Continuous dispense of Heparin at set rate + PRELOAD = 6 # Preload syringe pump + NUM_OF_SYRINGE_PUMP_STATES = 7 # Number of Syringe pump States +TDSyringePumpStates._str_list = { + # Official Name : Accepted strings + 'STOP': [], + 'RETRACT': [], + 'SEEK': [], + 'PRIME': [], + 'BOLUS': [], + 'CONTINUOUS': [], + 'PRELOAD': [], + 'NUM_OF_SYRINGE_PUMP_STATES': [], +} + + @unique class TDValvePositions(DialinEnum): NOT_IN_POSITION = 0 # Valve not in Position