Index: firmware/App/Services/FpgaTD.c =================================================================== diff -u -rfbe7e9a870c7ad78d3bd26f0f5cbb0277c733ac3 -ra24b17c782486b016de4970acd35bd85c1e329bb --- firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision fbe7e9a870c7ad78d3bd26f0f5cbb0277c733ac3) +++ firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision a24b17c782486b016de4970acd35bd85c1e329bb) @@ -924,6 +924,18 @@ /*********************************************************************//** * @brief + * The getH12AirPumpMotorRPM function reads the air pump RPM from FPGA. + * @details \b Inputs: fpgaSensorReadings + * @details \b Outputs: none + * @return air pump RPM value + *************************************************************************/ +U16 getH12AirPumpMotorRPM( void ) +{ + return fpgaSensorReadings.h12Speed; +} + +/*********************************************************************//** + * @brief * The setH12AirPumpMotorPowerLevel function sets the air pump motor power level * to 0 to turn pump off or 1..255 for varying power levels. * @details \b Inputs: fpgaActuatorSetPoints.h12Control @@ -1279,6 +1291,18 @@ /*********************************************************************//** * @brief + * The getAirPumpRPM function reads the air pump RPM from FPGA. + * @details \b Inputs: fpgaSensorReadings + * @details \b Outputs: none + * @return air pump RPM value + *************************************************************************/ +U16 getAirPumpRPM( void ) +{ + return fpgaSensorReadings.h12Speed; +} + +/*********************************************************************//** + * @brief * The checkFPGACommFailure function increments the FPGA comm failure * windowed timer and returns whether or not the number of failures in * the window have been reached.