Index: TestSupport.c =================================================================== diff -u -r8dc8551a200e8353a563828ccc8dcb4ad9f47bfb -r0503aeb53c963794ce5aadae04e7672bc9cfe4ab --- TestSupport.c (.../TestSupport.c) (revision 8dc8551a200e8353a563828ccc8dcb4ad9f47bfb) +++ TestSupport.c (.../TestSupport.c) (revision 0503aeb53c963794ce5aadae04e7672bc9cfe4ab) @@ -33,6 +33,49 @@ /*********************************************************************//** * @brief + * The getU08OverrideValue function extracts the appropriate U08 + * 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 U08 point value from the record + *************************************************************************/ +U08 getU08OverrideValue( OVERRIDE_U32_T *ovU32 ) +{ + U08 result = (U08)( ovU32->data & MASK_OFF_U32_MSBS ); + + if ( OVERRIDE_KEY == ovU32->override ) + { + result = (U08)( ovU32->ovData & MASK_OFF_U32_MSBS ); + } + + return result; +} + +/*********************************************************************//** + * @brief + * The getS32OverrideValue function extracts the appropriate signed integer + * value from a given signed integer override record according to the + * record state. + * @details Inputs: none + * @details Outputs: none + * @param ovS32 pointer to an unsigned integer override record + * @return either the real or overridden signed integer value from the record + *************************************************************************/ +S32 getS32OverrideValue( OVERRIDE_S32_T *ovS32 ) +{ + S32 result = ovS32->data; + + if ( OVERRIDE_KEY == ovS32->override ) + { + result = ovS32->ovData; + } + + return result; +} + +/*********************************************************************//** + * @brief * The getU32OverrideValue function extracts the appropriate unsigned integer * value from a given unsigned integer override record according to the * record state. Index: TestSupport.h =================================================================== diff -u -r8dc8551a200e8353a563828ccc8dcb4ad9f47bfb -r0503aeb53c963794ce5aadae04e7672bc9cfe4ab --- TestSupport.h (.../TestSupport.h) (revision 8dc8551a200e8353a563828ccc8dcb4ad9f47bfb) +++ TestSupport.h (.../TestSupport.h) (revision 0503aeb53c963794ce5aadae04e7672bc9cfe4ab) @@ -86,7 +86,9 @@ // ********** public function prototypes ********** +U08 getU08OverrideValue( OVERRIDE_U32_T *ovU32 ); U32 getU32OverrideValue( OVERRIDE_U32_T *ovU32 ); +S32 getS32OverrideValue( OVERRIDE_S32_T *ovS32 ); F32 getF32OverrideValue( OVERRIDE_F32_T *ovF32 ); /**@}*/