\section{aversive\_\-10-03-12/modules/debug/error/error.c File Reference}
\label{error_8c}\index{aversive\_\-10-03-12/modules/debug/error/error.c@{aversive\_\-10-03-12/modules/debug/error/error.c}}
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$avr/io.h$>$}\par
{\tt \#include $<$aversive.h$>$}\par
{\tt \#include $<$aversive/error.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf error\_\-init} (void)
\item 
struct {\bf error} {\bf error\_\-generate} (uint8\_\-t num, uint8\_\-t severity, PGM\_\-P t, PGM\_\-P f, uint16\_\-t l)
\item 
void {\bf error\_\-register\_\-emerg} (void($\ast$f)(struct {\bf error} $\ast$,...))
\item 
void {\bf error\_\-register\_\-error} (void($\ast$f)(struct {\bf error} $\ast$,...))
\item 
void {\bf error\_\-register\_\-warning} (void($\ast$f)(struct {\bf error} $\ast$,...))
\item 
void {\bf error\_\-register\_\-notice} (void($\ast$f)(struct {\bf error} $\ast$,...))
\item 
void {\bf error\_\-register\_\-debug} (void($\ast$f)(struct {\bf error} $\ast$,...))
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
struct {\bf error\_\-fct} {\bf g\_\-error\_\-fct}
\end{CompactItemize}


\subsection{Function Documentation}
\index{error.c@{error.c}!error\_\-generate@{error\_\-generate}}
\index{error\_\-generate@{error\_\-generate}!error.c@{error.c}}
\subsubsection[error\_\-generate]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf error} error\_\-generate (uint8\_\-t {\em num}, \/  uint8\_\-t {\em severity}, \/  PGM\_\-P {\em t}, \/  PGM\_\-P {\em f}, \/  uint16\_\-t {\em l})\hspace{0.3cm}{\tt  [read]}}\label{error_8c_8f4143525729b852a2c80764bfdd6eb5}




Definition at line 44 of file error.c.

References error::err\_\-num, parse\_\-symbols::f, error::file, parse\_\-symbols::l, error::line, error::severity, and error::text.\index{error.c@{error.c}!error\_\-init@{error\_\-init}}
\index{error\_\-init@{error\_\-init}!error.c@{error.c}}
\subsubsection[error\_\-init]{\setlength{\rightskip}{0pt plus 5cm}void error\_\-init (void)}\label{error_8c_65aba5fa3a0a0c2b92a7fd63b05d433e}


All fcts pointers to NULL 

Definition at line 35 of file error.c.

References g\_\-error\_\-fct, IRQ\_\-LOCK, and IRQ\_\-UNLOCK.\index{error.c@{error.c}!error\_\-register\_\-debug@{error\_\-register\_\-debug}}
\index{error\_\-register\_\-debug@{error\_\-register\_\-debug}!error.c@{error.c}}
\subsubsection[error\_\-register\_\-debug]{\setlength{\rightskip}{0pt plus 5cm}void error\_\-register\_\-debug (void($\ast$)(struct {\bf error} $\ast$,...) {\em f})}\label{error_8c_d972f00321483913eea7b0ed563ce6dc}


Register log function for DEBUG level 

Definition at line 103 of file error.c.

References error\_\-fct::debug, parse\_\-symbols::f, g\_\-error\_\-fct, IRQ\_\-LOCK, and IRQ\_\-UNLOCK.

Referenced by main().\index{error.c@{error.c}!error\_\-register\_\-emerg@{error\_\-register\_\-emerg}}
\index{error\_\-register\_\-emerg@{error\_\-register\_\-emerg}!error.c@{error.c}}
\subsubsection[error\_\-register\_\-emerg]{\setlength{\rightskip}{0pt plus 5cm}void error\_\-register\_\-emerg (void($\ast$)(struct {\bf error} $\ast$,...) {\em f})}\label{error_8c_28d5c7dd7bac56c85dd0d486c759f377}


Register log function for EMERG level 

Definition at line 67 of file error.c.

References error\_\-fct::emerg, parse\_\-symbols::f, g\_\-error\_\-fct, IRQ\_\-LOCK, and IRQ\_\-UNLOCK.

Referenced by main().\index{error.c@{error.c}!error\_\-register\_\-error@{error\_\-register\_\-error}}
\index{error\_\-register\_\-error@{error\_\-register\_\-error}!error.c@{error.c}}
\subsubsection[error\_\-register\_\-error]{\setlength{\rightskip}{0pt plus 5cm}void error\_\-register\_\-error (void($\ast$)(struct {\bf error} $\ast$,...) {\em f})}\label{error_8c_9b30e7010645dd79602f440acb56fa13}


Register log function for ERROR level 

Definition at line 76 of file error.c.

References error\_\-fct::error, parse\_\-symbols::f, g\_\-error\_\-fct, IRQ\_\-LOCK, and IRQ\_\-UNLOCK.

Referenced by main().\index{error.c@{error.c}!error\_\-register\_\-notice@{error\_\-register\_\-notice}}
\index{error\_\-register\_\-notice@{error\_\-register\_\-notice}!error.c@{error.c}}
\subsubsection[error\_\-register\_\-notice]{\setlength{\rightskip}{0pt plus 5cm}void error\_\-register\_\-notice (void($\ast$)(struct {\bf error} $\ast$,...) {\em f})}\label{error_8c_88b1cddf1c5afe6cb0c59459b859eac2}


Register log function for NOTICE level 

Definition at line 94 of file error.c.

References parse\_\-symbols::f, g\_\-error\_\-fct, IRQ\_\-LOCK, IRQ\_\-UNLOCK, and error\_\-fct::notice.

Referenced by main().\index{error.c@{error.c}!error\_\-register\_\-warning@{error\_\-register\_\-warning}}
\index{error\_\-register\_\-warning@{error\_\-register\_\-warning}!error.c@{error.c}}
\subsubsection[error\_\-register\_\-warning]{\setlength{\rightskip}{0pt plus 5cm}void error\_\-register\_\-warning (void($\ast$)(struct {\bf error} $\ast$,...) {\em f})}\label{error_8c_63ab530e7a20b0a43472d20067e641ce}


Register log function for WARNING level 

Definition at line 85 of file error.c.

References parse\_\-symbols::f, g\_\-error\_\-fct, IRQ\_\-LOCK, IRQ\_\-UNLOCK, and error\_\-fct::warning.

Referenced by main().

\subsection{Variable Documentation}
\index{error.c@{error.c}!g\_\-error\_\-fct@{g\_\-error\_\-fct}}
\index{g\_\-error\_\-fct@{g\_\-error\_\-fct}!error.c@{error.c}}
\subsubsection[g\_\-error\_\-fct]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf error\_\-fct} {\bf g\_\-error\_\-fct}}\label{error_8c_d8a8984248fe1027324e8b89c2cfc457}




Definition at line 32 of file error.c.

Referenced by error\_\-init(), error\_\-register\_\-debug(), error\_\-register\_\-emerg(), error\_\-register\_\-error(), error\_\-register\_\-notice(), and error\_\-register\_\-warning().