Index: firmware/App/Controllers/BalancingChamber.h =================================================================== diff -u -r9414a62b7071ca116813ad68eb80892331c536c7 -rcf4b4058736c50efbf955846f37c6bd62ddc7e99 --- firmware/App/Controllers/BalancingChamber.h (.../BalancingChamber.h) (revision 9414a62b7071ca116813ad68eb80892331c536c7) +++ firmware/App/Controllers/BalancingChamber.h (.../BalancingChamber.h) (revision cf4b4058736c50efbf955846f37c6bd62ddc7e99) @@ -47,19 +47,6 @@ #define BAL_CHAMBER_TIME_BASED_BAND_2 290 ///< Speed at D48 pump runs when the flowrate is between 60 mL/min and 70 mL/min. #define BAL_CHAMBER_TIME_BASED_BAND_3 330 ///< Speed at D48 pump runs when the flowrate is between 70 mL/min and 80 mL/min. -/// balancing chamber data structure -typedef struct -{ - U32 balChamberExecState; ///< Balancing chamber execution state - U32 balChamberSWState; ///< Balancing chamber switching state (state 1 or state 2) - F32 balChamberSWFreq; ///< Balancing chamber switching frequency - BOOL isSpentFillComplete; ///< Whether balancing chamber spent fill completed or not - U32 currentBalChamberSwitchingCounter; ///< Current balancing chamber switching counter - BOOL isPressureStabilizedDuringFill; ///< Whether pressure stabilized during fill or not - BOOL balChamberSWOnlyState; ///< Balancing chamber switching only status ( On/Off) - BOOL isBalChamberSwitchingActive; ///< Balancing chamber switching status -} BAL_CHAMBER_DATA_T; - // ********** public function prototypes ********** void initBalanceChamber( void ); // Initialize balancing chamber unit @@ -83,9 +70,11 @@ F32 getBalancingChamberError( void ); // Get balancing chamber error to adjust UF rate. F32 getBicarbDoseVol( void ); // Get liquid bicarb dose volume F32 getAcidDoseVol( void ); // Get acid dose volume + BOOL getBalancingChamberStatus(void); // Get Balancing Chamber Switching Status BOOL isBalChamberSwitchImminent( void ); // Get the balancing chamber is within the valve-close window (50 ms) before switching. BOOL getBalChamberFreshSideValvesClosedStatus( void ); // Get the balancing chamber fresh side valve close status +BOOL getBalancingChamberStatus( void ); // Get Balancing Chamber Switching Status BOOL testDDBalChamberDataPublishIntervalOverride( MESSAGE_T *message ); // To override the balancing chamber data publish interval BOOL testBalChamberSwFreqOverride( MESSAGE_T *message ); // To override the balancing chamber switching frequency