#ifndef _VALVES_H_ #define _VALVES_H_ #include "Common.h" /** * @defgroup Valves Valves * @brief Valves module * Driver that runs the valves in HD. * * @addtogroup Valves * @{ */ // ********** public definitions ********** /// Valves positions typedef enum valveStatesNames { VALVE_POSITION_NOT_IN_POSITION = 0, ///< Valve position is unknown VALVE_POSITION_A_INSERT_EJECT, ///< Valve is in Position A, Insert/Eject VALVE_POSITION_B_OPEN, ///< Valve is in Position B, Open VALVE_POSITION_C_CLOSE, ///< Valve is in Position C, Close NUM_OF_VALVE_POSITIONS, ///< Number of valve positions } VALVE_POSITION_T; /// Valves names typedef enum valveNames { VDI = 0, ///< Valve Dialyzer Inlet VDO, ///< Valve Dialyzer Outlet VBA, ///< Valve Blood Arterial VBV, ///< Valve Blood Venous NUM_OF_VALVES ///< Number of valves } VALVE_T; // ********** public function prototypes ********* void initValves( void ); SELF_TEST_STATUS_T execValvesSelfTest( void ); void execValves( void ); BOOL homeValve( VALVE_T valve ); //TODO does it need to return bool? BOOL setValvePosition( VALVE_T valve, VALVE_POSITION_T position ); VALVE_POSITION_T getValvePosition( VALVE_T valve ); BOOL setValveBloodTrap( OPN_CLS_STATE_T state ); /**@}*/ #endif