Index: TestSupport.c =================================================================== diff -u -r2c508d911fedf7fea1a081f449070aeed248b85c -r476fa5a4aac0ee83508e13573c245b772a391aa0 --- TestSupport.c (.../TestSupport.c) (revision 2c508d911fedf7fea1a081f449070aeed248b85c) +++ TestSupport.c (.../TestSupport.c) (revision 476fa5a4aac0ee83508e13573c245b772a391aa0) @@ -52,8 +52,30 @@ return result; } + /*********************************************************************//** * @brief + * The getU16OverrideValue function extracts the appropriate U16 + * value from a given U32 override record according to the record state. + * @details Inputs: none + * @details Outputs: none + * @param ovU32 pointer to a floating point override record + * @return overridden U16 point value from the record + *************************************************************************/ +U16 getU16OverrideValue( OVERRIDE_U32_T *ovU32 ) +{ + U16 result = (U16)( ovU32->data & MASK_OFF_MSW ); + + if ( OVERRIDE_KEY == ovU32->override ) + { + result = (U16)( ovU32->ovData & MASK_OFF_MSW ); + } + + return result; +} + +/*********************************************************************//** + * @brief * The getS32OverrideValue function extracts the appropriate signed integer * value from a given signed integer override record according to the * record state.