\hypertarget{_m_a_x_r_e_f_d_e_s14_8c}{\section{src/\-M\-A\-X\-R\-E\-F\-D\-E\-S14.c File Reference}
\label{_m_a_x_r_e_f_d_e_s14_8c}\index{src/\-M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c@{src/\-M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}}
}
{\ttfamily \#include $<$stdio.\-h$>$}\\*
{\ttfamily \#include \char`\"{}xparameters.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}platform.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}menu.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}utilities.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}maxim\-Device\-Specific\-Utilities.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}M\-A\-X\-R\-E\-F\-D\-E\-S14.\-h\char`\"{}}\\*
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{_m_a_x_r_e_f_d_e_s14_8c_a235aca14db5e321932657a94078373ab}{M\-A\-J\-O\-R\-\_\-\-R\-E\-V\-I\-S\-I\-O\-N}~01
\item 
\#define \hyperlink{_m_a_x_r_e_f_d_e_s14_8c_a5b5b1f0d92c4a48da068fbfb8505d986}{M\-I\-N\-O\-R\-\_\-\-R\-E\-V\-I\-S\-I\-O\-N}~00
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{_m_a_x_r_e_f_d_e_s14_8c_ae66f6b31b5ad750f1fe042a706a4e3d4}{main} ()
\begin{DoxyCompactList}\small\item\em Main() function for Analog Essentials example program. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
X\-Gpio \hyperlink{_m_a_x_r_e_f_d_e_s14_8c_aecdd70919cc2362d106bffb29890aed2}{g\-\_\-x\-Gpio\-Seven\-Segment}
\item 
unsigned int \hyperlink{_m_a_x_r_e_f_d_e_s14_8c_a57889ef928861ef00710bbdea3dc02e7}{g\-\_\-un\-Seven\-Segment\-Value} =0
\item 
char \hyperlink{_m_a_x_r_e_f_d_e_s14_8c_aa605d8b1f5c6c54374b8ba2fcddad504}{g\-\_\-s\-Input\-String} \mbox{[}\hyperlink{_m_a_x_r_e_f_d_e_s14_8h_a1c0f355e7a9c927a8136918ef02a1883}{I\-N\-P\-U\-T\-\_\-\-S\-T\-R\-I\-N\-G\-\_\-\-M\-A\-X\-\_\-\-S\-I\-Z\-E}\mbox{]}
\item 
X\-Gpio \hyperlink{_m_a_x_r_e_f_d_e_s14_8c_ac66cdf98245acd1e3462cfb40bca3310}{g\-\_\-x\-Gpio\-Pmod\-Port\-A}
\item 
X\-Gpio \hyperlink{_m_a_x_r_e_f_d_e_s14_8c_ad755f7796016c042d0fb8d11d78b72f8}{g\-\_\-x\-Gpio\-Pmod\-Port\-B}
\item 
X\-Gpio \hyperlink{_m_a_x_r_e_f_d_e_s14_8c_af6e6129686a851e9257dd05ae77fa42b}{g\-\_\-gp\-Buttons}
\item 
X\-Gpio \hyperlink{_m_a_x_r_e_f_d_e_s14_8c_ab9861e340be0b4bef8d4158702e599ce}{g\-\_\-x\-Gpio\-Led}
\item 
u8 \hyperlink{_m_a_x_r_e_f_d_e_s14_8c_a571c90ddec2a5e4b914f6d5faae6cfaf}{g\-\_\-\-Pmod\-Port\-Mux\-Settings} =0
\end{DoxyCompactItemize}


\subsection{Detailed Description}


 \begin{DoxyVerb}      Project: Sonoma (MAXREFDES14#)
     Filename: MAXREFDES14.c
  Description: This module contains the Main application for the
               AVNET LX9 MicroBoard implementation of the MAXREFDES14
               example program.
\end{DoxyVerb}


Revision History\-: \par
 05-\/31-\/13 Rev 01.\-00 G\-L Initial Release 



This code follows the following naming conventions.

char ch\-Pmod\-Value char (array) s\-Pmod\-String\mbox{[}16\mbox{]} float f\-Pmod\-Value int n\-Pmod\-Value int (array) an\-Pmod\-Value\mbox{[}16\mbox{]} u16 u\-Pmod\-Value u8 uch\-Pmod\-Value u8 (array) auch\-Pmod\-Buffer\mbox{[}16\mbox{]} unsigned int un\-Pmod\-Value int $\ast$ pun\-Pmod\-Value 



Definition in file \hyperlink{_m_a_x_r_e_f_d_e_s14_8c_source}{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}.



\subsection{Macro Definition Documentation}
\hypertarget{_m_a_x_r_e_f_d_e_s14_8c_a235aca14db5e321932657a94078373ab}{\index{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}!M\-A\-J\-O\-R\-\_\-\-R\-E\-V\-I\-S\-I\-O\-N@{M\-A\-J\-O\-R\-\_\-\-R\-E\-V\-I\-S\-I\-O\-N}}
\index{M\-A\-J\-O\-R\-\_\-\-R\-E\-V\-I\-S\-I\-O\-N@{M\-A\-J\-O\-R\-\_\-\-R\-E\-V\-I\-S\-I\-O\-N}!MAXREFDES14.c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}}
\subsubsection[{M\-A\-J\-O\-R\-\_\-\-R\-E\-V\-I\-S\-I\-O\-N}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\-A\-J\-O\-R\-\_\-\-R\-E\-V\-I\-S\-I\-O\-N~01}}\label{_m_a_x_r_e_f_d_e_s14_8c_a235aca14db5e321932657a94078373ab}


Definition at line 83 of file M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c.

\hypertarget{_m_a_x_r_e_f_d_e_s14_8c_a5b5b1f0d92c4a48da068fbfb8505d986}{\index{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}!M\-I\-N\-O\-R\-\_\-\-R\-E\-V\-I\-S\-I\-O\-N@{M\-I\-N\-O\-R\-\_\-\-R\-E\-V\-I\-S\-I\-O\-N}}
\index{M\-I\-N\-O\-R\-\_\-\-R\-E\-V\-I\-S\-I\-O\-N@{M\-I\-N\-O\-R\-\_\-\-R\-E\-V\-I\-S\-I\-O\-N}!MAXREFDES14.c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}}
\subsubsection[{M\-I\-N\-O\-R\-\_\-\-R\-E\-V\-I\-S\-I\-O\-N}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\-I\-N\-O\-R\-\_\-\-R\-E\-V\-I\-S\-I\-O\-N~00}}\label{_m_a_x_r_e_f_d_e_s14_8c_a5b5b1f0d92c4a48da068fbfb8505d986}


Definition at line 84 of file M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c.



\subsection{Function Documentation}
\hypertarget{_m_a_x_r_e_f_d_e_s14_8c_ae66f6b31b5ad750f1fe042a706a4e3d4}{\index{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}!main@{main}}
\index{main@{main}!MAXREFDES14.c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}int main (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{_m_a_x_r_e_f_d_e_s14_8c_ae66f6b31b5ad750f1fe042a706a4e3d4}


Main() function for Analog Essentials example program. 

\begin{DoxyParagraph}{Details}
This function sets up and initializes the F\-P\-G\-A and hardware, displays the root menu via Hyperterminal, then dispatches inidividual demo programs for specific module based on user's keypress selection.
\end{DoxyParagraph}

\begin{DoxyParams}{Parameters}
{\em None} & \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em Always} & T\-R\-U\-E \\
\hline
\end{DoxyRetVals}


Definition at line 97 of file M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c.



\subsection{Variable Documentation}
\hypertarget{_m_a_x_r_e_f_d_e_s14_8c_af6e6129686a851e9257dd05ae77fa42b}{\index{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}!g\-\_\-gp\-Buttons@{g\-\_\-gp\-Buttons}}
\index{g\-\_\-gp\-Buttons@{g\-\_\-gp\-Buttons}!MAXREFDES14.c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}}
\subsubsection[{g\-\_\-gp\-Buttons}]{\setlength{\rightskip}{0pt plus 5cm}X\-Gpio g\-\_\-gp\-Buttons}}\label{_m_a_x_r_e_f_d_e_s14_8c_af6e6129686a851e9257dd05ae77fa42b}


Definition at line 93 of file M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c.

\hypertarget{_m_a_x_r_e_f_d_e_s14_8c_a571c90ddec2a5e4b914f6d5faae6cfaf}{\index{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}!g\-\_\-\-Pmod\-Port\-Mux\-Settings@{g\-\_\-\-Pmod\-Port\-Mux\-Settings}}
\index{g\-\_\-\-Pmod\-Port\-Mux\-Settings@{g\-\_\-\-Pmod\-Port\-Mux\-Settings}!MAXREFDES14.c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}}
\subsubsection[{g\-\_\-\-Pmod\-Port\-Mux\-Settings}]{\setlength{\rightskip}{0pt plus 5cm}u8 g\-\_\-\-Pmod\-Port\-Mux\-Settings =0}}\label{_m_a_x_r_e_f_d_e_s14_8c_a571c90ddec2a5e4b914f6d5faae6cfaf}


Definition at line 95 of file M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c.

\hypertarget{_m_a_x_r_e_f_d_e_s14_8c_aa605d8b1f5c6c54374b8ba2fcddad504}{\index{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}!g\-\_\-s\-Input\-String@{g\-\_\-s\-Input\-String}}
\index{g\-\_\-s\-Input\-String@{g\-\_\-s\-Input\-String}!MAXREFDES14.c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}}
\subsubsection[{g\-\_\-s\-Input\-String}]{\setlength{\rightskip}{0pt plus 5cm}char g\-\_\-s\-Input\-String\mbox{[}{\bf I\-N\-P\-U\-T\-\_\-\-S\-T\-R\-I\-N\-G\-\_\-\-M\-A\-X\-\_\-\-S\-I\-Z\-E}\mbox{]}}}\label{_m_a_x_r_e_f_d_e_s14_8c_aa605d8b1f5c6c54374b8ba2fcddad504}


Definition at line 89 of file M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c.

\hypertarget{_m_a_x_r_e_f_d_e_s14_8c_a57889ef928861ef00710bbdea3dc02e7}{\index{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}!g\-\_\-un\-Seven\-Segment\-Value@{g\-\_\-un\-Seven\-Segment\-Value}}
\index{g\-\_\-un\-Seven\-Segment\-Value@{g\-\_\-un\-Seven\-Segment\-Value}!MAXREFDES14.c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}}
\subsubsection[{g\-\_\-un\-Seven\-Segment\-Value}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int g\-\_\-un\-Seven\-Segment\-Value =0}}\label{_m_a_x_r_e_f_d_e_s14_8c_a57889ef928861ef00710bbdea3dc02e7}


Definition at line 88 of file M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c.

\hypertarget{_m_a_x_r_e_f_d_e_s14_8c_ab9861e340be0b4bef8d4158702e599ce}{\index{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}!g\-\_\-x\-Gpio\-Led@{g\-\_\-x\-Gpio\-Led}}
\index{g\-\_\-x\-Gpio\-Led@{g\-\_\-x\-Gpio\-Led}!MAXREFDES14.c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}}
\subsubsection[{g\-\_\-x\-Gpio\-Led}]{\setlength{\rightskip}{0pt plus 5cm}X\-Gpio g\-\_\-x\-Gpio\-Led}}\label{_m_a_x_r_e_f_d_e_s14_8c_ab9861e340be0b4bef8d4158702e599ce}


Definition at line 94 of file M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c.

\hypertarget{_m_a_x_r_e_f_d_e_s14_8c_ac66cdf98245acd1e3462cfb40bca3310}{\index{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}!g\-\_\-x\-Gpio\-Pmod\-Port\-A@{g\-\_\-x\-Gpio\-Pmod\-Port\-A}}
\index{g\-\_\-x\-Gpio\-Pmod\-Port\-A@{g\-\_\-x\-Gpio\-Pmod\-Port\-A}!MAXREFDES14.c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}}
\subsubsection[{g\-\_\-x\-Gpio\-Pmod\-Port\-A}]{\setlength{\rightskip}{0pt plus 5cm}X\-Gpio g\-\_\-x\-Gpio\-Pmod\-Port\-A}}\label{_m_a_x_r_e_f_d_e_s14_8c_ac66cdf98245acd1e3462cfb40bca3310}


Definition at line 90 of file M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c.

\hypertarget{_m_a_x_r_e_f_d_e_s14_8c_ad755f7796016c042d0fb8d11d78b72f8}{\index{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}!g\-\_\-x\-Gpio\-Pmod\-Port\-B@{g\-\_\-x\-Gpio\-Pmod\-Port\-B}}
\index{g\-\_\-x\-Gpio\-Pmod\-Port\-B@{g\-\_\-x\-Gpio\-Pmod\-Port\-B}!MAXREFDES14.c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}}
\subsubsection[{g\-\_\-x\-Gpio\-Pmod\-Port\-B}]{\setlength{\rightskip}{0pt plus 5cm}X\-Gpio g\-\_\-x\-Gpio\-Pmod\-Port\-B}}\label{_m_a_x_r_e_f_d_e_s14_8c_ad755f7796016c042d0fb8d11d78b72f8}


Definition at line 91 of file M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c.

\hypertarget{_m_a_x_r_e_f_d_e_s14_8c_aecdd70919cc2362d106bffb29890aed2}{\index{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}!g\-\_\-x\-Gpio\-Seven\-Segment@{g\-\_\-x\-Gpio\-Seven\-Segment}}
\index{g\-\_\-x\-Gpio\-Seven\-Segment@{g\-\_\-x\-Gpio\-Seven\-Segment}!MAXREFDES14.c@{M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c}}
\subsubsection[{g\-\_\-x\-Gpio\-Seven\-Segment}]{\setlength{\rightskip}{0pt plus 5cm}X\-Gpio g\-\_\-x\-Gpio\-Seven\-Segment}}\label{_m_a_x_r_e_f_d_e_s14_8c_aecdd70919cc2362d106bffb29890aed2}


Definition at line 87 of file M\-A\-X\-R\-E\-F\-D\-E\-S14.\-c.

