Index: leahi_dialin/common/dd_defs.py =================================================================== diff -u -r71f2092930ad621e8a738de12faf806e8c46b1b9 -r1e48f7a8c91ce73aa9023dc71a23b6db13c7bd5b --- leahi_dialin/common/dd_defs.py (.../dd_defs.py) (revision 71f2092930ad621e8a738de12faf806e8c46b1b9) +++ leahi_dialin/common/dd_defs.py (.../dd_defs.py) (revision 1e48f7a8c91ce73aa9023dc71a23b6db13c7bd5b) @@ -1004,3 +1004,32 @@ 'CANCELLATION_MODE_WATER': ['water'], 'NUM_OF_CANCELLATION_MODES': [], } + +@unique +class DDSwitchStatus(DialinEnum): + CLOSED = 0 # Closed State of the TD Switch + OPEN = 1 # Open State of the TD Switch + NUM_OF_SWITCH_STATES = 2 # Number of Switch States + +DDSwitchStatus._str_list = { + # Official Name : Accepted strings + 'CLOSED': [], + 'OPEN': [], + 'NUM_OF_SWITCH_STATES': [], +} + +@unique +class DDSwitchNames(DialinEnum): + D101_SWITCH1 = 0 # Connector/cap switch 1 + D102_SWITCH2 = 1 # Connector/cap switch 2 + D103_CAP = 2 # Cap parked switch + NUM_OF_DOORS_AND_SWITCHES = 3 # Number of Switches + +DDSwitchNames._str_list = { + # Official Name : Accepted strings + 'D101_SWITCH1': ['d101', 'connector/cap switch 1', 'switch1'], + 'D102_SWITCH2': ['d102', 'connector/cap switch 2', 'switch2'], + 'D103_CAP': ['d103', 'cap parked', 'cap_parked'], + 'NUM_OF_DOORS_AND_SWITCHES': [], +} +