\hypertarget{i2c_8c}{
\section{i2c.c File Reference}
\label{i2c_8c}\index{i2c.c@{i2c.c}}
}
{\tt \#include \char`\"{}i2c.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void \hyperlink{i2c_8c_2dca72c99f7680a64f2b19dd55bfafc3}{i2c\_\-timerproc} (void)
\item 
uint8\_\-t \hyperlink{i2c_8c_7282a85ea65afcc46b8e2df00ff33428}{read\_\-i2c\_\-device} (uint8\_\-t address, uint8\_\-t bytes\_\-to\_\-read, uint8\_\-t $\ast$data)
\begin{CompactList}\small\item\em Read 1 or more bytes from an I2C device to memory. \item\end{CompactList}\item 
uint8\_\-t \hyperlink{i2c_8c_69593d9d0912463f4ce2de30edc5a031}{write\_\-i2c\_\-device} (uint8\_\-t address, uint8\_\-t bytes, uint8\_\-t $\ast$data)
\begin{CompactList}\small\item\em Write 1 or more bytes to an I2C device from memory. \item\end{CompactList}\end{CompactItemize}


\subsection{Function Documentation}
\hypertarget{i2c_8c_2dca72c99f7680a64f2b19dd55bfafc3}{
\index{i2c.c@{i2c.c}!i2c\_\-timerproc@{i2c\_\-timerproc}}
\index{i2c\_\-timerproc@{i2c\_\-timerproc}!i2c.c@{i2c.c}}
\subsubsection[{i2c\_\-timerproc}]{\setlength{\rightskip}{0pt plus 5cm}void i2c\_\-timerproc (void)}}
\label{i2c_8c_2dca72c99f7680a64f2b19dd55bfafc3}


\hypertarget{i2c_8c_7282a85ea65afcc46b8e2df00ff33428}{
\index{i2c.c@{i2c.c}!read\_\-i2c\_\-device@{read\_\-i2c\_\-device}}
\index{read\_\-i2c\_\-device@{read\_\-i2c\_\-device}!i2c.c@{i2c.c}}
\subsubsection[{read\_\-i2c\_\-device}]{\setlength{\rightskip}{0pt plus 5cm}uint8\_\-t read\_\-i2c\_\-device (uint8\_\-t {\em address}, \/  uint8\_\-t {\em bytes}, \/  uint8\_\-t $\ast$ {\em data})}}
\label{i2c_8c_7282a85ea65afcc46b8e2df00ff33428}


Read 1 or more bytes from an I2C device to memory. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em address}]Address if I2C device. The bottom bit is set to enfoce an I2C read. \item[{\em bytes}]Number of bytes to be returned. \item[{\em $\ast$data}]Pointer to location to store values returned. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]returns error code generated from I2C transaction. Currently always returns 0. \end{Desc}
\hypertarget{i2c_8c_69593d9d0912463f4ce2de30edc5a031}{
\index{i2c.c@{i2c.c}!write\_\-i2c\_\-device@{write\_\-i2c\_\-device}}
\index{write\_\-i2c\_\-device@{write\_\-i2c\_\-device}!i2c.c@{i2c.c}}
\subsubsection[{write\_\-i2c\_\-device}]{\setlength{\rightskip}{0pt plus 5cm}uint8\_\-t write\_\-i2c\_\-device (uint8\_\-t {\em address}, \/  uint8\_\-t {\em bytes}, \/  uint8\_\-t $\ast$ {\em data})}}
\label{i2c_8c_69593d9d0912463f4ce2de30edc5a031}


Write 1 or more bytes to an I2C device from memory. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em address}]Address if I2C device. The bottom bit is cleared to enforce an I2C write. \item[{\em bytes}]Number of bytes to be sent. \item[{\em $\ast$data}]Pointer to location in memory of first byte of set of data. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]returns error code generated from I2C transaction. Currently always returns 0. \end{Desc}
