\doxysection{examples/spi\+\_\+gyro/spi\+\_\+gyro.ino File Reference}
\hypertarget{spi__gyro_8ino}{}\label{spi__gyro_8ino}\index{examples/spi\_gyro/spi\_gyro.ino@{examples/spi\_gyro/spi\_gyro.ino}}
{\ttfamily \#include $<$Dev\+Lab\+\_\+\+ICM20948.\+h$>$}\newline
\doxysubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{spi__gyro_8ino_abfcf05153ddbd63d5aff5d018867cc19}{CS\+\_\+\+PIN}}~D10
\item 
\#define \mbox{\hyperlink{spi__gyro_8ino_a785e68f45fbc9e3f0ed8219615c1ed1d}{SPI\+\_\+\+FAST\+\_\+\+SPEED}}~1000000
\begin{DoxyCompactList}\small\item\em SPI clock used during sensor initialization and reads. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
SPIClass \mbox{\hyperlink{spi__gyro_8ino_a5f08ba3a5b3d8e5b3fa5a22429ecfa2b}{spi\+\_\+bus}} (SPI)
\begin{DoxyCompactList}\small\item\em SPI bus object used by the IMU driver. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{spi__gyro_8ino_a4fc01d736fe50cf5b977f755b675f11d}{setup}} ()
\begin{DoxyCompactList}\small\item\em Configure the IMU for gyroscope-\/only operation over SPI. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{spi__gyro_8ino_afe461d27b9c48d5921c00d521181f12f}{loop}} ()
\begin{DoxyCompactList}\small\item\em Read and print gyroscope data in degrees per second. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classDevLab__ICM20948}{Dev\+Lab\+\_\+\+ICM20948}} \mbox{\hyperlink{spi__gyro_8ino_aa8226278adaa3f7fb2ad8b966f7787a1}{imu}}
\begin{DoxyCompactList}\small\item\em Global ICM-\/20948 driver instance. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Macro Definition Documentation}
\Hypertarget{spi__gyro_8ino_abfcf05153ddbd63d5aff5d018867cc19}\label{spi__gyro_8ino_abfcf05153ddbd63d5aff5d018867cc19} 
\index{spi\_gyro.ino@{spi\_gyro.ino}!CS\_PIN@{CS\_PIN}}
\index{CS\_PIN@{CS\_PIN}!spi\_gyro.ino@{spi\_gyro.ino}}
\doxysubsubsection{\texorpdfstring{CS\_PIN}{CS\_PIN}}
{\footnotesize\ttfamily \#define CS\+\_\+\+PIN~D10}



Definition at line \mbox{\hyperlink{spi__gyro_8ino_source_l00033}{33}} of file \mbox{\hyperlink{spi__gyro_8ino_source}{spi\+\_\+gyro.\+ino}}.

\Hypertarget{spi__gyro_8ino_a785e68f45fbc9e3f0ed8219615c1ed1d}\label{spi__gyro_8ino_a785e68f45fbc9e3f0ed8219615c1ed1d} 
\index{spi\_gyro.ino@{spi\_gyro.ino}!SPI\_FAST\_SPEED@{SPI\_FAST\_SPEED}}
\index{SPI\_FAST\_SPEED@{SPI\_FAST\_SPEED}!spi\_gyro.ino@{spi\_gyro.ino}}
\doxysubsubsection{\texorpdfstring{SPI\_FAST\_SPEED}{SPI\_FAST\_SPEED}}
{\footnotesize\ttfamily \#define SPI\+\_\+\+FAST\+\_\+\+SPEED~1000000}



SPI clock used during sensor initialization and reads. 



Definition at line \mbox{\hyperlink{spi__gyro_8ino_source_l00036}{36}} of file \mbox{\hyperlink{spi__gyro_8ino_source}{spi\+\_\+gyro.\+ino}}.



\doxysubsection{Function Documentation}
\Hypertarget{spi__gyro_8ino_afe461d27b9c48d5921c00d521181f12f}\label{spi__gyro_8ino_afe461d27b9c48d5921c00d521181f12f} 
\index{spi\_gyro.ino@{spi\_gyro.ino}!loop@{loop}}
\index{loop@{loop}!spi\_gyro.ino@{spi\_gyro.ino}}
\doxysubsubsection{\texorpdfstring{loop()}{loop()}}
{\footnotesize\ttfamily void loop (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Read and print gyroscope data in degrees per second. 



Definition at line \mbox{\hyperlink{spi__gyro_8ino_source_l00121}{121}} of file \mbox{\hyperlink{spi__gyro_8ino_source}{spi\+\_\+gyro.\+ino}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{spi__gyro_8ino_afe461d27b9c48d5921c00d521181f12f_cgraph}
\end{center}
\end{figure}
\Hypertarget{spi__gyro_8ino_a4fc01d736fe50cf5b977f755b675f11d}\label{spi__gyro_8ino_a4fc01d736fe50cf5b977f755b675f11d} 
\index{spi\_gyro.ino@{spi\_gyro.ino}!setup@{setup}}
\index{setup@{setup}!spi\_gyro.ino@{spi\_gyro.ino}}
\doxysubsubsection{\texorpdfstring{setup()}{setup()}}
{\footnotesize\ttfamily void setup (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Configure the IMU for gyroscope-\/only operation over SPI. 

\begin{DoxyNote}{Note}
The sketch expects a board-\/level CS\+\_\+\+PIN definition to select the chip-\/select pin used by begin\+SPI(). 
\end{DoxyNote}


Definition at line \mbox{\hyperlink{spi__gyro_8ino_source_l00050}{50}} of file \mbox{\hyperlink{spi__gyro_8ino_source}{spi\+\_\+gyro.\+ino}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{spi__gyro_8ino_a4fc01d736fe50cf5b977f755b675f11d_cgraph}
\end{center}
\end{figure}
\Hypertarget{spi__gyro_8ino_a5f08ba3a5b3d8e5b3fa5a22429ecfa2b}\label{spi__gyro_8ino_a5f08ba3a5b3d8e5b3fa5a22429ecfa2b} 
\index{spi\_gyro.ino@{spi\_gyro.ino}!spi\_bus@{spi\_bus}}
\index{spi\_bus@{spi\_bus}!spi\_gyro.ino@{spi\_gyro.ino}}
\doxysubsubsection{\texorpdfstring{spi\_bus()}{spi\_bus()}}
{\footnotesize\ttfamily SPIClass spi\+\_\+bus (\begin{DoxyParamCaption}\item[{SPI}]{ }\end{DoxyParamCaption})}



SPI bus object used by the IMU driver. 

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=213pt]{spi__gyro_8ino_a5f08ba3a5b3d8e5b3fa5a22429ecfa2b_icgraph}
\end{center}
\end{figure}


\doxysubsection{Variable Documentation}
\Hypertarget{spi__gyro_8ino_aa8226278adaa3f7fb2ad8b966f7787a1}\label{spi__gyro_8ino_aa8226278adaa3f7fb2ad8b966f7787a1} 
\index{spi\_gyro.ino@{spi\_gyro.ino}!imu@{imu}}
\index{imu@{imu}!spi\_gyro.ino@{spi\_gyro.ino}}
\doxysubsubsection{\texorpdfstring{imu}{imu}}
{\footnotesize\ttfamily \mbox{\hyperlink{classDevLab__ICM20948}{Dev\+Lab\+\_\+\+ICM20948}} imu}



Global ICM-\/20948 driver instance. 



Definition at line \mbox{\hyperlink{spi__gyro_8ino_source_l00039}{39}} of file \mbox{\hyperlink{spi__gyro_8ino_source}{spi\+\_\+gyro.\+ino}}.

