\hypertarget{usb__util_8h}{}\doxysection{dev/usb/usb\+\_\+util.h File Reference}
\label{usb__util_8h}\index{dev/usb/usb\_util.h@{dev/usb/usb\_util.h}}
This graph shows which files directly or indirectly include this file\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dd/dff/usb__util_8h__dep__incl}
\end{center}
\end{figure}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
uint8\+\_\+t \mbox{\hyperlink{usb__util_8h_a7e0b76fa91e891e0439d03afad4fc889}{usb\+\_\+make\+\_\+str\+\_\+desc}} (void $\ast$ptr, uint16\+\_\+t max\+\_\+len, const char $\ast$s)
\item 
void \mbox{\hyperlink{usb__util_8h_a9b4958f7f163d307ca471472ca9ca014}{usb\+\_\+printbcd}} (char $\ast$p, uint16\+\_\+t p\+\_\+len, uint16\+\_\+t bcd)
\item 
void \mbox{\hyperlink{usb__util_8h_a6ad463416368cc88c3dee5f2496e4da7}{usb\+\_\+trim\+\_\+spaces}} (char $\ast$p)
\item 
int \mbox{\hyperlink{usb__util_8h_a42e1e1df5311999a79a6eefba78cc5cd}{usb\+\_\+check\+\_\+request}} (struct \mbox{\hyperlink{structusb__device}{usb\+\_\+device}} $\ast$, struct \mbox{\hyperlink{structusb__device__request}{usb\+\_\+device\+\_\+request}} $\ast$)
\end{DoxyCompactItemize}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{usb__util_8h_a42e1e1df5311999a79a6eefba78cc5cd}\label{usb__util_8h_a42e1e1df5311999a79a6eefba78cc5cd}} 
\index{usb\_util.h@{usb\_util.h}!usb\_check\_request@{usb\_check\_request}}
\index{usb\_check\_request@{usb\_check\_request}!usb\_util.h@{usb\_util.h}}
\doxysubsubsection{\texorpdfstring{usb\_check\_request()}{usb\_check\_request()}}
{\footnotesize\ttfamily int usb\+\_\+check\+\_\+request (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structusb__device}{usb\+\_\+device}} $\ast$}]{,  }\item[{struct \mbox{\hyperlink{structusb__device__request}{usb\+\_\+device\+\_\+request}} $\ast$}]{ }\end{DoxyParamCaption})}



Referenced by \mbox{\hyperlink{usbhid_8c_source_l00683}{usbhid\+\_\+ioctl()}}.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=301pt]{d9/d69/usb__util_8h_a42e1e1df5311999a79a6eefba78cc5cd_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{usb__util_8h_a7e0b76fa91e891e0439d03afad4fc889}\label{usb__util_8h_a7e0b76fa91e891e0439d03afad4fc889}} 
\index{usb\_util.h@{usb\_util.h}!usb\_make\_str\_desc@{usb\_make\_str\_desc}}
\index{usb\_make\_str\_desc@{usb\_make\_str\_desc}!usb\_util.h@{usb\_util.h}}
\doxysubsubsection{\texorpdfstring{usb\_make\_str\_desc()}{usb\_make\_str\_desc()}}
{\footnotesize\ttfamily uint8\+\_\+t usb\+\_\+make\+\_\+str\+\_\+desc (\begin{DoxyParamCaption}\item[{void $\ast$}]{ptr,  }\item[{uint16\+\_\+t}]{max\+\_\+len,  }\item[{const char $\ast$}]{s }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{usb__util_8c_source_l00193}{193}} of file \mbox{\hyperlink{usb__util_8c_source}{usb\+\_\+util.\+c}}.



References \mbox{\hyperlink{usb_8h_source_l00578}{usb\+\_\+string\+\_\+descriptor\+::b\+Descriptor\+Type}}, \mbox{\hyperlink{usb_8h_source_l00577}{usb\+\_\+string\+\_\+descriptor\+::b\+Length}}, \mbox{\hyperlink{usb_8h_source_l00579}{usb\+\_\+string\+\_\+descriptor\+::b\+String}}, \mbox{\hyperlink{usb_8h_source_l00197}{UDESC\+\_\+\+STRING}}, and \mbox{\hyperlink{usb__endian_8h_source_l00100}{USETW2}}.



Referenced by \mbox{\hyperlink{usb__template__audio_8c_source_l00413}{audio\+\_\+init()}}, \mbox{\hyperlink{usb__template__cdceem_8c_source_l00202}{cdceem\+\_\+init()}}, \mbox{\hyperlink{ehci_8c_source_l02998}{ehci\+\_\+roothub\+\_\+exec()}}, \mbox{\hyperlink{usb__template__cdce_8c_source_l00280}{eth\+\_\+init()}}, \mbox{\hyperlink{usb__template__kbd_8c_source_l00238}{kbd\+\_\+init()}}, \mbox{\hyperlink{usb__template__midi_8c_source_l00259}{midi\+\_\+init()}}, \mbox{\hyperlink{usb__template__modem_8c_source_l00273}{modem\+\_\+init()}}, \mbox{\hyperlink{usb__template__mouse_8c_source_l00236}{mouse\+\_\+init()}}, \mbox{\hyperlink{usb__template__msc_8c_source_l00201}{msc\+\_\+init()}}, \mbox{\hyperlink{usb__template__mtp_8c_source_l00268}{mtp\+\_\+init()}}, \mbox{\hyperlink{usb__template__multi_8c_source_l00432}{multi\+\_\+init()}}, \mbox{\hyperlink{ohci_8c_source_l02049}{ohci\+\_\+roothub\+\_\+exec()}}, \mbox{\hyperlink{usb__template__phone_8c_source_l00431}{phone\+\_\+init()}}, \mbox{\hyperlink{usb__template__serialnet_8c_source_l00388}{serialnet\+\_\+init()}}, \mbox{\hyperlink{uhci_8c_source_l02418}{uhci\+\_\+roothub\+\_\+exec()}}, \mbox{\hyperlink{usb__template_8c_source_l00173}{usb\+\_\+temp\+\_\+sysctl()}}, and \mbox{\hyperlink{xhci_8c_source_l03214}{xhci\+\_\+roothub\+\_\+exec()}}.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d69/usb__util_8h_a7e0b76fa91e891e0439d03afad4fc889_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{usb__util_8h_a9b4958f7f163d307ca471472ca9ca014}\label{usb__util_8h_a9b4958f7f163d307ca471472ca9ca014}} 
\index{usb\_util.h@{usb\_util.h}!usb\_printbcd@{usb\_printbcd}}
\index{usb\_printbcd@{usb\_printbcd}!usb\_util.h@{usb\_util.h}}
\doxysubsubsection{\texorpdfstring{usb\_printbcd()}{usb\_printbcd()}}
{\footnotesize\ttfamily void usb\+\_\+printbcd (\begin{DoxyParamCaption}\item[{char $\ast$}]{p,  }\item[{uint16\+\_\+t}]{p\+\_\+len,  }\item[{uint16\+\_\+t}]{bcd }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{usb__util_8c_source_l00159}{159}} of file \mbox{\hyperlink{usb__util_8c_source}{usb\+\_\+util.\+c}}.

\mbox{\Hypertarget{usb__util_8h_a6ad463416368cc88c3dee5f2496e4da7}\label{usb__util_8h_a6ad463416368cc88c3dee5f2496e4da7}} 
\index{usb\_util.h@{usb\_util.h}!usb\_trim\_spaces@{usb\_trim\_spaces}}
\index{usb\_trim\_spaces@{usb\_trim\_spaces}!usb\_util.h@{usb\_util.h}}
\doxysubsubsection{\texorpdfstring{usb\_trim\_spaces()}{usb\_trim\_spaces()}}
{\footnotesize\ttfamily void usb\+\_\+trim\+\_\+spaces (\begin{DoxyParamCaption}\item[{char $\ast$}]{p }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{usb__util_8c_source_l00173}{173}} of file \mbox{\hyperlink{usb__util_8c_source}{usb\+\_\+util.\+c}}.



Referenced by \mbox{\hyperlink{usb__device_8c_source_l02488}{usb\+\_\+set\+\_\+device\+\_\+strings()}}.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d69/usb__util_8h_a6ad463416368cc88c3dee5f2496e4da7_icgraph}
\end{center}
\end{figure}
