\XtoCBlock{AdaptiveNotch}
\label{block:AdaptiveNotch}
\begin{figure}[H]\includegraphics{AdaptiveNotch}\end{figure} 
Notch filter with variable notch frequency

\begin{XtoCtabular}{Inports}
In & Input signal\\
\hline
n & Speed input = notch frequency\\
\hline
\end{XtoCtabular}


\begin{XtoCtabular}{Outports}
Out & Filtered output signal\\
\hline
\end{XtoCtabular}

\begin{XtoCMaskParamTabular}{Mask Parameters}
Q & 1 & Q-Factor of the notch filter\\
\hline
n\_thresh & 2 & Speed threshold for activating the filter\\
\hline
n\_max & 3 & Maximum revolutions per minute

(Not used in floating point implementations)\\
\hline
p & 4 & Number of pole pairs\\
\hline
ts\_fact & 5 & Multiplication factor of base sampling time (in integer format)\\
\hline
method & 6 & Discretization method\\
\hline
\end{XtoCMaskParamTabular}

\ifdefined \XcOverviewDocu
% omit optional documentation file
\else
% include optional documentation file
\IfFileExists{\XcHomePath/Library/Filter/Doc/AdaptiveNotch_Info.tex}
  {\subsubsection*{Description:}
   \input{\XcHomePath/Library/Filter/Doc/AdaptiveNotch_Info.tex}}
  {\vspace{1ex}}
\fi

\subsubsection*{Implementations:}
\begin{tabular}{l l}
\textbf{FiP16} & 16 Bit Fixed Point Implementation\\
\textbf{FiP32} & 32 Bit Fixed Point Implementation\\
\textbf{Float32} & 32 Bit Floating Point Implementation\\
\textbf{Float64} & 64 Bit Floating Point Implementation\\
\end{tabular}

\ifdefined \XcOverviewDocu
% omit implementation details and test reports
\else
\XtoCImplementation{FiP16}
\nopagebreak[0]

16 Bit Fixed Point Implementation

\begin{XtoCtabular}{Inports Data Type}
In & int16\\
\hline
n & int16\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & int16\\
\hline
\end{XtoCtabular}

\XtoCImplementation{FiP32}
\nopagebreak[0]

32 Bit Fixed Point Implementation

\begin{XtoCtabular}{Inports Data Type}
In & int32\\
\hline
n & int32\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & int32\\
\hline
\end{XtoCtabular}

\XtoCImplementation{Float32}
\nopagebreak[0]

32 Bit Floating Point Implementation

\begin{XtoCtabular}{Inports Data Type}
In & float32\\
\hline
n & float32\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & float32\\
\hline
\end{XtoCtabular}

\XtoCImplementation{Float64}
\nopagebreak[0]

64 Bit Floating Point Implementation

\begin{XtoCtabular}{Inports Data Type}
In & float64\\
\hline
n & float64\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & float64\\
\hline
\end{XtoCtabular}

\ifdefined \AddTestReports
\InputIfFileExists{\XcHomePath/Library/Filter/Doc/Test-Results/Test_AdaptiveNotch_FiP16.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/Filter/Doc/Test-Results/Test_AdaptiveNotch_FiP32.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/Filter/Doc/Test-Results/Test_AdaptiveNotch_Float32.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/Filter/Doc/Test-Results/Test_AdaptiveNotch_Float64.tex}{}{}
\fi
\fi
