%! TEX root ../thesis.tex
\begin{figure}[H]
    \centering
    \begin{tabular}{l|>{\ttfamily}l l l l}
        \bfseries{addr} & \textnormal{\bfseries{name}} & \bfseries{type} & \bfseries{size} & \bfseries{perm} \\
        \hline
        \hline
        0x00 & onmask               & byte      & 1  & rw\\
        0x01 & offmask              & byte      & 1  & rw\\
        0x02 & anapot               & 9bit      & 2  & rw\\
        0x04 & digipot              & 9bit      & 2  & rw\\
        \hline
        0x06 & polyFit.V48          & float arr & 12 & rw\\
        0x12 & polyFit.I48          & float arr & 12 & rw\\
        0x1e & polyFit.V8           & float arr & 12 & rw\\
        0x2a & polyFit.V18          & float arr & 12 & rw\\
        0x36 & polyFit.I18          & float arr & 12 & rw\\
        0x42 & polyFit.T            & float arr & 12 & rw\\
        \hline
        0x4e & sampleTicks          & byte      & 1  & rw\\
        0x4f & V\_out                & float     & 4  & rw\\
        \hline
        0x53 & TEMP\_SENSOR         & float     & 4  & r\\
        0x57 & EXT\_AIN             & float     & 4  & r\\
        0x5b & MONITOR\_48V         & float     & 4  & r\\
        0x5f & MONITOR\_48I         & float     & 4  & r\\
        0x63 & MONITOR\_8VBUS       & float     & 4  & r\\
        0x67 & MONITOR\_8IBUS       & float     & 4  & r\\
        0x6b & MONITOR\_8V\_0       & float     & 4  & r\\
        0x6f & MONITOR\_8V\_1       & float     & 4  & r\\
        0x73 & MONITOR\_8V\_2       & float     & 4  & r\\
        0x77 & MONITOR\_8V\_3       & float     & 4  & r\\
        0x7b & VDD\_1V8\_ANA        & float     & 4  & r\\
        0x7f & VDD\_1V8\_IOUT\_ANA  & float     & 4  & r\\
        0x83 & VDD\_1V8\_DIGI       & float     & 4  & r\\
        0x87 & VDD\_1V8\_IOUT\_DIGI & float     & 4  & r\\
        \hline
        0x8b & CommitHash           & float     & 4  & s\\
        0x8f & CommitDirtyFlag      & byte      & 1  & s\\
        0x90 & STM32UUID            & 96bit     & 12 & s\\
    \end{tabular}
    \caption{memory mapping of the packed struct moved over i2c, \mintinline{cpp}{addr} is the address to use, \mintinline{cpp}{type} is the c++ type, \mintinline{cpp}{size} is in bytes and \mintinline{cpp}{perm} denotes read-writability. writability}
    \label{registerbuffer}
\end{figure}
