\section{aversive\_\-10-03-12/modules/ihm/parse/parse\_\-num.h File Reference}
\label{parse__num_8h}\index{aversive\_\-10-03-12/modules/ihm/parse/parse\_\-num.h@{aversive\_\-10-03-12/modules/ihm/parse/parse\_\-num.h}}
{\tt \#include \char`\"{}parse.h\char`\"{}}\par
\subsection*{Data Structures}
\begin{CompactItemize}
\item 
struct {\bf token\_\-num\_\-data}
\item 
struct {\bf token\_\-num}
\item 
struct {\bf token\_\-num\_\-pgm}
\end{CompactItemize}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf TOKEN\_\-NUM\_\-INITIALIZER}(structure, field, {\bf numtype})
\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
typedef struct {\bf token\_\-num} {\bf parse\_\-token\_\-num\_\-t}
\item 
typedef struct {\bf token\_\-num\_\-pgm} {\bf parse\_\-pgm\_\-token\_\-num\_\-t}
\end{CompactItemize}
\subsection*{Enumerations}
\begin{CompactItemize}
\item 
enum {\bf numtype} \{ \par
{\bf UINT8} =  0, 
{\bf UINT16}, 
{\bf UINT32}, 
{\bf INT8}, 
\par
{\bf INT16}, 
{\bf INT32}, 
{\bf FLOAT}
 \}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int8\_\-t {\bf parse\_\-num} ({\bf parse\_\-pgm\_\-token\_\-hdr\_\-t} $\ast$tk, const char $\ast$srcbuf, void $\ast$res)
\item 
int8\_\-t {\bf get\_\-help\_\-num} ({\bf parse\_\-pgm\_\-token\_\-hdr\_\-t} $\ast$tk, char $\ast$dstbuf, uint8\_\-t size)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
struct {\bf token\_\-num\_\-pgm} {\bf PROGMEM}
\item 
struct {\bf token\_\-ops} {\bf token\_\-num\_\-ops}
\end{CompactItemize}


\subsection{Define Documentation}
\index{parse\_\-num.h@{parse\_\-num.h}!TOKEN\_\-NUM\_\-INITIALIZER@{TOKEN\_\-NUM\_\-INITIALIZER}}
\index{TOKEN\_\-NUM\_\-INITIALIZER@{TOKEN\_\-NUM\_\-INITIALIZER}!parse_num.h@{parse\_\-num.h}}
\subsubsection[TOKEN\_\-NUM\_\-INITIALIZER]{\setlength{\rightskip}{0pt plus 5cm}\#define TOKEN\_\-NUM\_\-INITIALIZER(structure, \/  field, \/  {\bf numtype})}\label{parse__num_8h_5e44144d8bce5801ef955ca47568bbe0}


\textbf{Value:}

\begin{Code}\begin{verbatim}{                                                          \
        .hdr = {                                           \
                .ops = &token_num_ops,                     \
                .offset = offsetof(structure, field),      \
        },                                                 \
        .num_data = {                                      \
                .type = numtype,                           \
        },                                                 \
}
\end{verbatim}
\end{Code}


Definition at line 40 of file parse\_\-num.h.

\subsection{Typedef Documentation}
\index{parse\_\-num.h@{parse\_\-num.h}!parse\_\-pgm\_\-token\_\-num\_\-t@{parse\_\-pgm\_\-token\_\-num\_\-t}}
\index{parse\_\-pgm\_\-token\_\-num\_\-t@{parse\_\-pgm\_\-token\_\-num\_\-t}!parse_num.h@{parse\_\-num.h}}
\subsubsection[parse\_\-pgm\_\-token\_\-num\_\-t]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf token\_\-num\_\-pgm} {\bf parse\_\-pgm\_\-token\_\-num\_\-t}}\label{parse__num_8h_5b3a53ad86e37f4093afda7a1b0fbb40}




Definition at line 31 of file parse\_\-num.h.\index{parse\_\-num.h@{parse\_\-num.h}!parse\_\-token\_\-num\_\-t@{parse\_\-token\_\-num\_\-t}}
\index{parse\_\-token\_\-num\_\-t@{parse\_\-token\_\-num\_\-t}!parse_num.h@{parse\_\-num.h}}
\subsubsection[parse\_\-token\_\-num\_\-t]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf token\_\-num} {\bf parse\_\-token\_\-num\_\-t}}\label{parse__num_8h_884eecd5aa972f419836ed4c9295350e}




Definition at line 26 of file parse\_\-num.h.

\subsection{Enumeration Type Documentation}
\index{parse\_\-num.h@{parse\_\-num.h}!numtype@{numtype}}
\index{numtype@{numtype}!parse_num.h@{parse\_\-num.h}}
\subsubsection[numtype]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf numtype}}\label{parse__num_8h_5d2923d6785294a94246a6aab9389b98}


\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{UINT8@{UINT8}!parse\_\-num.h@{parse\_\-num.h}}\index{parse\_\-num.h@{parse\_\-num.h}!UINT8@{UINT8}}\item[{\em 
UINT8\label{parse__num_8h_5d2923d6785294a94246a6aab9389b9813759b5b800cc50a6e10f73681f6fe9b}
}]\index{UINT16@{UINT16}!parse\_\-num.h@{parse\_\-num.h}}\index{parse\_\-num.h@{parse\_\-num.h}!UINT16@{UINT16}}\item[{\em 
UINT16\label{parse__num_8h_5d2923d6785294a94246a6aab9389b988ed234b18120112ac09d0219a8f60d1b}
}]\index{UINT32@{UINT32}!parse\_\-num.h@{parse\_\-num.h}}\index{parse\_\-num.h@{parse\_\-num.h}!UINT32@{UINT32}}\item[{\em 
UINT32\label{parse__num_8h_5d2923d6785294a94246a6aab9389b98473815478d857d6a0dbe1f84f44a8592}
}]\index{INT8@{INT8}!parse\_\-num.h@{parse\_\-num.h}}\index{parse\_\-num.h@{parse\_\-num.h}!INT8@{INT8}}\item[{\em 
INT8\label{parse__num_8h_5d2923d6785294a94246a6aab9389b98da138aad097eaac8697fe3661c91af95}
}]\index{INT16@{INT16}!parse\_\-num.h@{parse\_\-num.h}}\index{parse\_\-num.h@{parse\_\-num.h}!INT16@{INT16}}\item[{\em 
INT16\label{parse__num_8h_5d2923d6785294a94246a6aab9389b98c4a99142c241d04e1607af8a319c201b}
}]\index{INT32@{INT32}!parse\_\-num.h@{parse\_\-num.h}}\index{parse\_\-num.h@{parse\_\-num.h}!INT32@{INT32}}\item[{\em 
INT32\label{parse__num_8h_5d2923d6785294a94246a6aab9389b98c1081c62db14e24ef35a1c3c36cba2e7}
}]\index{FLOAT@{FLOAT}!parse\_\-num.h@{parse\_\-num.h}}\index{parse\_\-num.h@{parse\_\-num.h}!FLOAT@{FLOAT}}\item[{\em 
FLOAT\label{parse__num_8h_5d2923d6785294a94246a6aab9389b989cf4a0866224b0bb4a7a895da27c9c4c}
}]\end{description}
\end{Desc}



Definition at line 6 of file parse\_\-num.h.

\subsection{Function Documentation}
\index{parse\_\-num.h@{parse\_\-num.h}!get\_\-help\_\-num@{get\_\-help\_\-num}}
\index{get\_\-help\_\-num@{get\_\-help\_\-num}!parse_num.h@{parse\_\-num.h}}
\subsubsection[get\_\-help\_\-num]{\setlength{\rightskip}{0pt plus 5cm}int8\_\-t get\_\-help\_\-num ({\bf parse\_\-pgm\_\-token\_\-hdr\_\-t} $\ast$ {\em tk}, \/  char $\ast$ {\em dstbuf}, \/  uint8\_\-t {\em size})}\label{parse__num_8h_4460330481777a74f7d99b1c95371544}




Definition at line 423 of file parse\_\-num.c.

References token\_\-num\_\-data::type.\index{parse\_\-num.h@{parse\_\-num.h}!parse\_\-num@{parse\_\-num}}
\index{parse\_\-num@{parse\_\-num}!parse_num.h@{parse\_\-num.h}}
\subsubsection[parse\_\-num]{\setlength{\rightskip}{0pt plus 5cm}int8\_\-t parse\_\-num ({\bf parse\_\-pgm\_\-token\_\-hdr\_\-t} $\ast$ {\em tk}, \/  const char $\ast$ {\em srcbuf}, \/  void $\ast$ {\em res})}\label{parse__num_8h_6e79ca80d8804ebc13d24adf2ac713cb}




Definition at line 88 of file parse\_\-num.c.

References BIN, BIN\_\-OK, debug\_\-printf, DEC\_\-NEG, DEC\_\-NEG\_\-OK, DEC\_\-POS\_\-OK, ERROR, FLOAT, FLOAT\_\-NEG, FLOAT\_\-NEG\_\-OK, FLOAT\_\-POS, FLOAT\_\-POS\_\-OK, HEX, HEX\_\-OK, INT16, INT32, INT8, isendoftoken(), OCTAL\_\-OK, S08\_\-MAX, S16\_\-MAX, S32\_\-MAX, START, token\_\-num\_\-data::type, U08\_\-MAX, U16\_\-MAX, UINT16, UINT32, UINT8, and ZERO\_\-OK.

\subsection{Variable Documentation}
\index{parse\_\-num.h@{parse\_\-num.h}!PROGMEM@{PROGMEM}}
\index{PROGMEM@{PROGMEM}!parse_num.h@{parse\_\-num.h}}
\subsubsection[PROGMEM]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf token\_\-num\_\-pgm}  {\bf PROGMEM}}\label{parse__num_8h_2cda130382600e5df7a8c2c4aac1be00}


\index{parse\_\-num.h@{parse\_\-num.h}!token\_\-num\_\-ops@{token\_\-num\_\-ops}}
\index{token\_\-num\_\-ops@{token\_\-num\_\-ops}!parse_num.h@{parse\_\-num.h}}
\subsubsection[token\_\-num\_\-ops]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf token\_\-ops} {\bf token\_\-num\_\-ops}}\label{parse__num_8h_d318fecfb5398e80d3a29d145d483e72}




Definition at line 27 of file parse\_\-num.c.