\hypertarget{addr_8h}{
\section{addr.h File Reference}
\label{addr_8h}\index{addr.h@{addr.h}}
}
Functions converting flat index to/from hierarchical addressing. 

{\tt \#include \char`\"{}RIM/lrd.h\char`\"{}}\par


Include dependency graph for addr.h:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=151pt]{addr_8h__incl}
\end{center}
\end{figure}


This graph shows which files directly or indirectly include this file:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=87pt]{addr_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void \hyperlink{addr_8h_a0}{RIM\_\-layer\-Low} (const \hyperlink{structLayer__addr}{Layer\_\-addr} $\ast$layer, \hyperlink{structTEM__addr}{TEM\_\-addr} $\ast$tem)
\begin{CompactList}\small\item\em Convert the conceptual layer addressing of a TFE to the hierarchical form used to communicate with the LAT. \item\end{CompactList}\item 
void \hyperlink{addr_8h_a1}{RIM\_\-layer\-High} (const \hyperlink{structLayer__addr}{Layer\_\-addr} $\ast$layer, \hyperlink{structTEM__addr}{TEM\_\-addr} $\ast$tem)
\begin{CompactList}\small\item\em Convert the conceptual layer addressing of a TFE to the hierarchical form used to communicate with the LAT. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Functions converting flat index to/from hierarchical addressing. 

\begin{Desc}
\item[Author:]James Swain -- \href{mailto:jswain@slac.stanford.edu}{\tt jswain@slac.stanford.edu}\end{Desc}


\subsection{Function Documentation}
\hypertarget{addr_8h_a1}{
\index{addr.h@{addr.h}!RIM_layerHigh@{RIM\_\-layerHigh}}
\index{RIM_layerHigh@{RIM\_\-layerHigh}!addr.h@{addr.h}}
\subsubsection[RIM\_\-layerHigh]{\setlength{\rightskip}{0pt plus 5cm}void RIM\_\-layer\-High (const \hyperlink{structLayer__addr}{Layer\_\-addr} $\ast$ {\em layer}, \hyperlink{structTEM__addr}{TEM\_\-addr} $\ast$ {\em tem})}}
\label{addr_8h_a1}


Convert the conceptual layer addressing of a TFE to the hierarchical form used to communicate with the LAT. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em layer}]Address of the TFE / SPT in terms of layers \item[{\em tem}]Address of the TFE / TRC in terms of CC/RC\end{description}
\end{Desc}
Note that TFEs are usually referred to as being part of an X or Y layer. This identification is converted to an absolute layer number and stored in the rc space by addr-$>$rc = (layer\-Number $<$$<$ 1) $|$ is\-Ylayer. This conversion is performed by the XLM-$>$RIM converter, but is documented here since it is a storage convention.\hypertarget{addr_8h_a0}{
\index{addr.h@{addr.h}!RIM_layerLow@{RIM\_\-layerLow}}
\index{RIM_layerLow@{RIM\_\-layerLow}!addr.h@{addr.h}}
\subsubsection[RIM\_\-layerLow]{\setlength{\rightskip}{0pt plus 5cm}void RIM\_\-layer\-Low (const \hyperlink{structLayer__addr}{Layer\_\-addr} $\ast$ {\em layer}, \hyperlink{structTEM__addr}{TEM\_\-addr} $\ast$ {\em tem})}}
\label{addr_8h_a0}


Convert the conceptual layer addressing of a TFE to the hierarchical form used to communicate with the LAT. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em layer}]Address of the TFE / SPT in terms of layers \item[{\em tem}]Address of the TFE / TRC in terms of CC/RC\end{description}
\end{Desc}
Note that TFEs are usually referred to as being part of an X or Y layer. This identification is converted to an absolute layer number and stored in the rc space by addr-$>$rc = (layer\-Number $<$$<$ 1) $|$ is\-Ylayer. This conversion is performed by the XLM-$>$RIM converter, but is documented here since it is a storage convention.