\hypertarget{diskmii_8h}{
\section{libdiskmii/include/diskmii.h File Reference}
\label{diskmii_8h}\index{libdiskmii/include/diskmii.h@{libdiskmii/include/diskmii.h}}
}
{\ttfamily \#include $<$diskmii/ff.h$>$}\par
{\ttfamily \#include $<$diskmii/diskio.h$>$}\par
{\ttfamily \#include $<$diskmii/nandfs.h$>$}\par
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\hypertarget{diskmii_8h_a7a888f04c8dda7f3a9b06575d5279b73}{
\#define {\bfseries ELM\_\-SD}~0}
\label{diskmii_8h_a7a888f04c8dda7f3a9b06575d5279b73}

\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{diskmii_8h_a2af82b07da25d561d2e8298a0f6ae518}{diskmii\_\-init} ()
\begin{DoxyCompactList}\small\item\em Initialize libdiskmii. \item\end{DoxyCompactList}\item 
int \hyperlink{diskmii_8h_a43b26e6c625f7542da45fcd2840e82fe}{diskmii\_\-mountdevice} (int drv)
\begin{DoxyCompactList}\small\item\em Mounts a device. \item\end{DoxyCompactList}\item 
int \hyperlink{diskmii_8h_a1d3908bd6d448d7eee8684577d23211c}{diskmii\_\-remountdevice} (int drv)
\begin{DoxyCompactList}\small\item\em Unmounts a device, then mounts it again. \item\end{DoxyCompactList}\item 
int \hyperlink{diskmii_8h_ad1b70a01ad9cf3ca5b7f47e8f7e16d4d}{diskmii\_\-unmountdevice} (int drv)
\begin{DoxyCompactList}\small\item\em Unmounts a device. \item\end{DoxyCompactList}\item 
int \hyperlink{diskmii_8h_a53ad0f72efd9350a52095756f668684b}{diskmii\_\-mount} ()
\begin{DoxyCompactList}\small\item\em Mounts all available devices. \item\end{DoxyCompactList}\item 
int \hyperlink{diskmii_8h_a750e61ac9bedf901835ad2e69f9e47a0}{diskmii\_\-remount} ()
\begin{DoxyCompactList}\small\item\em Remounts all available devices. \item\end{DoxyCompactList}\item 
int \hyperlink{diskmii_8h_aadce3e4cb6acced298f4ec121a4b82e9}{diskmii\_\-unmount} ()
\begin{DoxyCompactList}\small\item\em Unmounts all available devices. \item\end{DoxyCompactList}\item 
BOOL \hyperlink{diskmii_8h_a6e199de17689ff6c8cf671600867536c}{diskmii\_\-is\_\-inserted} (int drv)
\begin{DoxyCompactList}\small\item\em Checks if a device has a disk inserted. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Control of the diskmii interface. Doesn't use \hyperlink{structnewlib__device__t}{newlib\_\-device\_\-t} yet. 

\subsection{Function Documentation}
\hypertarget{diskmii_8h_a2af82b07da25d561d2e8298a0f6ae518}{
\index{diskmii.h@{diskmii.h}!diskmii\_\-init@{diskmii\_\-init}}
\index{diskmii\_\-init@{diskmii\_\-init}!diskmii.h@{diskmii.h}}
\subsubsection[{diskmii\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}int diskmii\_\-init ()}}
\label{diskmii_8h_a2af82b07da25d561d2e8298a0f6ae518}


Initialize libdiskmii. 

\begin{DoxyReturn}{Returns}
0 on success, anything else is failure. 
\end{DoxyReturn}
\hypertarget{diskmii_8h_a6e199de17689ff6c8cf671600867536c}{
\index{diskmii.h@{diskmii.h}!diskmii\_\-is\_\-inserted@{diskmii\_\-is\_\-inserted}}
\index{diskmii\_\-is\_\-inserted@{diskmii\_\-is\_\-inserted}!diskmii.h@{diskmii.h}}
\subsubsection[{diskmii\_\-is\_\-inserted}]{\setlength{\rightskip}{0pt plus 5cm}BOOL diskmii\_\-is\_\-inserted (int {\em drv})}}
\label{diskmii_8h_a6e199de17689ff6c8cf671600867536c}


Checks if a device has a disk inserted. 

\begin{DoxyReturn}{Returns}
TRUE if the device has a disk, FALSE otherwise. 
\end{DoxyReturn}
\hypertarget{diskmii_8h_a53ad0f72efd9350a52095756f668684b}{
\index{diskmii.h@{diskmii.h}!diskmii\_\-mount@{diskmii\_\-mount}}
\index{diskmii\_\-mount@{diskmii\_\-mount}!diskmii.h@{diskmii.h}}
\subsubsection[{diskmii\_\-mount}]{\setlength{\rightskip}{0pt plus 5cm}int diskmii\_\-mount ()}}
\label{diskmii_8h_a53ad0f72efd9350a52095756f668684b}


Mounts all available devices. 

\begin{DoxyReturn}{Returns}
0 on success, anything else is failure. 
\end{DoxyReturn}
\hypertarget{diskmii_8h_a43b26e6c625f7542da45fcd2840e82fe}{
\index{diskmii.h@{diskmii.h}!diskmii\_\-mountdevice@{diskmii\_\-mountdevice}}
\index{diskmii\_\-mountdevice@{diskmii\_\-mountdevice}!diskmii.h@{diskmii.h}}
\subsubsection[{diskmii\_\-mountdevice}]{\setlength{\rightskip}{0pt plus 5cm}int diskmii\_\-mountdevice (int {\em drv})}}
\label{diskmii_8h_a43b26e6c625f7542da45fcd2840e82fe}


Mounts a device. 


\begin{DoxyParams}{Parameters}
\item[{\em drv}]the device to mount. \end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success, anything else is failure. 
\end{DoxyReturn}
\hypertarget{diskmii_8h_a750e61ac9bedf901835ad2e69f9e47a0}{
\index{diskmii.h@{diskmii.h}!diskmii\_\-remount@{diskmii\_\-remount}}
\index{diskmii\_\-remount@{diskmii\_\-remount}!diskmii.h@{diskmii.h}}
\subsubsection[{diskmii\_\-remount}]{\setlength{\rightskip}{0pt plus 5cm}int diskmii\_\-remount ()}}
\label{diskmii_8h_a750e61ac9bedf901835ad2e69f9e47a0}


Remounts all available devices. 

\begin{DoxyReturn}{Returns}
0 on success, anything else is failure. 
\end{DoxyReturn}
\hypertarget{diskmii_8h_a1d3908bd6d448d7eee8684577d23211c}{
\index{diskmii.h@{diskmii.h}!diskmii\_\-remountdevice@{diskmii\_\-remountdevice}}
\index{diskmii\_\-remountdevice@{diskmii\_\-remountdevice}!diskmii.h@{diskmii.h}}
\subsubsection[{diskmii\_\-remountdevice}]{\setlength{\rightskip}{0pt plus 5cm}int diskmii\_\-remountdevice (int {\em drv})}}
\label{diskmii_8h_a1d3908bd6d448d7eee8684577d23211c}


Unmounts a device, then mounts it again. 


\begin{DoxyParams}{Parameters}
\item[{\em drv}]the device to remount. \end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success, anything else is failure. 
\end{DoxyReturn}
\hypertarget{diskmii_8h_aadce3e4cb6acced298f4ec121a4b82e9}{
\index{diskmii.h@{diskmii.h}!diskmii\_\-unmount@{diskmii\_\-unmount}}
\index{diskmii\_\-unmount@{diskmii\_\-unmount}!diskmii.h@{diskmii.h}}
\subsubsection[{diskmii\_\-unmount}]{\setlength{\rightskip}{0pt plus 5cm}int diskmii\_\-unmount ()}}
\label{diskmii_8h_aadce3e4cb6acced298f4ec121a4b82e9}


Unmounts all available devices. 

\begin{DoxyReturn}{Returns}
0 on success, anything else is failure. 
\end{DoxyReturn}
\hypertarget{diskmii_8h_ad1b70a01ad9cf3ca5b7f47e8f7e16d4d}{
\index{diskmii.h@{diskmii.h}!diskmii\_\-unmountdevice@{diskmii\_\-unmountdevice}}
\index{diskmii\_\-unmountdevice@{diskmii\_\-unmountdevice}!diskmii.h@{diskmii.h}}
\subsubsection[{diskmii\_\-unmountdevice}]{\setlength{\rightskip}{0pt plus 5cm}int diskmii\_\-unmountdevice (int {\em drv})}}
\label{diskmii_8h_ad1b70a01ad9cf3ca5b7f47e8f7e16d4d}


Unmounts a device. 


\begin{DoxyParams}{Parameters}
\item[{\em drv}]the device to unmount. \end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success, anything else is failure. 
\end{DoxyReturn}
