MFx Library (Mfx)
AUTOSAR Classic Libraries-Modul MFx Library (Mfx, Spezifikation: AUTOSAR_CP_SWS_MFXLibrary.pdf, AUTOSAR_SWS_MFXLibrary.pdf).
Funktionen — Übersicht
<OutType> Mfx_Add_<InTypeMn1><InTypeMn2>_<OutTypeMn> (<InType1> x_value, <InType2> y_value);This routine makes an addition between the two arguments.<OutType> Mfx_Sub_<InTypeMn1><InTypeMn2>_<OutTypeMn> (<InType1> x_value, <InType2> y_value);This routine makes a subtraction between the two arguments.<OutType> Mfx_Abs_<InTypeMn1>_<OutTypeMn> (<InType1> x_value);This routine computes the absolute value of a signed value.<OutType> Mfx_AbsDiff_<InTypeMn1><InTypeMn2>_<OutTypeMn> (<InType1> x_value, <InType2> y_value);This routine computes the absolute value of a difference between 2 values.<OutType> Mfx_Mul_<InTypeMn1><InTypeMn2>_<OutTypeMn> (<InType1> x_value, <InType2> y_value);This routine makes a multiplication between the two arguments.<OutType> Mfx_Div_<InTypeMn1><InTypeMn2>_<OutTypeMn> (<InType1> x_value, <InType2> y_value);These routines make a division between the two arguments.<OutType> Mfx_RDiv_<InTypeMn1><InTypeMn2>_<OutTypeMn> (<InType1> x_value, <InType2> y_value);These routines make a division between the two arguments.<OutType> Mfx_MulDiv_<InTypeMn1><InTypeMn2><InTypeMn3>_<OutTypeMn> (<InType1> x_value, <InType2> y_value, <InType3> z_value);These routines make a multiplication between the two arguments and a division by the third argument.<OutType> Mfx_RMulDiv_<InTypeMn1><InTypeMn2><InTypeMn3>_<OutTypeMn> (<InType1> x_value, <InType2> y_value, <InType3> z_value);These routines make a multiplication between the two arguments and a division by the third argument.<OutType> Mfx_MulShRight_<InTypeMn1><InTypeMn2>_<OutTypeMn> (<InType1> x_value, <InType2> y_value, uint8 shift);This routine makes a multiplication between the two arguments and applies a shift right defined by the third argument.<OutType> Mfx_DivShLeft_<InTypeMn1><InTypeMn2>u8_<OutTypeMn> (<InType1> x_value, <InType2> y_value, uint8 shift);This routine applies a shift left defined by the third argument to the first argument, and then makes a division by the second...<Type> Mfx_Mod_<TypeMn> (<Type> x_value, <Type> y_value); ⚠️This routine returns the remainder of the division x_value / y_value if y_value is not zero.<Type> Mfx_Limit_<TypeMn> (<Type> value, <Type> min_value, <Type> max_value); ⚠️This routine limits the input value between Lower Bound and Upper Bound.<Type> Mfx_Minmax_<TypeMn> (<Type> value, <Type> minmax_value); ⚠️The routine limits a value to a minimum or a maximum that depends on the sign of the minmax_ value.<Type> Mfx_Min_<TypeMn> (<Type> x_value, <Type> y_value); ⚠️This routine returns the minimum between two values.<Type> Mfx_Max_<TypeMn> (<Type> x_value, <Type> y_value); ⚠️This routine returns the maximum between two values.<OutType> Mfx_ConvertP2_<InTypeMn>_<OutTypeMn> (<InType> x, sint16 a, sint16 c);The routine converts a scaled 16-bit integer to a scaled 8-bit integer.<OutType> Mfx_ConvertP2_<InTypeMn>_<OutTypeMn> (<InType> x, sint16 a, sint16 c);The routine converts a scaled 8-bit integer to a scaled 16-bit integer.<OutType> Mfx_ConvertP2_<InTypeMn>_<OutTypeMn> (<InType> x, sint16 a, sint16 c);The routine converts a scaled 32-bit integer to a scaled 16-bit integer.<OutType> Mfx_ConvertP2_<InTypeMn>_<OutTypeMn> (<InType> x, sint16 a, sint16 c);The routine converts a scaled 16-bit integer to a scaled 32-bit integer.<OutType> Mfx_MulP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> (<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);The routine multiplies two 16-bit integers with scaling factors set by input parameters.<OutType> Mfx_MulP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> (<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);The routine multiplies two 32-bit integers with scaling factors set by input parameters.<OutType> Mfx_DivP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> (<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);The routine divides two 16-bit integers with scaling factors set by input parameters.<OutType> Mfx_DivP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> (<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);The routine divides two 32-bit integers with scaling factors set by input parameters.<OutType> Mfx_AddP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> (<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);The routine adds two 16-bit integers with scaling factors set by input parameters.<OutType> Mfx_AddP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> (<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);The routine adds two 32-bit integers with scaling factors set by input parameters.<OutType> Mfx_SubP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> (<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);The routine subtracts two 16-bit integers with scaling factors set by input parameters.<OutType> Mfx_SubP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> (<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);The routine subtracts two 32-bit integers with scaling factors set by input parameters.<OutType> Mfx_AbsDiffP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> (<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);The routine subtracts and takes the absolute value of two 16-bit integers with scaling factors set by input parameters.<OutType> Mfx_AbsP2_s16_<OutTypeMn> (<InType1> x, sint16 a, sint16 c);The routine takes the absolute value of a 16-bit integer with scaling factors set by input parameters.<OutType> Mfx_AbsP2_s32_<OutTypeMn> (<InType1> x, sint16 a, sint16 c);The routine takes the absolute value of a 32-bit integer with scaling factors set by input parameters.void Mfx_GetVersionInfo (Std_VersionInfoType* versioninfo);Returns the version information of this library.sint8 Mfx_Sgn_s32_s8 (sint32 x_value);Signum function.
Anforderungen — Übersicht
SWS_Mfx_00001The MFX module shall provide the following files: • C files, Mfx_.SWS_Mfx_00006This routine makes an addition between the two arguments: Return-value = x_value + y_valueSWS_Mfx_00007Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00008Here is the list of implemented functions.SWS_Mfx_00010This routine makes a subtraction between the two arguments: Return-value = x_value - y_valueSWS_Mfx_00011Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00012Here is the list of implemented functions.SWS_Mfx_00014This routine computes the absolute value of a signed value: Return-value = | x_value |SWS_Mfx_00015Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00016Here is the list of implemented functions.SWS_Mfx_00018This routine computes the absolute value of a difference between 2 values: Return-value = | x_value - y_value |SWS_Mfx_00019Return-value shall be saturated to boundary values in the event of overflow.SWS_Mfx_00020Here is the list of implemented functions.SWS_Mfx_00022This routine makes a multiplication between the two arguments: Return-value = x_value * y_valueSWS_Mfx_00023Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00024Here is the list of implemented functions.SWS_Mfx_00026These routines make a division between the two arguments: Return-value = x_value / y_valueSWS_Mfx_00027Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00028The result after division by zero is defined by: * If x_value 0 then the function returns the maximum value of the output...SWS_Mfx_00030The result is rounded towards 0.SWS_Mfx_00031Here is the list of implemented functions.SWS_Mfx_00033These routines make a division between the two arguments: Return-value = x_value / y_valueSWS_Mfx_00034Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00035The result after division by zero is defined by: * If x_value 0 then the function returns the maximum value of the output...SWS_Mfx_00037The result is rounded off.SWS_Mfx_00038Here is the list of implemented functions.SWS_Mfx_00040These routines make a multiplication between the two arguments and a division by the third argument: Return-value = x_value *...SWS_Mfx_00041Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00042The result after division by zero is defined by: * If x_value*y_value 0 then the function returns the maximum value of the...SWS_Mfx_00044The result is rounded towards 0.SWS_Mfx_00045Here is the list of implemented functions.SWS_Mfx_00047These routines make a multiplication between the two arguments and a division by the third argument: Return-value = x_value *...SWS_Mfx_00048Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00049The result after division by zero is defined by: * If x_value*y_value 0 then the function returns the maximum value of the...SWS_Mfx_00051The result is rounded off.SWS_Mfx_00052Here is the list of implemented functions.SWS_Mfx_00054This routine makes a multiplication between the two arguments and applies a shift right defined by the third argument:...SWS_Mfx_00055We precise that for the shift right of a negative number, we always keep the bit of sign.SWS_Mfx_00056Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00057Here is the list of implemented functions.SWS_Mfx_00059This routine applies a shift left defined by the third argument to the first argument, and then makes a division by the second...SWS_Mfx_00060We precise that for the shift left of a negative number, we always keep the bit of sign.SWS_Mfx_00061Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00062The result after division by zero is defined by: * If x_value 0 then the function returns the maximum value of the output...SWS_Mfx_00064Here is the list of implemented functions.SWS_Mfx_00066If y_value is zero, the result is zero.SWS_Mfx_00068In other cases, Return-value = x_value mod y_valueSWS_Mfx_00069The sign of the remainder is the same than the sign of x_value.SWS_Mfx_00070Here is the list of implemented functions.SWS_Mfx_00074Return-value = min_value if value < min_valueSWS_Mfx_00075Return-value = max_value if value > max_valueSWS_Mfx_00076Return-value = value in the other casesSWS_Mfx_00079Here is the list of implemented functions.SWS_Mfx_00083minmax_value if minmax_value 0 and value > minmax_valueSWS_Mfx_00084minmax_value if minmax_value < 0 and value < minmax_valueSWS_Mfx_00085value in the other casesSWS_Mfx_00086Here is the list of implemented functions.SWS_Mfx_00091Return-value = x_value if x_value < y_valueSWS_Mfx_00092Return-value = y_value in the other caseSWS_Mfx_00094Return-value = x_value if x_value > y_valueSWS_Mfx_00095Return-value = y_value in the other caseSWS_Mfx_00096Here is the list of implemented functions.SWS_Mfx_00101The function returns the integer value of the fixed point conversion (C), determined by C = 2(c-a) * x.SWS_Mfx_00102Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00103If it is necessary to round the result of this equation, it is rounded toward zero.SWS_Mfx_00104Here is the list of implemented functions.SWS_Mfx_00107The function returns the integer value of the fixed point conversion (C), determined by C = 2(c-a) * x.SWS_Mfx_00108Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00109If it is necessary to round the result of this equation, it is rounded toward zero.SWS_Mfx_00110Here is the list of implemented functions.SWS_Mfx_00113The function returns the integer value of the fixed point conversion (C), determined by C = 2(c-a) * x.SWS_Mfx_00114Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00115If it is necessary to round the result of this equation, it is rounded toward zero.SWS_Mfx_00116Here is the list of implemented functions.SWS_Mfx_00119The function returns the integer value of the fixed point conversion (C), determined by C = 2(c-a) * x.SWS_Mfx_00120Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00121If it is necessary to round the result of this equation, it is rounded toward zero.SWS_Mfx_00122Here is the list of implemented functions.SWS_Mfx_00125The function returns the integer value of the fixed point multiplica- tion (C), determined by C = 2(c-b-a) * [x * y].SWS_Mfx_00126Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00127If it is necessary to round the result of this equation, it is rounded toward zero.SWS_Mfx_00128Here is the list of implemented functions.SWS_Mfx_00131The function returns the integer value of the fixed point multiplica- tion (C), determined by C = 2(c-b-a) * [x * y].SWS_Mfx_00132Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00133If it is necessary to round the result of this equation, it is rounded toward zero.SWS_Mfx_00134Here is the list of implemented functions.SWS_Mfx_00137The function returns the integer value of the fixed point quotient (C), determined by C = [2(c+b-a) * x] / y.SWS_Mfx_00138Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00139If the divisor, y, is zero, the result is defined by: * If x 0 then the function returns the maximum value of the output...SWS_Mfx_00141If it is necessary to round the result of this equation, it is rounded toward zero.SWS_Mfx_00142Here is the list of implemented functions.SWS_Mfx_00145The function returns the integer value of the fixed point quotient (C), determined by C = [2(c+b-a) * x] / y.SWS_Mfx_00146Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00147If the divisor, y, is zero, the result is defined by: * If x 0 then the function returns the maximum value of the output...SWS_Mfx_00149If it is necessary to round the result of this equation, it is rounded toward zero.SWS_Mfx_00150Here is the list of implemented functions.SWS_Mfx_00153The function returns the integer value of the fixed point sum (C), determined by a b: C = 2(c-a) * [x + (y * 2(a-b))], a...SWS_Mfx_00154Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00155If it is necessary to round the result of this equation, it is rounded toward zero.SWS_Mfx_00156Here is the list of implemented functions.SWS_Mfx_00159The function returns the integer value of the fixed point sum (C), determined by a b: C = 2(c-a) * [x + (y * 2(a-b))], a...SWS_Mfx_00160Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00161If it is necessary to round the result of this equation, it is rounded toward zero.SWS_Mfx_00162Here is the list of implemented functions.SWS_Mfx_00165The function returns the integer value of the fixed point difference (C), determined by a b: C = 2(c-a) * [x - (y *...SWS_Mfx_00166Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00167If it is necessary to round the result of this equation, it is rounded toward zero.SWS_Mfx_00168Here is the list of implemented functions.SWS_Mfx_00171The function returns the integer value of the fixed point difference (C), determined by a b: C = 2(c-a) * [x - (y *...SWS_Mfx_00172Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00173If it is necessary to round the result of this equation, it is rounded toward zero.SWS_Mfx_00174Here is the list of implemented functions.SWS_Mfx_00177The function returns the integer value of the fixed point absolute difference (C), determined by a b: C = 2(c-a) * |x - (y...SWS_Mfx_00178Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00179If it is necessary to round the result of this equation, it is rounded toward zero.SWS_Mfx_00180Here is the list of implemented functions.SWS_Mfx_00183The function returns the integer value of the fixed point absolute value (C), deter-mined by C = 2(c-a) * |x|.SWS_Mfx_00184Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00185If it is necessary to round the result of this equation, it is rounded toward zero.SWS_Mfx_00186Here is the list of implemented functions.SWS_Mfx_00189The function returns the integer value of the fixed point absolute value (C), deter-mined by C = 2(c-a) * |x|.SWS_Mfx_00190Return-value shall be saturated to boundary values in the event of negative or positive overflow.SWS_Mfx_00191If it is necessary to round the result of this equation, it is rounded toward zero.SWS_Mfx_00192Here is the list of implemented functions.SWS_Mfx_00200MFX library shall not require initialization phase.SWS_Mfx_00201MFX library shall not require a shutdown operation phase.SWS_Mfx_00203MFX API can be directly called from BSW modules or SWC.SWS_Mfx_00205Using a library should be documented.SWS_Mfx_00206The MFX library shall be implemented in a way that the code can be shared among callers in different memory partitions.SWS_Mfx_00207Usage of macros should be avoided.SWS_Mfx_00208A library function shall not call any BSW modules functions, e.SWS_Mfx_00209The library, written in C programming language, should conform to the MISRA C Standard.SWS_Mfx_00210Each AUTOSAR library Module implementation *.SWS_Mfx_00211Each AUTOSAR library Module implementation *.SWS_Mfx_00212All AUTOSAR library Modules should use the AUTOSAR data types (integers, boolean) instead of native C data types, unless this...SWS_Mfx_00213All AUTOSAR library Modules should avoid direct use of compiler and platform specific keyword, unless this library is clearly...SWS_Mfx_00214The standardized common published parameters as required by SRS_BSW_00402 in the SRS General on Basic Software Modules [chapter 3.SWS_Mfx_00216If source code for caller and callee of Mfx_ GetVersionInfo is avail- able, the Mfx library should realize Mfx_ GetVersionInfo...SWS_Mfx_00217The functions shall not call the DET for error notification.SWS_Mfx_00218The MFX library shall not have any configuration options that may affect the functional behavior of the routines.SWS_Mfx_00220Error detection: Function should check at runtime (both in pr o- duction and development code) the value of input parameters,...SWS_Mfx_00222These requirements are not applicable to this specification.SWS_Mfx_00223Extract the sign of an integer value.SWS_Mfx_00225Integral promotion has to be adhered to when implementing Mfx services.SWS_Mfx_00227Section 7.
Funktionen — Detailansicht
função Mfx_Add_<InTypeMn1><InTypeMn2>_<OutTypeMn> [SWS_Mfx_00002] 📄 PDF
<OutType> Mfx_Add_<InTypeMn1><InTypeMn2>_<OutTypeMn>(<InType1> x_value, <InType2> y_value);
This routine makes an addition between the two arguments.
função Mfx_Sub_<InTypeMn1><InTypeMn2>_<OutTypeMn> [SWS_Mfx_00009] 📄 PDF
<OutType> Mfx_Sub_<InTypeMn1><InTypeMn2>_<OutTypeMn>(<InType1> x_value, <InType2> y_value);
This routine makes a subtraction between the two arguments.
função Mfx_Abs_<InTypeMn1>_<OutTypeMn> [SWS_Mfx_00013] 📄 PDF
<OutType> Mfx_Abs_<InTypeMn1>_<OutTypeMn>(<InType1> x_value);
This routine computes the absolute value of a signed value.
função Mfx_AbsDiff_<InTypeMn1><InTypeMn2>_<OutTypeMn> [SWS_Mfx_00017] 📄 PDF
<OutType> Mfx_AbsDiff_<InTypeMn1><InTypeMn2>_<OutTypeMn>(<InType1> x_value, <InType2> y_value);
This routine computes the absolute value of a difference between 2 values.
função Mfx_Mul_<InTypeMn1><InTypeMn2>_<OutTypeMn> [SWS_Mfx_00021] 📄 PDF
<OutType> Mfx_Mul_<InTypeMn1><InTypeMn2>_<OutTypeMn>(<InType1> x_value, <InType2> y_value);
This routine makes a multiplication between the two arguments.
função Mfx_Div_<InTypeMn1><InTypeMn2>_<OutTypeMn> [SWS_Mfx_00025] 📄 PDF
<OutType> Mfx_Div_<InTypeMn1><InTypeMn2>_<OutTypeMn>(<InType1> x_value, <InType2> y_value);
These routines make a division between the two arguments.
função Mfx_RDiv_<InTypeMn1><InTypeMn2>_<OutTypeMn> [SWS_Mfx_00032] 📄 PDF
<OutType> Mfx_RDiv_<InTypeMn1><InTypeMn2>_<OutTypeMn>(<InType1> x_value, <InType2> y_value);
These routines make a division between the two arguments.
função Mfx_MulDiv_<InTypeMn1><InTypeMn2><InTypeMn3>_<OutTypeMn> [SWS_Mfx_00039] 📄 PDF
<OutType> Mfx_MulDiv_<InTypeMn1><InTypeMn2><InTypeMn3>_<OutTypeMn>(<InType1> x_value, <InType2> y_value, <InType3> z_value);
These routines make a multiplication between the two arguments and a division by the third argument.
função Mfx_RMulDiv_<InTypeMn1><InTypeMn2><InTypeMn3>_<OutTypeMn> [SWS_Mfx_00046] 📄 PDF
<OutType> Mfx_RMulDiv_<InTypeMn1><InTypeMn2><InTypeMn3>_<OutTypeMn>(<InType1> x_value, <InType2> y_value, <InType3> z_value);
These routines make a multiplication between the two arguments and a division by the third argument.
função Mfx_MulShRight_<InTypeMn1><InTypeMn2>_<OutTypeMn> [SWS_Mfx_00053] 📄 PDF
<OutType> Mfx_MulShRight_<InTypeMn1><InTypeMn2>_<OutTypeMn>(<InType1> x_value, <InType2> y_value, uint8 shift);
This routine makes a multiplication between the two arguments and applies a shift right defined by the third argument.
função Mfx_DivShLeft_<InTypeMn1><InTypeMn2>u8_<OutTypeMn> [SWS_Mfx_00058] 📄 PDF
<OutType> Mfx_DivShLeft_<InTypeMn1><InTypeMn2>u8_<OutTypeMn>(<InType1> x_value, <InType2> y_value, uint8 shift);
This routine applies a shift left defined by the third argument to the first argument, and then makes a division by the second argument.
função Mfx_Mod_<TypeMn> [SWS_Mfx_00065] 📄 PDF
<Type> Mfx_Mod_<TypeMn>(<Type> x_value, <Type> y_value); ⚠️
This routine returns the remainder of the division x_value / y_value if y_value is not zero.
função Mfx_Limit_<TypeMn> [SWS_Mfx_00073] 📄 PDF
<Type> Mfx_Limit_<TypeMn>(<Type> value, <Type> min_value, <Type> max_value); ⚠️
This routine limits the input value between Lower Bound and Upper Bound.
função Mfx_Minmax_<TypeMn> [SWS_Mfx_00082] 📄 PDF
<Type> Mfx_Minmax_<TypeMn>(<Type> value, <Type> minmax_value); ⚠️
The routine limits a value to a minimum or a maximum that depends on the sign of the minmax_ value.
função Mfx_Min_<TypeMn> [SWS_Mfx_00090] 📄 PDF
<Type> Mfx_Min_<TypeMn>(<Type> x_value, <Type> y_value); ⚠️
This routine returns the minimum between two values.
função Mfx_Max_<TypeMn> [SWS_Mfx_00093] 📄 PDF
<Type> Mfx_Max_<TypeMn>(<Type> x_value, <Type> y_value); ⚠️
This routine returns the maximum between two values.
função Mfx_ConvertP2_<InTypeMn>_<OutTypeMn> [SWS_Mfx_00100] 📄 PDF
<OutType> Mfx_ConvertP2_<InTypeMn>_<OutTypeMn>(<InType> x, sint16 a, sint16 c);
The routine converts a scaled 16-bit integer to a scaled 8-bit integer.
função Mfx_ConvertP2_<InTypeMn>_<OutTypeMn> [SWS_Mfx_00106] 📄 PDF
<OutType> Mfx_ConvertP2_<InTypeMn>_<OutTypeMn>(<InType> x, sint16 a, sint16 c);
The routine converts a scaled 8-bit integer to a scaled 16-bit integer.
função Mfx_ConvertP2_<InTypeMn>_<OutTypeMn> [SWS_Mfx_00112] 📄 PDF
<OutType> Mfx_ConvertP2_<InTypeMn>_<OutTypeMn>(<InType> x, sint16 a, sint16 c);
The routine converts a scaled 32-bit integer to a scaled 16-bit integer.
função Mfx_ConvertP2_<InTypeMn>_<OutTypeMn> [SWS_Mfx_00118] 📄 PDF
<OutType> Mfx_ConvertP2_<InTypeMn>_<OutTypeMn>(<InType> x, sint16 a, sint16 c);
The routine converts a scaled 16-bit integer to a scaled 32-bit integer.
função Mfx_MulP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> [SWS_Mfx_00124] 📄 PDF
<OutType> Mfx_MulP2_<InTypeMn1><InTypeMn2>_<OutTypeMn>(<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);
The routine multiplies two 16-bit integers with scaling factors set by input parameters.
função Mfx_MulP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> [SWS_Mfx_00130] 📄 PDF
<OutType> Mfx_MulP2_<InTypeMn1><InTypeMn2>_<OutTypeMn>(<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);
The routine multiplies two 32-bit integers with scaling factors set by input parameters.
função Mfx_DivP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> [SWS_Mfx_00136] 📄 PDF
<OutType> Mfx_DivP2_<InTypeMn1><InTypeMn2>_<OutTypeMn>(<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);
The routine divides two 16-bit integers with scaling factors set by input parameters.
função Mfx_DivP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> [SWS_Mfx_00144] 📄 PDF
<OutType> Mfx_DivP2_<InTypeMn1><InTypeMn2>_<OutTypeMn>(<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);
The routine divides two 32-bit integers with scaling factors set by input parameters.
função Mfx_AddP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> [SWS_Mfx_00152] 📄 PDF
<OutType> Mfx_AddP2_<InTypeMn1><InTypeMn2>_<OutTypeMn>(<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);
The routine adds two 16-bit integers with scaling factors set by input parameters.
função Mfx_AddP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> [SWS_Mfx_00158] 📄 PDF
<OutType> Mfx_AddP2_<InTypeMn1><InTypeMn2>_<OutTypeMn>(<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);
The routine adds two 32-bit integers with scaling factors set by input parameters.
função Mfx_SubP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> [SWS_Mfx_00164] 📄 PDF
<OutType> Mfx_SubP2_<InTypeMn1><InTypeMn2>_<OutTypeMn>(<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);
The routine subtracts two 16-bit integers with scaling factors set by input parameters.
função Mfx_SubP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> [SWS_Mfx_00170] 📄 PDF
<OutType> Mfx_SubP2_<InTypeMn1><InTypeMn2>_<OutTypeMn>(<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);
The routine subtracts two 32-bit integers with scaling factors set by input parameters.
função Mfx_AbsDiffP2_<InTypeMn1><InTypeMn2>_<OutTypeMn> [SWS_Mfx_00176] 📄 PDF
<OutType> Mfx_AbsDiffP2_<InTypeMn1><InTypeMn2>_<OutTypeMn>(<InType1> x, <InType2> y, sint16 a, sint16 b, sint16 c);
The routine subtracts and takes the absolute value of two 16-bit integers with scaling factors set by input parameters.
função Mfx_AbsP2_s16_<OutTypeMn> [SWS_Mfx_00182] 📄 PDF
<OutType> Mfx_AbsP2_s16_<OutTypeMn>(<InType1> x, sint16 a, sint16 c);
The routine takes the absolute value of a 16-bit integer with scaling factors set by input parameters.
função Mfx_AbsP2_s32_<OutTypeMn> [SWS_Mfx_00188] 📄 PDF
<OutType> Mfx_AbsP2_s32_<OutTypeMn>(<InType1> x, sint16 a, sint16 c);
The routine takes the absolute value of a 32-bit integer with scaling factors set by input parameters.
função Mfx_GetVersionInfo [SWS_Mfx_00215] 📄 PDF
void Mfx_GetVersionInfo(Std_VersionInfoType* versioninfo);
Returns the version information of this library.
função Mfx_Sgn_s32_s8 [SWS_Mfx_91001] 📄 PDF
sint8 Mfx_Sgn_s32_s8(sint32 x_value);
Signum function. Extract the sign of an integer value.
requirement SWS_Mfx_00001 [SWS_Mfx_00001] 📄 PDF
The MFX module shall provide the following files: • C files, Mfx_<name>.c used to implement the library. All C files shall be prefixed with 'Mfx'.
requirement SWS_Mfx_00006 [SWS_Mfx_00006] 📄 PDF
This routine makes an addition between the two arguments: Return-value = x_value + y_value
requirement SWS_Mfx_00007 [SWS_Mfx_00007] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00008 [SWS_Mfx_00008] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00010 [SWS_Mfx_00010] 📄 PDF
This routine makes a subtraction between the two arguments: Return-value = x_value - y_value
requirement SWS_Mfx_00011 [SWS_Mfx_00011] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00012 [SWS_Mfx_00012] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00014 [SWS_Mfx_00014] 📄 PDF
This routine computes the absolute value of a signed value: Return-value = | x_value |
requirement SWS_Mfx_00015 [SWS_Mfx_00015] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00016 [SWS_Mfx_00016] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00018 [SWS_Mfx_00018] 📄 PDF
This routine computes the absolute value of a difference between 2 values: Return-value = | x_value - y_value |
requirement SWS_Mfx_00019 [SWS_Mfx_00019] 📄 PDF
Return-value shall be saturated to boundary values in the event of overflow.
requirement SWS_Mfx_00020 [SWS_Mfx_00020] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00022 [SWS_Mfx_00022] 📄 PDF
This routine makes a multiplication between the two arguments: Return-value = x_value * y_value
requirement SWS_Mfx_00023 [SWS_Mfx_00023] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00024 [SWS_Mfx_00024] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00026 [SWS_Mfx_00026] 📄 PDF
These routines make a division between the two arguments: Return-value = x_value / y_value
requirement SWS_Mfx_00027 [SWS_Mfx_00027] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00028 [SWS_Mfx_00028] 📄 PDF
The result after division by zero is defined by: * If x_value 0 then the function returns the maximum value of the output type * If x_value < 0 then the function returns the minimum value of the output type
requirement SWS_Mfx_00030 [SWS_Mfx_00030] 📄 PDF
The result is rounded towards 0.
requirement SWS_Mfx_00031 [SWS_Mfx_00031] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00033 [SWS_Mfx_00033] 📄 PDF
These routines make a division between the two arguments: Return-value = x_value / y_value
requirement SWS_Mfx_00034 [SWS_Mfx_00034] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00035 [SWS_Mfx_00035] 📄 PDF
The result after division by zero is defined by: * If x_value 0 then the function returns the maximum value of the output type * If x_value < 0 then the function returns the minimum value of the output type
requirement SWS_Mfx_00037 [SWS_Mfx_00037] 📄 PDF
The result is rounded off.
requirement SWS_Mfx_00038 [SWS_Mfx_00038] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00040 [SWS_Mfx_00040] 📄 PDF
These routines make a multiplication between the two arguments and a division by the third argument: Return-value = x_value * y_value / z_value
requirement SWS_Mfx_00041 [SWS_Mfx_00041] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00042 [SWS_Mfx_00042] 📄 PDF
The result after division by zero is defined by: * If x_value*y_value 0 then the function returns the maximum value of the output type * If x_value*y_value < 0 then the function returns the minimum value of the output type
requirement SWS_Mfx_00044 [SWS_Mfx_00044] 📄 PDF
The result is rounded towards 0.
requirement SWS_Mfx_00045 [SWS_Mfx_00045] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00047 [SWS_Mfx_00047] 📄 PDF
These routines make a multiplication between the two arguments and a division by the third argument: Return-value = x_value * y_value / z_value
requirement SWS_Mfx_00048 [SWS_Mfx_00048] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00049 [SWS_Mfx_00049] 📄 PDF
The result after division by zero is defined by: * If x_value*y_value 0 then the function returns the maximum value of the output type * If x_value*y_value < 0 then the function returns the minimum value of the output type
requirement SWS_Mfx_00051 [SWS_Mfx_00051] 📄 PDF
The result is rounded off.
requirement SWS_Mfx_00052 [SWS_Mfx_00052] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00054 [SWS_Mfx_00054] 📄 PDF
This routine makes a multiplication between the two arguments and applies a shift right defined by the third argument: Return-value = (x_value * y_value) >> shift
requirement SWS_Mfx_00055 [SWS_Mfx_00055] 📄 PDF
We precise that for the shift right of a negative number, we always keep the bit of sign.
requirement SWS_Mfx_00056 [SWS_Mfx_00056] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00057 [SWS_Mfx_00057] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00059 [SWS_Mfx_00059] 📄 PDF
This routine applies a shift left defined by the third argument to the first argument, and then makes a division by the second argument: Return-value = (x_value << shift) / y_value
requirement SWS_Mfx_00060 [SWS_Mfx_00060] 📄 PDF
We precise that for the shift left of a negative number, we always keep the bit of sign.
requirement SWS_Mfx_00061 [SWS_Mfx_00061] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00062 [SWS_Mfx_00062] 📄 PDF
The result after division by zero is defined by: * If x_value 0 then the function returns the maximum value of the output type * If x_value < 0 then the function returns the minimum value of the output type
requirement SWS_Mfx_00064 [SWS_Mfx_00064] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00066 [SWS_Mfx_00066] 📄 PDF
If y_value is zero, the result is zero.
requirement SWS_Mfx_00068 [SWS_Mfx_00068] 📄 PDF
In other cases, Return-value = x_value mod y_value
requirement SWS_Mfx_00069 [SWS_Mfx_00069] 📄 PDF
The sign of the remainder is the same than the sign of x_value.
requirement SWS_Mfx_00070 [SWS_Mfx_00070] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00074 [SWS_Mfx_00074] 📄 PDF
Return-value = min_value if value < min_value
requirement SWS_Mfx_00075 [SWS_Mfx_00075] 📄 PDF
Return-value = max_value if value > max_value
requirement SWS_Mfx_00076 [SWS_Mfx_00076] 📄 PDF
Return-value = value in the other cases
requirement SWS_Mfx_00079 [SWS_Mfx_00079] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00083 [SWS_Mfx_00083] 📄 PDF
minmax_value if minmax_value 0 and value > minmax_value
requirement SWS_Mfx_00084 [SWS_Mfx_00084] 📄 PDF
minmax_value if minmax_value < 0 and value < minmax_value
requirement SWS_Mfx_00085 [SWS_Mfx_00085] 📄 PDF
value in the other cases
requirement SWS_Mfx_00086 [SWS_Mfx_00086] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00091 [SWS_Mfx_00091] 📄 PDF
Return-value = x_value if x_value < y_value
requirement SWS_Mfx_00092 [SWS_Mfx_00092] 📄 PDF
Return-value = y_value in the other case
requirement SWS_Mfx_00094 [SWS_Mfx_00094] 📄 PDF
Return-value = x_value if x_value > y_value
requirement SWS_Mfx_00095 [SWS_Mfx_00095] 📄 PDF
Return-value = y_value in the other case
requirement SWS_Mfx_00096 [SWS_Mfx_00096] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00101 [SWS_Mfx_00101] 📄 PDF
The function returns the integer value of the fixed point conversion (C), determined by C = 2(c-a) * x.
requirement SWS_Mfx_00102 [SWS_Mfx_00102] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00103 [SWS_Mfx_00103] 📄 PDF
If it is necessary to round the result of this equation, it is rounded toward zero.
requirement SWS_Mfx_00104 [SWS_Mfx_00104] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00107 [SWS_Mfx_00107] 📄 PDF
The function returns the integer value of the fixed point conversion (C), determined by C = 2(c-a) * x.
requirement SWS_Mfx_00108 [SWS_Mfx_00108] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00109 [SWS_Mfx_00109] 📄 PDF
If it is necessary to round the result of this equation, it is rounded toward zero.
requirement SWS_Mfx_00110 [SWS_Mfx_00110] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00113 [SWS_Mfx_00113] 📄 PDF
The function returns the integer value of the fixed point conversion (C), determined by C = 2(c-a) * x.
requirement SWS_Mfx_00114 [SWS_Mfx_00114] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00115 [SWS_Mfx_00115] 📄 PDF
If it is necessary to round the result of this equation, it is rounded toward zero.
requirement SWS_Mfx_00116 [SWS_Mfx_00116] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00119 [SWS_Mfx_00119] 📄 PDF
The function returns the integer value of the fixed point conversion (C), determined by C = 2(c-a) * x.
requirement SWS_Mfx_00120 [SWS_Mfx_00120] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00121 [SWS_Mfx_00121] 📄 PDF
If it is necessary to round the result of this equation, it is rounded toward zero.
requirement SWS_Mfx_00122 [SWS_Mfx_00122] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00125 [SWS_Mfx_00125] 📄 PDF
The function returns the integer value of the fixed point multiplica- tion (C), determined by C = 2(c-b-a) * [x * y].
requirement SWS_Mfx_00126 [SWS_Mfx_00126] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00127 [SWS_Mfx_00127] 📄 PDF
If it is necessary to round the result of this equation, it is rounded toward zero.
requirement SWS_Mfx_00128 [SWS_Mfx_00128] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00131 [SWS_Mfx_00131] 📄 PDF
The function returns the integer value of the fixed point multiplica- tion (C), determined by C = 2(c-b-a) * [x * y].
requirement SWS_Mfx_00132 [SWS_Mfx_00132] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00133 [SWS_Mfx_00133] 📄 PDF
If it is necessary to round the result of this equation, it is rounded toward zero.
requirement SWS_Mfx_00134 [SWS_Mfx_00134] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00137 [SWS_Mfx_00137] 📄 PDF
The function returns the integer value of the fixed point quotient (C), determined by C = [2(c+b-a) * x] / y.
requirement SWS_Mfx_00138 [SWS_Mfx_00138] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00139 [SWS_Mfx_00139] 📄 PDF
If the divisor, y, is zero, the result is defined by: * If x 0 then the function returns the maximum value of the output type * If x < 0 then the function returns the minimum value of the output type
requirement SWS_Mfx_00141 [SWS_Mfx_00141] 📄 PDF
If it is necessary to round the result of this equation, it is rounded toward zero.
requirement SWS_Mfx_00142 [SWS_Mfx_00142] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00145 [SWS_Mfx_00145] 📄 PDF
The function returns the integer value of the fixed point quotient (C), determined by C = [2(c+b-a) * x] / y.
requirement SWS_Mfx_00146 [SWS_Mfx_00146] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00147 [SWS_Mfx_00147] 📄 PDF
If the divisor, y, is zero, the result is defined by: * If x 0 then the function returns the maximum value of the output type * If x < 0 then the function returns the minimum value of the output type
requirement SWS_Mfx_00149 [SWS_Mfx_00149] 📄 PDF
If it is necessary to round the result of this equation, it is rounded toward zero.
requirement SWS_Mfx_00150 [SWS_Mfx_00150] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00153 [SWS_Mfx_00153] 📄 PDF
The function returns the integer value of the fixed point sum (C), determined by a b: C = 2(c-a) * [x + (y * 2(a-b))], a < b: C = 2(c-b) * [(x * 2(b-a)) + y].
requirement SWS_Mfx_00154 [SWS_Mfx_00154] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00155 [SWS_Mfx_00155] 📄 PDF
If it is necessary to round the result of this equation, it is rounded toward zero.
requirement SWS_Mfx_00156 [SWS_Mfx_00156] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00159 [SWS_Mfx_00159] 📄 PDF
The function returns the integer value of the fixed point sum (C), determined by a b: C = 2(c-a) * [x + (y * 2(a-b))], a < b: C = 2(c-b) * [(x * 2(b-a)) + y]
requirement SWS_Mfx_00160 [SWS_Mfx_00160] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00161 [SWS_Mfx_00161] 📄 PDF
If it is necessary to round the result of this equation, it is rounded toward zero.
requirement SWS_Mfx_00162 [SWS_Mfx_00162] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00165 [SWS_Mfx_00165] 📄 PDF
The function returns the integer value of the fixed point difference (C), determined by a b: C = 2(c-a) * [x - (y * 2(a-b))], a < b: C = 2(c-b) * [(x * 2(b-a)) - y]
requirement SWS_Mfx_00166 [SWS_Mfx_00166] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00167 [SWS_Mfx_00167] 📄 PDF
If it is necessary to round the result of this equation, it is rounded toward zero.
requirement SWS_Mfx_00168 [SWS_Mfx_00168] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00171 [SWS_Mfx_00171] 📄 PDF
The function returns the integer value of the fixed point difference (C), determined by a b: C = 2(c-a) * [x - (y * 2(a-b))], a < b: C = 2(c-b) * [(x * 2(b-a)) - y].
requirement SWS_Mfx_00172 [SWS_Mfx_00172] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00173 [SWS_Mfx_00173] 📄 PDF
If it is necessary to round the result of this equation, it is rounded toward zero.
requirement SWS_Mfx_00174 [SWS_Mfx_00174] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00177 [SWS_Mfx_00177] 📄 PDF
The function returns the integer value of the fixed point absolute difference (C), determined by a b: C = 2(c-a) * |x - (y * 2(a-b))|, a < b: C = 2(c-b) * |(x * 2(b-a)) - y|.
requirement SWS_Mfx_00178 [SWS_Mfx_00178] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00179 [SWS_Mfx_00179] 📄 PDF
If it is necessary to round the result of this equation, it is rounded toward zero.
requirement SWS_Mfx_00180 [SWS_Mfx_00180] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00183 [SWS_Mfx_00183] 📄 PDF
The function returns the integer value of the fixed point absolute value (C), deter-mined by C = 2(c-a) * |x|.
requirement SWS_Mfx_00184 [SWS_Mfx_00184] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00185 [SWS_Mfx_00185] 📄 PDF
If it is necessary to round the result of this equation, it is rounded toward zero.
requirement SWS_Mfx_00186 [SWS_Mfx_00186] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00189 [SWS_Mfx_00189] 📄 PDF
The function returns the integer value of the fixed point absolute value (C), deter-mined by C = 2(c-a) * |x|.
requirement SWS_Mfx_00190 [SWS_Mfx_00190] 📄 PDF
Return-value shall be saturated to boundary values in the event of negative or positive overflow.
requirement SWS_Mfx_00191 [SWS_Mfx_00191] 📄 PDF
If it is necessary to round the result of this equation, it is rounded toward zero.
requirement SWS_Mfx_00192 [SWS_Mfx_00192] 📄 PDF
Here is the list of implemented functions.
requirement SWS_Mfx_00200 [SWS_Mfx_00200] 📄 PDF
MFX library shall not require initialization phase. A Library func- tion may be called at the very first step of ECU initialization, e.g. even by the OS or EcuM, thus the library shall be ready.
requirement SWS_Mfx_00201 [SWS_Mfx_00201] 📄 PDF
MFX library shall not require a shutdown operation phase.
requirement SWS_Mfx_00203 [SWS_Mfx_00203] 📄 PDF
MFX API can be directly called from BSW modules or SWC. No port definition is required. It is a pure function call.
requirement SWS_Mfx_00205 [SWS_Mfx_00205] 📄 PDF
Using a library should be documented. if a BSW module or a SWC uses a Library, the developer should add an Implementation-DependencyOnAr- tifact in the BSW/SWC template. minVersion and maxVersion parameters correspond to the supplier version. In case of AUTOSAR library, these parameters may be left empty because a SWC or BSW module may rely on a library behaviour, not on a supplier implementation. However, the SWC or BSW modules shall be compatible with the AUTOSAR platform where they are integrated.
requirement SWS_Mfx_00206 [SWS_Mfx_00206] 📄 PDF
The MFX library shall be implemented in a way that the code can be shared among callers in different memory partitions.
requirement SWS_Mfx_00207 [SWS_Mfx_00207] 📄 PDF
Usage of macros should be avoided. The function should be de- clared as function or inline function. Macro #define should not be used.
requirement SWS_Mfx_00208 [SWS_Mfx_00208] 📄 PDF
A library function shall not call any BSW modules functions, e.g. the DET. A library function can call other library functions. Because a library function shall be re-entrant. But other BSW modules functions may not be re-entrant.
requirement SWS_Mfx_00209 [SWS_Mfx_00209] 📄 PDF
The library, written in C programming language, should conform to the MISRA C Standard. Please refer to SWS_BSW_00115 for more details.
requirement SWS_Mfx_00210 [SWS_Mfx_00210] 📄 PDF
Each AUTOSAR library Module implementation <library>*.c and <library>*.h shall map their code to memory sections using the AUTOSAR memory mapping mechanism.
requirement SWS_Mfx_00211 [SWS_Mfx_00211] 📄 PDF
Each AUTOSAR library Module implementation <library>*.c, that uses AUTOSAR integer data types and/or the standard return, shall include the header file Std_Types.h.
requirement SWS_Mfx_00212 [SWS_Mfx_00212] 📄 PDF
All AUTOSAR library Modules should use the AUTOSAR data types (integers, boolean) instead of native C data types, unless this library is clearly identified to be compliant only with a platform.
requirement SWS_Mfx_00213 [SWS_Mfx_00213] 📄 PDF
All AUTOSAR library Modules should avoid direct use of compiler and platform specific keyword, unless this library is clearly identified to be compliant only with a platform.
requirement SWS_Mfx_00214 [SWS_Mfx_00214] 📄 PDF
The standardized common published parameters as required by SRS_BSW_00402 in the SRS General on Basic Software Modules [chapter 3.1] shall be published within the header file of this module and need to be provided in the BSW Module De- scription. The according module abbreviation can be found in the List of Basic Software Modules [chapter 3.1] .
requirement SWS_Mfx_00216 [SWS_Mfx_00216] 📄 PDF
If source code for caller and callee of Mfx_ GetVersionInfo is avail- able, the Mfx library should realize Mfx_ GetVersionInfo as a macro defined in the module's header file.
requirement SWS_Mfx_00217 [SWS_Mfx_00217] 📄 PDF
The functions shall not call the DET for error notification .
requirement SWS_Mfx_00218 [SWS_Mfx_00218] 📄 PDF
The MFX library shall not have any configuration options that may affect the functional behavior of the routines. I.e. for a given set of input parameters, the outputs shall be always the same. For example, the returned value in case of error shall not be configurable.
requirement SWS_Mfx_00220 [SWS_Mfx_00220] 📄 PDF
Error detection: Function should check at runtime (both in pr o- duction and development code) the value of input parameters, especially cases where erroneous value can bring to fatal error or unpredictable result, if they have the va l ues allowed by the function specification. All the error cases shall be listed in SWS and the function should return a spec i fied value (in SWS) that is not configurable. This value is dependant of the function and the error case so it is determined case by case. If values passed to the routines are not valid and out o f the function specification, then such error are not detected. E.g. If passed value > 32 for a bit - position or a negative number of samples of an axis distribution is passed to a routine.
requirement SWS_Mfx_00222 [SWS_Mfx_00222] 📄 PDF
These requirements are not applicable to this specification.
requirement SWS_Mfx_00223 [SWS_Mfx_00223] 📄 PDF
Extract the sign of an integer value. It is defined as follows: Return-value = -1, if x_value < 0; 0, if x_value == 0; 1, if x_value > 0
requirement SWS_Mfx_00225 [SWS_Mfx_00225] 📄 PDF
Integral promotion has to be adhered to when implementing Mfx services. Thus, to obtain maximal precision, intermediate results shall not be limited.
requirement SWS_Mfx_00227 [SWS_Mfx_00227] 📄 PDF
Section 7.1 "Error Handling" of the document "General Specifica- tion of Basic Software Modules" describes the error handling of the Basic Software in detail. Above all, it constitutes a classification scheme consisting of five error types which may occur in BSW modules.
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/CP_MOD_Mfx- Status
- unspecified
- Version
AUTOSAR/AP/record/CP_MOD_Mfx@rel:R20-11#df83b55f- Content hash
df83b55f- Source
- https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_MFXLibrary.pdf#nameddest=SWS_Mfx_00002