Index: firmware/App/Services/FpgaDD.h =================================================================== diff -u -r498757853c009a4e25dec98461be91fcadd8057d -r66b5d24b111859a597259a2118f59a90da76e7f1 --- firmware/App/Services/FpgaDD.h (.../FpgaDD.h) (revision 498757853c009a4e25dec98461be91fcadd8057d) +++ firmware/App/Services/FpgaDD.h (.../FpgaDD.h) (revision 66b5d24b111859a597259a2118f59a90da76e7f1) @@ -43,13 +43,13 @@ void getFPGAVersions( U08 *Id, U08 *Maj, U08 *Min, U08 *Lab ); //Valve -void setFPGAValveStates( U16 valveStates ); +void setFPGADDValveStates( U16 valveStates ); void setFPGABCValveStates( U08 valveStates ); void setFPGAUFValveStates( U08 valveStates ); -U16 getFPGAValveStates( void ); +U16 getFPGADDValveStates( void ); U08 getFPGAValveBCStates( void ); -U08 getFPGAValveUFStates( void ); +U08 getFPGAValveSpStates( void ); // Conductivity and Temperature Sensor void setFPGACD12Control( U08 control ); @@ -186,41 +186,21 @@ U08 getFPGAD48PumpHallDirectionStatus( void ); //Pressure sensor -U08 getFPGAD9PresReadCount( void ); -U08 getFPGAD9PresErrorCount( void ); U16 getFPGAD9PresRawPressure( void ); U16 getFPGAD9PresRawTemperature( void ); -U08 getFPGAD66PresReadCount( void ); -U08 getFPGAD66PresErrorCount( void ); U16 getFPGAD66PresRawPressure( void ); U16 getFPGAD66PresRawTemperature( void ); -U08 getFPGAD51PresReadCount( void ); -U08 getFPGAD51PresErrorCount( void ); U16 getFPGAD51PresRawPressure( void ); U16 getFPGAD51PresRawTemperature( void ); -U08 getFPGAD18PresReadCount( void ); -U08 getFPGAD18PresErrorCount( void ); U16 getFPGAD18PresRawPressure( void ); U16 getFPGAD18PresRawTemperature( void ); -U08 getFPGAD41PresReadCount( void ); -U08 getFPGAD41PresErrorCount( void ); U16 getFPGAD41PresRawPressure( void ); U16 getFPGAD41PresRawTemperature( void ); -U08 getFPGAM1PresReadCount( void ); -U08 getFPGAM1PresErrorCount( void ); -U16 getFPGAM1PresRawPressure( void ); -U16 getFPGAM1PresRawTemperature( void ); - -U08 getFPGAM3PresReadCount( void ); -U08 getFPGAM3PresErrorCount( void ); -U16 getFPGAM3PresRawPressure( void ); -U16 getFPGAM3PresRawTemperature( void ); - //Level sensor U16 getFPGAD63LevelSensor( void ); U16 getFPGAD46LevelSensor( void ); @@ -235,20 +215,6 @@ U08 getFPGARTDReadCount( void ); U08 getFPGARTDCountErrorCycles( void ); -//Barometric sensor -U08 getFPGABaroReadCount( void ); -U08 getFPGABaroErrorCount( void ); -U16 getFPGABaroMfgInfo( void ); -U16 getFPGABaroPressureSensitivity( void ); -U16 getFPGABaroPressureOffset( void ); -U16 getFPGABaroTempCoeffOfPressSensitvity( void ); -U16 getFPGABaroTempCoeffOfPressOffset( void ); -U16 getFPGABaroReferenceTemperature( void ); -U16 getFPGABaroTempCoeffOfTemperature( void ); -U16 getFPGABaroCoeffsCRC( void ); -U32 getFPGABaroPressure( void ); -U32 getFPGABaroTemperature( void ); - //Primary and Trimmer heater void setFPGAD5HeaterPWMControl( U08 control ); void setFPGAD45HeaterPWMControl( U08 control ); @@ -266,6 +232,111 @@ U08 getFPGABloodLeakRxErrorCount( void ); U08 getFPGABloodLeakRxFIFODataOut( void ); +//*************** IOFP ******************* + +void setFPGAIOFPValveStates( U08 valveStates ); +U08 getFPGAIOFPValveStates( void ); + +void setFPGAP12PumpEnable( BOOL enable ); +void setFPGAP12PumpPWM( U16 pwm ); +U16 getFPGAP12PumpPWM( void ); +U16 getFPGAP12PumpTachCount( void ); + +void setFPGAP24Enabled( BOOL enable ); +void setFPGAP24PWM( U16 pwm ); + +S16 getFPGAM1RawPressure( void ); +S16 getFPGAM1RawTemperature( void ); +U08 getFPGAM1ReadCount( void ); + +S16 getFPGAM3RawPressure( void ); +S16 getFPGAM3RawTemperature( void ); +U08 getFPGAM3ReadCount( void ); + +S16 getFPGAP8RawPressure( void ); +S16 getFPGAP8RawTemperature( void ); +U08 getFPGAP8ReadCount( void ); + +S16 getFPGAP13RawPressure( void ); +S16 getFPGAP13RawTemperature( void ); +U08 getFPGAP13ReadCount( void ); + +S16 getFPGAP17RawPressure( void ); +S16 getFPGAP17RawTemperature( void ); +U08 getFPGAP17ReadCount( void ); + +S16 getFPGAX1RawPressure( void ); +S16 getFPGAX1RawTemperature( void ); +U08 getFPGAX1ReadCount( void ); + +S16 getFPGAX2RawPressure( void ); +S16 getFPGAX2RawTemperature( void ); +U08 getFPGAX2ReadCount( void ); + +S16 getFPGAX3RawPressure( void ); +S16 getFPGAX3RawTemperature( void ); +U08 getFPGAX3ReadCount( void ); + +S16 getFPGAX4RawPressure( void ); +S16 getFPGAX4RawTemperature( void ); +U08 getFPGAX4ReadCount( void ); + +S16 getFPGAX5RawPressure( void ); +S16 getFPGAX5RawTemperature( void ); +U08 getFPGAX5ReadCount( void ); + +U32 getFPGAP23Temperature( void ); +U32 getFPGAP22Temperature( void ); + +U08 getFPGAP25FloaterState( void ); + +U16 getFPGAFlowP16( void ); +U16 getFPGAFlowP16Temp( void ); +U16 getFPGAFlowP7( void ); +U16 getFPGAFlowP7Temp( void ); + +void setFPGAP9Control( U08 control ); +void setFPGAP9Address( U16 address ); +void setFPGAP9Data( U32 data ); +void setFPGAP18Control( U08 control ); +void setFPGAP18Address( U16 address ); +void setFPGAP18Data( U32 data ); + +void setFPGAP9Reset( void ); +void clearFPGAP9Reset( void ); +void setFPGAP9InitEnable( void ); +void clearFPGAP9InitEnable( void ); +void setFPGAP9WriteEnable( void ); +void clearFPGAP9WriteEnable( void ); +void setFPGAP9ReadEnable( void ); +void clearFPGAP9ReadEnable( void ); + +void setFPGAP18Reset( void ); +void clearFPGAP18Reset( void ); +void setFPGAP18InitEnable( void ); +void clearFPGAP18InitEnable( void ); +void setFPGAP18WriteEnable( void ); +void clearFPGAP18WriteEnable( void ); +void setFPGAP18ReadEnable( void ); +void clearFPGAP18ReadEnable( void ); + +U08 getFPGAP9ReadCount( void ); +U08 getFPGAP9ErrorCount( void ); +U16 getFPGAP9Conductivity( void ); +U16 getFPGAP9Temperature( void ); +U32 getFPGAP9Data( void ); + +U08 getFPGAP18ReadCount( void ); +U08 getFPGAP18ErrorCount( void ); +U16 getFPGAP18Conductivity( void ); +U16 getFPGAP18Temperature( void ); +U32 getFPGAP18Data( void ); + +void setFPGAP40PumpEnable( BOOL enable ); +void setFPGAP40PumpPWM( U16 pwm ); +U16 getFPGAP40PumpPWM( void ); +U16 getFPGAP40PumpTachCount( void ); + /**@}*/ #endif