Index: firmware/App/Services/FpgaTD.h =================================================================== diff -u -r3a8cf075eb6f0d255f516ac26bac7fbaacfde14a -rf3a26c402a2ec88f5ee7dbb8eb7127ab5b4692aa --- firmware/App/Services/FpgaTD.h (.../FpgaTD.h) (revision 3a8cf075eb6f0d255f516ac26bac7fbaacfde14a) +++ firmware/App/Services/FpgaTD.h (.../FpgaTD.h) (revision f3a26c402a2ec88f5ee7dbb8eb7127ab5b4692aa) @@ -31,6 +31,12 @@ // ********** public definitions ********** +#define FPGA_PINCH_VALVES_1_32_STEP 0x03 ///< Bit mask for configuring pinch valve for 1/32 step. +#define FPGA_PINCH_VALVES_REVERSE 0x08 ///< Bit mask for configuring pinch valve for reverse direction. +#define FPGA_PINCH_VALVES_DISABLE 0x10 ///< Bit mask for configuring pinch valve to be disabled. +#define FPGA_PINCH_VALVES_NOT_RESET 0x20 ///< Bit mask for configuring pinch valve to not be in reset. +#define FPGA_PINCH_VALVES_NOT_SLEEP 0x40 ///< Bit mask for configuring pinch valve to not be in sleep mode. + // ********** public function prototypes ********** void initFpgaTD( void ); @@ -48,45 +54,56 @@ void setAlarmAudioState( U32 state, U32 volumeLevel, U32 volumeDivider ); -U16 getFPGABloodPumpHallSensorCount( void ); -U08 getFPGABloodPumpHallSensorStatus( void ); +void setH4Enabled( BOOL enable ); +void setH4Direction( MOTOR_DIR_T dir ); +void homeH4( void ); +void resetH4HomeRequest( void ); +void setH4SetSpeed( U16 rpm ); +U16 getH4Period( void ); -S32 getPBAPressure( void ); -S32 getPBATemperature( void ); -U08 getPBAReadCounter( void ); -U08 getPBAErrorCounter( void ); +U16 getBloodPumpHallSensorCount( void ); +U08 getBloodPumpHallSensorStatus( void ); -S32 getPBOPressure( void ); -S32 getPBOTemperature( void ); -U08 getPBOReadCounter( void ); -U08 getPBOErrorCounter( void ); +U16 getH2Pressure( void ); +S16 getH2Temperature( void ); +U08 getH2ReadCounter( void ); +U08 getH2ErrorCounter( void ); +U16 getH14Pressure( void ); +S16 getH14Temperature( void ); +U08 getH14ReadCounter( void ); +U08 getH14ErrorCounter( void ); + F32 getFPGABackupAlarmAudioCurrent( void ); void getFPGAAirTrapLevels( BOOL *airAtLower, BOOL *airAtUpper ); -void setFPGAValvesControlMode( U16 bits ); - -BOOL ADVBubbleDetected( void ); +BOOL H18BubbleDetected( void ); void setFPGAVenousBubbleSelfTest( void ); void clearFPGAVenousBubbleSelfTest( void ); -void setVBVPosition( S16 setPoint ); -S16 getVBVPosition( void ); -U16 getVBVStatus( void ); -U16 getFPGAValveBloodVenousCurrentCounts( void ); +void setH13ValveState( OPN_CLS_STATE_T state ); -void setVBAPosition( S16 setPoint ); -S16 getVBAPosition( void ); -U16 getVBAStatus( void ); -U16 getFPGAValveBloodArterialCurrentCounts( void ); +void setH19Control( U08 controlBits ); +U08 getH19Control( void ); +void setH19Position( U16 setPoint ); +S16 getH19EncoderPosition( void ); +S16 getH19CmdPosition( void ); +U16 getH19Status( void ); +void setH1Control( U08 controlBits ); +U08 getH1Control( void ); +void setH1Position( U16 setPoint ); +S16 getH1EncoderPosition( void ); +S16 getH1CmdPosition( void ); +U16 getH1Status( void ); + U16 getFPGABoardTemperature( void ); U32 getFPGAPBAADCTemperature( void ); U16 getFPGAInletFan1TogglePeriod( void ); BOOL getFPGAFrontDoorClosedStatus( void ); -/**@}*/ - -#endif +/**@}*/ + +#endif