\hypertarget{struct_simple_unit}{
\section{SimpleUnit Struct Reference}
\label{struct_simple_unit}\index{SimpleUnit@{SimpleUnit}}
}


A simple unit, corresponding to, for example, ‘MHz’.  




{\ttfamily \#include $<$unity.h$>$}



Collaboration diagram for SimpleUnit:
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{struct_simple_unit_af3b0d3f25b9d4c112a2f4d614c6a9f52}{
char \hyperlink{struct_simple_unit_af3b0d3f25b9d4c112a2f4d614c6a9f52}{base10\_\-p}}
\label{struct_simple_unit_af3b0d3f25b9d4c112a2f4d614c6a9f52}

\begin{DoxyCompactList}\small\item\em True (non-\/zero) if the prefix is a power of 10; false if it's a power of 2. \end{DoxyCompactList}\item 
const \hyperlink{struct_unit_def}{UnitDef} $\ast$ \hyperlink{struct_simple_unit_a1612945af33dacb5bf2e8e92a2c4cee9}{base\_\-unit\_\-def}
\begin{DoxyCompactList}\small\item\em The base unit of this unit specification, as a known unit. \end{DoxyCompactList}\item 
char $\ast$ \hyperlink{struct_simple_unit_aee4fb897551484772d2ac8c089ca3187}{base\_\-unit\_\-string}
\begin{DoxyCompactList}\small\item\em The base unit of this unit specification. \end{DoxyCompactList}\item 
int \hyperlink{struct_simple_unit_a12e78e96b01d33b47269a8e8608f9761}{prefix\_\-power}
\begin{DoxyCompactList}\small\item\em The base-\/10 logarithm of the prefix in front of the unit. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
A simple unit, corresponding to, for example, ‘MHz’. 

\subsection{Field Documentation}
\hypertarget{struct_simple_unit_a1612945af33dacb5bf2e8e92a2c4cee9}{
\index{SimpleUnit@{SimpleUnit}!base\_\-unit\_\-def@{base\_\-unit\_\-def}}
\index{base\_\-unit\_\-def@{base\_\-unit\_\-def}!SimpleUnit@{SimpleUnit}}
\subsubsection[{base\_\-unit\_\-def}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf UnitDef}$\ast$ {\bf base\_\-unit\_\-def}}}
\label{struct_simple_unit_a1612945af33dacb5bf2e8e92a2c4cee9}


The base unit of this unit specification, as a known unit. 

If this is not a known unit (in the syntax which parsed the associated expression) then this will be NULL. \hypertarget{struct_simple_unit_aee4fb897551484772d2ac8c089ca3187}{
\index{SimpleUnit@{SimpleUnit}!base\_\-unit\_\-string@{base\_\-unit\_\-string}}
\index{base\_\-unit\_\-string@{base\_\-unit\_\-string}!SimpleUnit@{SimpleUnit}}
\subsubsection[{base\_\-unit\_\-string}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf base\_\-unit\_\-string}}}
\label{struct_simple_unit_aee4fb897551484772d2ac8c089ca3187}


The base unit of this unit specification. 

This might be ‘m’ for metres, ‘Hz’ for Hertz, and so on. \hypertarget{struct_simple_unit_a12e78e96b01d33b47269a8e8608f9761}{
\index{SimpleUnit@{SimpleUnit}!prefix\_\-power@{prefix\_\-power}}
\index{prefix\_\-power@{prefix\_\-power}!SimpleUnit@{SimpleUnit}}
\subsubsection[{prefix\_\-power}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf prefix\_\-power}}}
\label{struct_simple_unit_a12e78e96b01d33b47269a8e8608f9761}


The base-\/10 logarithm of the prefix in front of the unit. 

For example, this will be ‘-\/3’ for the ‘m’ (milli-\/) prefix. 

The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize}
\item 
\hyperlink{unity_8h}{unity.h}\end{DoxyCompactItemize}
