Index: TestSupport.c =================================================================== diff -u -r98fa971c534d21b71371cb72a7c0839fe79045e6 -rabcc2b9707d46590047fa8c13053359d3218d8cc --- TestSupport.c (.../TestSupport.c) (revision 98fa971c534d21b71371cb72a7c0839fe79045e6) +++ TestSupport.c (.../TestSupport.c) (revision abcc2b9707d46590047fa8c13053359d3218d8cc) @@ -451,6 +451,60 @@ /*********************************************************************//** * @brief + * The handleFluidPumpU32Data function checks the OVERRIDE_U32_T and sets + * the current data to 0 and resets the override if it is active. + * @details \b Inputs: None + * @details \b Outputs: None + * @param ovU32 pointer to an unsigned integer override record + * @return none + *************************************************************************/ +void handleFluidPumpU32Data( OVERRIDE_U32_T *ovU32) +{ + if ( ovU32->data > 0 ) + { + if ( ovU32->override != OVERRIDE_RESET ) + { + ovU32->ovData = 0; + ovU32->override = OVERRIDE_RESET; + ovU32->data = 0; + } + else if ( ovU32->ovInitData == 0 ) + { + ovU32->ovInitData = ovU32->data; + ovU32->data = 0; + } + } +} + +/*********************************************************************//** + * @brief + * The handleFluidPumpF32Data function checks the OVERRIDE_F32_T and sets + * the current data to 0 and resets the override if it is active. + * @details \b Inputs: None + * @details \b Outputs: None + * @param ovF32 pointer to an floating point override record + * @return none + *************************************************************************/ +void handleFluidPumpF32Data( OVERRIDE_F32_T *ovF32) +{ + if ( ovF32->data > 0.0F ) + { + if ( ovF32->override != OVERRIDE_RESET ) + { + ovF32->ovData = 0.0F; + ovF32->override = OVERRIDE_RESET; + ovF32->data = 0.0F; + } + else if ( ovF32->ovInitData == 0.0F ) + { + ovF32->ovInitData = ovF32->data; + ovF32->data = 0.0F; + } + } +} + +/*********************************************************************//** + * @brief * The s32ArrayOverride function sets the override for a given array of S32 * override records. * @details \b Inputs: none