Index: firmware/App/Services/FpgaTD.h =================================================================== diff -u -r3a8cf075eb6f0d255f516ac26bac7fbaacfde14a -rd9b5f588d81e15ed3849222bed3362e15dbf4b0a --- firmware/App/Services/FpgaTD.h (.../FpgaTD.h) (revision 3a8cf075eb6f0d255f516ac26bac7fbaacfde14a) +++ firmware/App/Services/FpgaTD.h (.../FpgaTD.h) (revision d9b5f588d81e15ed3849222bed3362e15dbf4b0a) @@ -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,38 +54,49 @@ void setAlarmAudioState( U32 state, U32 volumeLevel, U32 volumeDivider ); -U16 getFPGABloodPumpHallSensorCount( void ); -U08 getFPGABloodPumpHallSensorStatus( void ); +void setBloodPumpEnabled( BOOL enable ); +void setBloodPumpDirection( MOTOR_DIR_T dir ); +void homeBloodPump( void ); +void resetBloodPumpHomeRequest( void ); +void setBloodPumpSetSpeed( U16 rpm ); +U16 getBloodPumpSpeed( 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 getPBAPressure( void ); +S16 getPBATemperature( void ); +U08 getPBAReadCounter( void ); +U08 getPBAErrorCounter( void ); +U16 getPBOPressure( void ); +S16 getPBOTemperature( void ); +U08 getPBOReadCounter( void ); +U08 getPBOErrorCounter( void ); + F32 getFPGABackupAlarmAudioCurrent( void ); void getFPGAAirTrapLevels( BOOL *airAtLower, BOOL *airAtUpper ); -void setFPGAValvesControlMode( U16 bits ); - BOOL ADVBubbleDetected( void ); void setFPGAVenousBubbleSelfTest( void ); void clearFPGAVenousBubbleSelfTest( void ); -void setVBVPosition( S16 setPoint ); -S16 getVBVPosition( void ); +void setVBTValveState( OPN_CLS_STATE_T state ); + +void setVBVControl( U08 controlBits ); +U08 getVBVControl( void ); +void setVBVPosition( U16 setPoint ); +S16 getVBVEncoderPosition( void ); +S16 getVBVCmdPosition( void ); U16 getVBVStatus( void ); -U16 getFPGAValveBloodVenousCurrentCounts( void ); -void setVBAPosition( S16 setPoint ); -S16 getVBAPosition( void ); +void setVBAControl( U08 controlBits ); +U08 getVBAControl( void ); +void setVBAPosition( U16 setPoint ); +S16 getVBAEncoderPosition( void ); +S16 getVBACmdPosition( void ); U16 getVBAStatus( void ); -U16 getFPGAValveBloodArterialCurrentCounts( void ); U16 getFPGABoardTemperature( void ); U32 getFPGAPBAADCTemperature( void );