Index: dialin/dg/cpld.py =================================================================== diff -u -rd0f14d72e6a4a3672d01b0290e510089bd4799fe -rb918f7f71622686211139374f872470c5ae3aa83 --- dialin/dg/cpld.py (.../cpld.py) (revision d0f14d72e6a4a3672d01b0290e510089bd4799fe) +++ dialin/dg/cpld.py (.../cpld.py) (revision b918f7f71622686211139374f872470c5ae3aa83) @@ -23,6 +23,12 @@ from ..utils.checks import check_broadcast_interval_override_ms from ..utils.conversions import integer_to_bytearray, float_to_bytearray +@unique +class CPLD_LED_COLORS(DialinEnum): + CPLD_LED_COLOR_OFF = 0 + CPLD_LED_COLOR_ORANGE_HEAT_DISINFECT = 1 + CPLD_LED_COLOR_YELLOW_CHEM_DISINFECT = 2 + CPLD_LED_COLOR_BLUE_FLUSH_DISINFECT = 3 class Cpld(AbstractSubSystem): """ @@ -51,6 +57,38 @@ self.cpld_fault_led = 0 self.cpld_clean_led = 0 + def get_cpld_wdog(self): + """ + Gets the current CPLD watchdog value + + @return: cpld_wdog - 0 if timeout, 1 if OK + """ + return [self.cpld_wdog] + + def get_cpld_audio(self): + """ + Gets the current CPLD audio value + + @return: cpld_audio - 0=OFF, 1=ON + """ + return [self.cpld_audio] + + def get_cpld_fault_led(self): + """ + Gets the current CPLD Fault LED value + + @return: cpld_fault_led - 0=OFF, 1=ON + """ + return [self.cpld_fault_led] + + def get_cpld_clean_led(self): + """ + Gets the current CPLD Clean LED value + + @return: cpld_clean_led - CPLD_LED_COLORS enum + """ + return [self.cpld_clean_led] + def get_cpld(self): """ Gets the current CPLD values