\section{configure.c File Reference}
\label{configure_8c}\index{configure.c@{configure.c}}


Routines that manipulate the configuration structure and the associated data file.  


{\ttfamily \#include $<$configure\_\-p.h$>$}\par
{\ttfamily \#include $<$lci\_\-p.h$>$}\par
{\ttfamily \#include $<$LCI/LCI\_\-msgs.h$>$}\par
{\ttfamily \#include $<$LCFG/LCFG.h$>$}\par
{\ttfamily \#include $<$LSEC/LSEC\_\-ctx.h$>$}\par
{\ttfamily \#include $<$LSEC/LSEC.h$>$}\par
{\ttfamily \#include $<$FBS/FBS\_\-pubrtos.h$>$}\par
{\ttfamily \#include $<$LEM/msg\_\-macros.h$>$}\par
{\ttfamily \#include $<$LEM/defs.h$>$}\par
{\ttfamily \#include $<$LEM/encode.h$>$}\par
{\ttfamily \#include $<$LEM/decode.h$>$}\par
{\ttfamily \#include $<$MSG/MSG\_\-pubdefs.h$>$}\par
{\ttfamily \#include $<$PBS/BSWP.h$>$}\par
{\ttfamily \#include $<$PBS/MBA.h$>$}\par
{\ttfamily \#include $<$PBS/TASK.h$>$}\par
{\ttfamily \#include $<$PBS/TOV.h$>$}\par
{\ttfamily \#include $<$PBS/WCT.h$>$}\par
{\ttfamily \#include $<$string.h$>$}\par
{\ttfamily \#include $<$fcntl.h$>$}\par
{\ttfamily \#include $<$unistd.h$>$}\par
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
unsigned \hyperlink{configure_8c_a54fad3468e6a777e839cfbe0edca9414}{LCI\_\-confBufferModel} (unsigned select, LEM\_\-micr $\ast$cr, unsigned $\ast$mods)
\begin{DoxyCompactList}\small\item\em Set the TEM buffer model. \end{DoxyCompactList}\item 
unsigned \hyperlink{configure_8c_a09295044a1920db462932bf8f4aaa6b9}{LCI\_\-confCache} (\hyperlink{struct__LCI__configuration}{LCI\_\-configuration} $\ast$cnf, unsigned latc\_\-fid)
\begin{DoxyCompactList}\small\item\em Read in the LATC files. \end{DoxyCompactList}\item 
unsigned \hyperlink{configure_8c_aade003120ed8873b1cdb9ec3f2ca2522}{LCI\_\-confClose} (\hyperlink{struct__LCI__configuration}{LCI\_\-configuration} $\ast$cnf)
\begin{DoxyCompactList}\small\item\em Close the file that acts as the source of the configuration. \end{DoxyCompactList}\item 
void \hyperlink{configure_8c_a3eb0c3efe23d7ca902a458f1738b3306}{LCI\_\-confCopy} (\hyperlink{struct__LCI__configuration}{LCI\_\-configuration} $\ast$cnfIn, \hyperlink{struct__LCI__configuration}{LCI\_\-configuration} $\ast$cnfOut)
\begin{DoxyCompactList}\small\item\em Copy a configuration. \end{DoxyCompactList}\item 
\hyperlink{struct__LCI__configuration}{LCI\_\-configuration} $\ast$ \hyperlink{configure_8c_a0d04e48c83b4dbd26fbd1617d8f342d7}{LCI\_\-confCreate} (LSEC\_\-control $\ast$lsec)
\begin{DoxyCompactList}\small\item\em Create a new configuration structure. \end{DoxyCompactList}\item 
void \hyperlink{configure_8c_ae50e55be3835a812d2698ba9522b06e1}{LCI\_\-confDelete} (\hyperlink{struct__LCI__configuration}{LCI\_\-configuration} $\ast$cnf)
\begin{DoxyCompactList}\small\item\em Free memory previously allocated with a call to LCI\_\-confCreate. \end{DoxyCompactList}\item 
unsigned \hyperlink{configure_8c_aac7c025c89f60eea10f40ed6541249d3}{LCI\_\-configure} (\hyperlink{struct__LCI__configuration}{LCI\_\-configuration} $\ast$cnf, LEM\_\-micr $\ast$cr, unsigned runId)
\begin{DoxyCompactList}\small\item\em Load the configuration onto the LAT. \end{DoxyCompactList}\item 
unsigned \hyperlink{configure_8c_ab37b924dc9ffbeb48e043c4d73afb06b}{LCI\_\-confMode} (\hyperlink{struct__LCI__configuration}{LCI\_\-configuration} $\ast$cnf)
\begin{DoxyCompactList}\small\item\em Return the configuration type. \end{DoxyCompactList}\item 
void \hyperlink{configure_8c_a8e570d01050204f5249588069d758549}{LCI\_\-confNodeId} (\hyperlink{struct__LCI__configuration}{LCI\_\-configuration} $\ast$cnf, unsigned siu\_\-id)
\begin{DoxyCompactList}\small\item\em Set the destination address to be used in the TAM configuration. \end{DoxyCompactList}\item 
unsigned \hyperlink{configure_8c_ad3f24364d91beb5822d69e25e964207e}{LCI\_\-confOpen} (\hyperlink{struct__LCI__configuration}{LCI\_\-configuration} $\ast$cnf, const char $\ast$fn)
\begin{DoxyCompactList}\small\item\em Open the file and associate it with this configuration structure. \end{DoxyCompactList}\item 
unsigned \hyperlink{configure_8c_a4de0c4168613a7472cd2ca0f750f06d1}{LCI\_\-confOpenFid} (\hyperlink{struct__LCI__configuration}{LCI\_\-configuration} $\ast$cnf, unsigned fid)
\begin{DoxyCompactList}\small\item\em Open the file and associate it with this configuration structure. \end{DoxyCompactList}\item 
unsigned \hyperlink{configure_8c_ab2955b7caa8526580e8667877ea53a55}{LCI\_\-confPeriod} (\hyperlink{struct__LCI__configuration}{LCI\_\-configuration} $\ast$cnf)
\begin{DoxyCompactList}\small\item\em Return the period between triggers. \end{DoxyCompactList}\item 
unsigned \hyperlink{configure_8c_a23d7696843650c424ce1c1ca28173956}{LCI\_\-confRead} (\hyperlink{struct__LCI__configuration}{LCI\_\-configuration} $\ast$cnf)
\begin{DoxyCompactList}\small\item\em Get the values for the next step of the configuration. \end{DoxyCompactList}\item 
void \hyperlink{configure_8c_a43aa4f3ab836636a344adc18f6e19478}{LCI\_\-confReport} (\hyperlink{struct__LCI__configuration}{LCI\_\-configuration} $\ast$cnf, FILE $\ast$fp)
\begin{DoxyCompactList}\small\item\em Produce a formatted report of the contents of a binary configuration. \end{DoxyCompactList}\item 
void \hyperlink{configure_8c_ad55095be6a7e2d48feddb150c8367f13}{LCI\_\-confTimes} (\hyperlink{struct__LCI__configuration}{LCI\_\-configuration} $\ast$cnf, int clear, long long $\ast$lci\_\-time, long long $\ast$lat\_\-time)
\begin{DoxyCompactList}\small\item\em Return accumulated configuration times. \end{DoxyCompactList}\item 
unsigned \hyperlink{configure_8c_a8deb98af23281fae5e70b404f08ed27f}{LCI\_\-confTriggers} (\hyperlink{struct__LCI__configuration}{LCI\_\-configuration} $\ast$cnf)
\begin{DoxyCompactList}\small\item\em Return the number of triggers required. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Routines that manipulate the configuration structure and the associated data file. \begin{DoxyAuthor}{Author}
James Swain \& Owen Saxton
\end{DoxyAuthor}
{\bfseries \$Id:} \hyperlink{configure_8c}{configure.c},v 1.30 2014/02/12 21:41:42 saxton Exp \$ 

\subsection{Function Documentation}
\index{configure.c@{configure.c}!LCI\_\-confBufferModel@{LCI\_\-confBufferModel}}
\index{LCI\_\-confBufferModel@{LCI\_\-confBufferModel}!configure.c@{configure.c}}
\subsubsection[{LCI\_\-confBufferModel}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LCI\_\-confBufferModel (
\begin{DoxyParamCaption}
\item[{unsigned}]{select, }
\item[{LEM\_\-micr $\ast$}]{cr, }
\item[{unsigned $\ast$}]{mods}
\end{DoxyParamCaption}
)}\label{configure_8c_a54fad3468e6a777e839cfbe0edca9414}


Set the TEM buffer model. 

This routine sets the value of the buffer model select bit in the TEM CONFIGURATION register, necessary because the calibration requires non-\/standard single buffering. It optionally also returns the operational state of the various data acquisition modules (TEMs, GEM and AEM), needed for event data checking.


\begin{DoxyParams}{Parameters}
{\em select} & Zero to select the multi buffer model, non-\/zero to select the single buffer model\\
\hline
{\em cr} & Pointer to the multi-\/item command/response list.\\
\hline
{\em mods} & Pointer to an integer to receive the bit mask of operational acquisition modules, or NULL if this information is not required.\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em LCI\_\-SUCCESS} & Success \\
\hline
{\em LCI\_\-TEMCR} & The command and response masks don't have the same TEMs present \\
\hline
{\em LEM\_\-$\ast$} & If there was an error reading or loading one of the registers \\
\hline
\end{DoxyRetVals}


Referenced by LCI\_\-calibrate(), and LCI\_\-terminate().

\index{configure.c@{configure.c}!LCI\_\-confCache@{LCI\_\-confCache}}
\index{LCI\_\-confCache@{LCI\_\-confCache}!configure.c@{configure.c}}
\subsubsection[{LCI\_\-confCache}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LCI\_\-confCache (
\begin{DoxyParamCaption}
\item[{{\bf LCI\_\-configuration} $\ast$}]{cnf, }
\item[{unsigned}]{latc\_\-fid}
\end{DoxyParamCaption}
)}\label{configure_8c_a09295044a1920db462932bf8f4aaa6b9}


Read in the LATC files. 


\begin{DoxyParams}{Parameters}
{\em cnf} & Pointer to an initialised configuration structure\\
\hline
{\em latc\_\-fid} & ID of the LATC configuration to cache\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em LCI\_\-SUCCESS} & if all goes well \\
\hline
{\em LCFG\_\-BADFOPEN} & if the fid, or any of the names the LAT configuration master file contains, does not match a valid file. \\
\hline
{\em LCFG\_\-BADTYPE} & if the LATC file contains a bad type identifier \\
\hline
{\em LCFG\_\-BADREAD} & if an error occurs whilst the file is being read \\
\hline
\end{DoxyRetVals}


References \_\-LCI\_\-configuration::latc, and \_\-LCI\_\-configuration::rld.



Referenced by LCI\_\-calibrate().

\index{configure.c@{configure.c}!LCI\_\-confClose@{LCI\_\-confClose}}
\index{LCI\_\-confClose@{LCI\_\-confClose}!configure.c@{configure.c}}
\subsubsection[{LCI\_\-confClose}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LCI\_\-confClose (
\begin{DoxyParamCaption}
\item[{{\bf LCI\_\-configuration} $\ast$}]{cnf}
\end{DoxyParamCaption}
)}\label{configure_8c_aade003120ed8873b1cdb9ec3f2ca2522}


Close the file that acts as the source of the configuration. 


\begin{DoxyParams}{Parameters}
{\em cnf} & Pointer to an opened configuration\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em LCI\_\-SUCCESS} & If the file closes successfully \\
\hline
{\em LCI\_\-FCLOSE} & If there is an error closing the file \\
\hline
\end{DoxyRetVals}


References \_\-LCI\_\-configuration::fd.



Referenced by LCI\_\-terminate().

\index{configure.c@{configure.c}!LCI\_\-confCopy@{LCI\_\-confCopy}}
\index{LCI\_\-confCopy@{LCI\_\-confCopy}!configure.c@{configure.c}}
\subsubsection[{LCI\_\-confCopy}]{\setlength{\rightskip}{0pt plus 5cm}void LCI\_\-confCopy (
\begin{DoxyParamCaption}
\item[{{\bf LCI\_\-configuration} $\ast$}]{cnfIn, }
\item[{{\bf LCI\_\-configuration} $\ast$}]{cnfOut}
\end{DoxyParamCaption}
)}\label{configure_8c_a3eb0c3efe23d7ca902a458f1738b3306}


Copy a configuration. 


\begin{DoxyParams}{Parameters}
{\em cnfIn} & The configuration structure to be copied from\\
\hline
{\em cnfOut} & The configuration structure to be copied to \\
\hline
\end{DoxyParams}
\index{configure.c@{configure.c}!LCI\_\-confCreate@{LCI\_\-confCreate}}
\index{LCI\_\-confCreate@{LCI\_\-confCreate}!configure.c@{configure.c}}
\subsubsection[{LCI\_\-confCreate}]{\setlength{\rightskip}{0pt plus 5cm}{\bf LCI\_\-configuration}$\ast$ LCI\_\-confCreate (
\begin{DoxyParamCaption}
\item[{LSEC\_\-control $\ast$}]{lsec}
\end{DoxyParamCaption}
)}\label{configure_8c_a0d04e48c83b4dbd26fbd1617d8f342d7}


Create a new configuration structure. 


\begin{DoxyParams}{Parameters}
{\em lsec} & The LSEC handle.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Pointer to an allocated, initialised configuration structure 
\end{DoxyReturn}


References \_\-LCI\_\-configuration::lsec.



Referenced by LCI\_\-newController().

\index{configure.c@{configure.c}!LCI\_\-confDelete@{LCI\_\-confDelete}}
\index{LCI\_\-confDelete@{LCI\_\-confDelete}!configure.c@{configure.c}}
\subsubsection[{LCI\_\-confDelete}]{\setlength{\rightskip}{0pt plus 5cm}void LCI\_\-confDelete (
\begin{DoxyParamCaption}
\item[{{\bf LCI\_\-configuration} $\ast$}]{cnf}
\end{DoxyParamCaption}
)}\label{configure_8c_ae50e55be3835a812d2698ba9522b06e1}


Free memory previously allocated with a call to LCI\_\-confCreate. 


\begin{DoxyParams}{Parameters}
{\em cnf} & A configuration structure created by a call to LCI\_\-confCreate \\
\hline
\end{DoxyParams}


Referenced by LCI\_\-deleteController().

\index{configure.c@{configure.c}!LCI\_\-configure@{LCI\_\-configure}}
\index{LCI\_\-configure@{LCI\_\-configure}!configure.c@{configure.c}}
\subsubsection[{LCI\_\-configure}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LCI\_\-configure (
\begin{DoxyParamCaption}
\item[{{\bf LCI\_\-configuration} $\ast$}]{cnf, }
\item[{LEM\_\-micr $\ast$}]{cr, }
\item[{unsigned}]{runId}
\end{DoxyParamCaption}
)}\label{configure_8c_aac7c025c89f60eea10f40ed6541249d3}


Load the configuration onto the LAT. 


\begin{DoxyParams}{Parameters}
{\em cnf} & Pointer to a populated configuration structure\\
\hline
{\em cr} & Pointer to the common configuration multi-\/item command response list\\
\hline
{\em runId} & The current run ID.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
LCI\_\-SUCCESS if all goes well, or one of the LEM errors if there is a problem loading the configuration onto the LAT 
\end{DoxyReturn}


References LCI\_\-cnfValues::acd, LCI\_\-cnfValues::cal, LCI\_\-gemInput::delay, LCI\_\-cnfInput::gem, \_\-LCI\_\-configuration::inp, \_\-LCI\_\-configuration::lat\_\-time, LCI\_\-gemInput::latcDelay, \_\-LCI\_\-configuration::lci\_\-time, LCI\_\-version::mode, \_\-LCI\_\-configuration::rld, \_\-LCI\_\-configuration::siu\_\-id, LCI\_\-cnfValues::tkr, \_\-LCI\_\-configuration::val, and \_\-LCI\_\-configuration::ver.

\index{configure.c@{configure.c}!LCI\_\-confMode@{LCI\_\-confMode}}
\index{LCI\_\-confMode@{LCI\_\-confMode}!configure.c@{configure.c}}
\subsubsection[{LCI\_\-confMode}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LCI\_\-confMode (
\begin{DoxyParamCaption}
\item[{{\bf LCI\_\-configuration} $\ast$}]{cnf}
\end{DoxyParamCaption}
)}\label{configure_8c_ab37b924dc9ffbeb48e043c4d73afb06b}


Return the configuration type. 


\begin{DoxyParams}{Parameters}
{\em cnf} & Pointer to the configuration structure\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
One of LSEC\_\-MODE\_\-XXX 
\end{DoxyReturn}


References LCI\_\-version::mode, and \_\-LCI\_\-configuration::ver.



Referenced by LCI\_\-calibrate().

\index{configure.c@{configure.c}!LCI\_\-confNodeId@{LCI\_\-confNodeId}}
\index{LCI\_\-confNodeId@{LCI\_\-confNodeId}!configure.c@{configure.c}}
\subsubsection[{LCI\_\-confNodeId}]{\setlength{\rightskip}{0pt plus 5cm}void LCI\_\-confNodeId (
\begin{DoxyParamCaption}
\item[{{\bf LCI\_\-configuration} $\ast$}]{cnf, }
\item[{unsigned}]{siu\_\-id}
\end{DoxyParamCaption}
)}\label{configure_8c_a8e570d01050204f5249588069d758549}


Set the destination address to be used in the TAM configuration. 


\begin{DoxyParams}{Parameters}
{\em cnf} & Pointer to the configuration structure\\
\hline
{\em siu\_\-id} & LATp address of the node that the events will be collected on \\
\hline
\end{DoxyParams}


References \_\-LCI\_\-configuration::siu\_\-id.



Referenced by LCI\_\-calibrate().

\index{configure.c@{configure.c}!LCI\_\-confOpen@{LCI\_\-confOpen}}
\index{LCI\_\-confOpen@{LCI\_\-confOpen}!configure.c@{configure.c}}
\subsubsection[{LCI\_\-confOpen}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LCI\_\-confOpen (
\begin{DoxyParamCaption}
\item[{{\bf LCI\_\-configuration} $\ast$}]{cnf, }
\item[{const char $\ast$}]{fn}
\end{DoxyParamCaption}
)}\label{configure_8c_ad3f24364d91beb5822d69e25e964207e}


Open the file and associate it with this configuration structure. 


\begin{DoxyParams}{Parameters}
{\em cnf} & Pointer to an initialised configuration structure\\
\hline
{\em fn} & Name of file to open\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em LCI\_\-SUCCESS} & if the file opens successfully \\
\hline
{\em LCI\_\-FOPEN} & if the file failed to open successfully \\
\hline
{\em LCI\_\-FREAD} & if there is an error recovering the version information (including file too short). \\
\hline
{\em LCI\_\-VERSION} & if the file version information is bad (unknown type, major version mismatch, minor version decrease). \\
\hline
\end{DoxyRetVals}


References LCI\_\-cnfInput::acd, LCI\_\-cnfValues::acd, LCI\_\-cnfInput::cal, LCI\_\-cnfValues::cal, \_\-LCI\_\-configuration::fd, LCI\_\-cnfInput::gem, \_\-LCI\_\-configuration::inp, \_\-LCI\_\-configuration::lci, LCI\_\-version::maj, LCI\_\-version::min, LCI\_\-version::mode, \_\-LCI\_\-configuration::rld, LCI\_\-cnfInput::tkr, LCI\_\-cnfValues::tkr, \_\-LCI\_\-configuration::val, and \_\-LCI\_\-configuration::ver.



Referenced by LCI\_\-confOpenFid().

\index{configure.c@{configure.c}!LCI\_\-confOpenFid@{LCI\_\-confOpenFid}}
\index{LCI\_\-confOpenFid@{LCI\_\-confOpenFid}!configure.c@{configure.c}}
\subsubsection[{LCI\_\-confOpenFid}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LCI\_\-confOpenFid (
\begin{DoxyParamCaption}
\item[{{\bf LCI\_\-configuration} $\ast$}]{cnf, }
\item[{unsigned}]{fid}
\end{DoxyParamCaption}
)}\label{configure_8c_a4de0c4168613a7472cd2ca0f750f06d1}


Open the file and associate it with this configuration structure. 


\begin{DoxyParams}{Parameters}
{\em cnf} & Pointer to an initialised configuration structure\\
\hline
{\em fid} & The ID of the file to open\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em LCI\_\-SUCCESS} & if the file opens successfully \\
\hline
{\em LCI\_\-FOPEN} & if the file failed to open successfully \\
\hline
{\em LCI\_\-FREAD} & if there is an error recovering the version information (including file too short). \\
\hline
{\em LCI\_\-VERSION} & if the file version information is bad (unknown type, major version mismatch, minor version decrease). \\
\hline
\end{DoxyRetVals}


References \_\-LCI\_\-configuration::lci, and LCI\_\-confOpen().



Referenced by LCI\_\-calibrate().

\index{configure.c@{configure.c}!LCI\_\-confPeriod@{LCI\_\-confPeriod}}
\index{LCI\_\-confPeriod@{LCI\_\-confPeriod}!configure.c@{configure.c}}
\subsubsection[{LCI\_\-confPeriod}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LCI\_\-confPeriod (
\begin{DoxyParamCaption}
\item[{{\bf LCI\_\-configuration} $\ast$}]{cnf}
\end{DoxyParamCaption}
)}\label{configure_8c_ab2955b7caa8526580e8667877ea53a55}


Return the period between triggers. 


\begin{DoxyParams}{Parameters}
{\em cnf} & Pointer to an initialised, populated configuration structure\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The period between triggers (in 50ns clock ticks) 
\end{DoxyReturn}


References LCI\_\-cnfInput::gem, \_\-LCI\_\-configuration::inp, and LCI\_\-gemInput::period.

\index{configure.c@{configure.c}!LCI\_\-confRead@{LCI\_\-confRead}}
\index{LCI\_\-confRead@{LCI\_\-confRead}!configure.c@{configure.c}}
\subsubsection[{LCI\_\-confRead}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LCI\_\-confRead (
\begin{DoxyParamCaption}
\item[{{\bf LCI\_\-configuration} $\ast$}]{cnf}
\end{DoxyParamCaption}
)}\label{configure_8c_a23d7696843650c424ce1c1ca28173956}


Get the values for the next step of the configuration. 


\begin{DoxyParams}{Parameters}
{\em cnf} & Pointer to an opened configuration\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em LCI\_\-SUCCESS} & if a configuration was read successfully \\
\hline
{\em LCI\_\-ENDOFILE} & if there are no more configurations in the file (returned, but not reported). \\
\hline
{\em LCI\_\-FREAD} & if there is an error during the read or the configuration is incomplete \\
\hline
\end{DoxyRetVals}


References LCI\_\-version::mode, and \_\-LCI\_\-configuration::ver.

\index{configure.c@{configure.c}!LCI\_\-confReport@{LCI\_\-confReport}}
\index{LCI\_\-confReport@{LCI\_\-confReport}!configure.c@{configure.c}}
\subsubsection[{LCI\_\-confReport}]{\setlength{\rightskip}{0pt plus 5cm}void LCI\_\-confReport (
\begin{DoxyParamCaption}
\item[{{\bf LCI\_\-configuration} $\ast$}]{cnf, }
\item[{FILE $\ast$}]{fp}
\end{DoxyParamCaption}
)}\label{configure_8c_a43aa4f3ab836636a344adc18f6e19478}


Produce a formatted report of the contents of a binary configuration. 


\begin{DoxyParams}{Parameters}
{\em cnf} & Pointer to the configuration structure to output\\
\hline
{\em fp} & Pointer to file to print report \\
\hline
\end{DoxyParams}


References LCI\_\-version::maj, LCI\_\-version::min, LCI\_\-version::mode, and \_\-LCI\_\-configuration::ver.

\index{configure.c@{configure.c}!LCI\_\-confTimes@{LCI\_\-confTimes}}
\index{LCI\_\-confTimes@{LCI\_\-confTimes}!configure.c@{configure.c}}
\subsubsection[{LCI\_\-confTimes}]{\setlength{\rightskip}{0pt plus 5cm}void LCI\_\-confTimes (
\begin{DoxyParamCaption}
\item[{{\bf LCI\_\-configuration} $\ast$}]{cnf, }
\item[{int}]{clear, }
\item[{long long $\ast$}]{lci\_\-time, }
\item[{long long $\ast$}]{lat\_\-time}
\end{DoxyParamCaption}
)}\label{configure_8c_ad55095be6a7e2d48feddb150c8367f13}


Return accumulated configuration times. 


\begin{DoxyParams}{Parameters}
{\em cnf} & Pointer to an initialised, populated configuration structure.\\
\hline
{\em clear} & If TRUE, clear the times after copying them.\\
\hline
{\em lci\_\-time} & Address of a variable to receive the accumulated time taken to do LCI configurations or NULL if the time is not wanted.\\
\hline
{\em lat\_\-time} & Address of a variable to receive the accumulated time taken to do any LAT configurations or NULL if the time is not wanted. \\
\hline
\end{DoxyParams}


References \_\-LCI\_\-configuration::lat\_\-time, and \_\-LCI\_\-configuration::lci\_\-time.



Referenced by LCI\_\-calibrate().

\index{configure.c@{configure.c}!LCI\_\-confTriggers@{LCI\_\-confTriggers}}
\index{LCI\_\-confTriggers@{LCI\_\-confTriggers}!configure.c@{configure.c}}
\subsubsection[{LCI\_\-confTriggers}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LCI\_\-confTriggers (
\begin{DoxyParamCaption}
\item[{{\bf LCI\_\-configuration} $\ast$}]{cnf}
\end{DoxyParamCaption}
)}\label{configure_8c_a8deb98af23281fae5e70b404f08ed27f}


Return the number of triggers required. 


\begin{DoxyParams}{Parameters}
{\em cnf} & Pointer to an initialised, populated configuration structure\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Number of triggers to request for this configuration 
\end{DoxyReturn}


References LCI\_\-cnfInput::gem, \_\-LCI\_\-configuration::inp, and LCI\_\-gemInput::nev.

