Index: TestSupport.c =================================================================== diff -u --- TestSupport.c (revision 0) +++ TestSupport.c (revision 839e686d3aa5a6de3c09a69c9e0af638700efba4) @@ -0,0 +1,56 @@ +/************************************************************************** +* +* Copyright (c) 2021 Diality Inc. - All Rights Reserved. +* +* THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN +* WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. +* +* @file TestSupport.c +* +* @author (last) Sean Nash +* @date (last) 10-Aug-2021 +* +* @author (original) Sean Nash +* @date (original) 10-Aug-2021 +* +***************************************************************************/ + +#include "Common.h" + +/** + * @addtogroup TestSupport + * @{ + */ + +// ********** private definitions ********** + + +// ********** private data ********** + + +// ********** private function prototypes ********** + + +/*********************************************************************//** + * @brief + * The getU32OverrideValue function extracts the appropriate unsigned integer + * value from a given unsigned integer override record according to the + * record state. + * @details Inputs: none + * @details Outputs: none + * @param ovU32 pointer to an unsigned integer override record + * @return either the real or overridden unsigned integer value from the record + *************************************************************************/ +U32 getU32OverrideValue( OVERRIDE_U32_T *ovU32 ) +{ + U32 result = ovU32->data; + + if ( OVERRIDE_KEY == ovU32->override ) + { + result = ovU32->ovData; + } + + return result; +} + +/**@}*/ Index: TestSupport.h =================================================================== diff -u -r9039be47e57a36cea6f8b264d539fe619f218e05 -r839e686d3aa5a6de3c09a69c9e0af638700efba4 --- TestSupport.h (.../TestSupport.h) (revision 9039be47e57a36cea6f8b264d539fe619f218e05) +++ TestSupport.h (.../TestSupport.h) (revision 839e686d3aa5a6de3c09a69c9e0af638700efba4) @@ -84,6 +84,10 @@ U32 override; ///< Override } OVERRIDE_F32_T; +// ********** public function prototypes ********** + +U32 getU32OverrideValue( OVERRIDE_U32_T *ovU32 ); + /**@}*/ #endif