Index: firmware/App/Drivers/CPLD.h =================================================================== diff -u -r256d5cb05f1ef09e19e2f2733a111f600c73a7ee -re2e31bba8ccc7b60ba6036377799c71f9ceee63f --- firmware/App/Drivers/CPLD.h (.../CPLD.h) (revision 256d5cb05f1ef09e19e2f2733a111f600c73a7ee) +++ firmware/App/Drivers/CPLD.h (.../CPLD.h) (revision e2e31bba8ccc7b60ba6036377799c71f9ceee63f) @@ -41,6 +41,14 @@ CPLD_CLEAN_LED_BLUE, ///< Blue NUM_OF_CPLD_CLEAN_LED_COLORS ///< Number of CPLD Clean LED colors } CPLD_CLEAN_LED_COLORS_T; + +typedef struct +{ + U08 wdog; ///< Watchdog status (Expired True or False) + U08 audio; ///< Audio Alarm status (On / Off) + U08 fault_led; ///< Fault LED (On / Off) + U08 clean_led; ///< Clean / Disinfect LED (CPLD_CLEAN_LED_COLORS_T) +} CPLD_STATUS_T; // ********** public function prototypes ********** @@ -50,9 +58,12 @@ PIN_SIGNAL_STATE_T getCPLDWatchdogExpired( void ); void setCPLDCleanLEDColor( CPLD_CLEAN_LED_COLORS_T color ); -void setCPLDFaultLED( PIN_SIGNAL_STATE_T level ); +void setCPLDFaultLED( PIN_SIGNAL_STATE_T level, BOOL fault ); void setCPLDFaultAudio( PIN_SIGNAL_STATE_T level ); +void getCPLDStatus( CPLD_STATUS_T *status ); +void broadcastCPLDStatus( void ); + /**@}*/ #endif