#ifndef UTIL_MATH_2020_08_05_H_
#define UTIL_MATH_2020_08_05_H_
//*****************************************************************************
// (C) Automotive Lighting Reutlingen GmbH
// Tuebinger Strasse 123, 72762 Reutlingen, Germany
//
// Automotive Lighting Reutlingen GmbH owns all the rights to this work.
// This work shall not be copied, reproduced, used, modified, transferred
// or its information shall not be disclosed without the prior written
// authorization of Automotive Lighting Reutlingen GmbH.
//*****************************************************************************
//-----------------------------------------------------------------------------
/// \file UtilMath.h
///
/// \brief
///
/// \descr
///
/// Additional information can be found in the design description (Link:
/// MDDD)
///
/// \author Wuesteney, Ulrich ALRT/EEG-PM2 * (wu82rt)
/// mailTo:ulrich.wuesteney[A]al-lighting.com
//-----------------------------------------------------------------------------
#include
//=============================================================================
// defines
//=============================================================================
//=============================================================================
//
//=============================================================================
typedef sint32 ORDER1_Filter;
//=============================================================================
// prototypes
//=============================================================================
uint16 UtilMath_LinearInterpolateU16(const uint16* punX, const uint16* punY, sint32 lLinPairs, uint16 unX);
void Order1Filter ( ORDER1_Filter* const pFilter, const sint16 nValue, const uint16 unBeta);
void Order1FilterInit ( ORDER1_Filter* const pFilter, const sint16 nValue );
sint16 Order1FilterValue (const ORDER1_Filter* const pFilter );
uint16 Order1FilterGetCoef(const uint16 unSamplimgTime, const uint16 unFilterTime);
INLINE boolean Util_SameSign(const sint32 a, const sint32 b)
{
return (boolean) ((int) (a < (sint32) 0) == (int) (b < (sint32) 0));
}
#endif // UTIL_MATH_2020_08_05_H_