\doxysection{osmo\+\_\+usb\+\_\+matchspec Struct Reference}
\label{structosmo__usb__matchspec}\index{osmo\_usb\_matchspec@{osmo\_usb\_matchspec}}


Description of the USB device+interface we\textquotesingle{}re looking for.  




{\ttfamily \#include $<$libusb.\+h$>$}

\doxysubsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\begin{tabbing}
xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=\kill
struct \{\\
\>int \textbf{ vendor\_id}\\
\>\>{\em typically -\/1 for compile time defaults }\\
\>int \textbf{ product\_id}\\
\>\>{\em typically -\/1 for compile time defaults }\\
\>char $\ast$ \textbf{ path}\\
\>\>{\em used for disambiguation when multiple matches; can be NULL }\\
\} \textbf{ dev}\\

\end{tabbing}\begin{DoxyCompactList}\small\item\em specify the USB device \end{DoxyCompactList}\item 
int \textbf{ config\+\_\+id}
\begin{DoxyCompactList}\small\item\em specify the USB configuration \end{DoxyCompactList}\item 
\begin{tabbing}
xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=\kill
struct \{\\
\>int \textbf{ class}\\
\>\>{\em -\/1 or a user-\/specified class }\\
\>int \textbf{ subclass}\\
\>\>{\em -\/1 or a user-\/specified subclass }\\
\>int \textbf{ proto}\\
\>\>{\em -\/1 or a user-\/specified protocol }\\
\>int \textbf{ num}\\
\>int \textbf{ altsetting}\\
\} \textbf{ intf}\\

\end{tabbing}\begin{DoxyCompactList}\small\item\em specify the USB interface \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Description of the USB device+interface we\textquotesingle{}re looking for. 

\doxysubsection{Field Documentation}
\mbox{\label{structosmo__usb__matchspec_a143b0dc4a4c53ccfc6d784356c3355c1}} 
\index{osmo\_usb\_matchspec@{osmo\_usb\_matchspec}!altsetting@{altsetting}}
\index{altsetting@{altsetting}!osmo\_usb\_matchspec@{osmo\_usb\_matchspec}}
\doxysubsubsection{altsetting}
{\footnotesize\ttfamily int osmo\+\_\+usb\+\_\+matchspec\+::altsetting}



Referenced by \textbf{ osmo\+\_\+libusb\+\_\+match\+\_\+init()}.

\mbox{\label{structosmo__usb__matchspec_af7903ecabffc7528e6b5f0d1d123f5cc}} 
\index{osmo\_usb\_matchspec@{osmo\_usb\_matchspec}!class@{class}}
\index{class@{class}!osmo\_usb\_matchspec@{osmo\_usb\_matchspec}}
\doxysubsubsection{class}
{\footnotesize\ttfamily int osmo\+\_\+usb\+\_\+matchspec\+::class}



-\/1 or a user-\/specified class 



Referenced by \textbf{ osmo\+\_\+libusb\+\_\+find\+\_\+open\+\_\+claim()}, and \textbf{ osmo\+\_\+libusb\+\_\+match\+\_\+init()}.

\mbox{\label{structosmo__usb__matchspec_a335963b17d2bd5fa46677d17e584b884}} 
\index{osmo\_usb\_matchspec@{osmo\_usb\_matchspec}!config\_id@{config\_id}}
\index{config\_id@{config\_id}!osmo\_usb\_matchspec@{osmo\_usb\_matchspec}}
\doxysubsubsection{config\_id}
{\footnotesize\ttfamily int osmo\+\_\+usb\+\_\+matchspec\+::config\+\_\+id}



specify the USB configuration 

typically -\/1 unless user selects specific configuration 

Referenced by \textbf{ osmo\+\_\+libusb\+\_\+match\+\_\+init()}.

\mbox{\label{structosmo__usb__matchspec_a21a02d5576f7678045eb9d781403ac48}} 
\index{osmo\_usb\_matchspec@{osmo\_usb\_matchspec}!dev@{dev}}
\index{dev@{dev}!osmo\_usb\_matchspec@{osmo\_usb\_matchspec}}
\doxysubsubsection{}
{\footnotesize\ttfamily struct  \{ ... \}  osmo\+\_\+usb\+\_\+matchspec\+::dev}



specify the USB device 



Referenced by \textbf{ osmo\+\_\+libusb\+\_\+find\+\_\+open\+\_\+claim()}, and \textbf{ osmo\+\_\+libusb\+\_\+match\+\_\+init()}.

\mbox{\label{structosmo__usb__matchspec_a17419545f259fe3fef3bac92aac6bcc5}} 
\index{osmo\_usb\_matchspec@{osmo\_usb\_matchspec}!intf@{intf}}
\index{intf@{intf}!osmo\_usb\_matchspec@{osmo\_usb\_matchspec}}
\doxysubsubsection{}
{\footnotesize\ttfamily struct  \{ ... \}  osmo\+\_\+usb\+\_\+matchspec\+::intf}



specify the USB interface 



Referenced by \textbf{ osmo\+\_\+libusb\+\_\+find\+\_\+open\+\_\+claim()}, and \textbf{ osmo\+\_\+libusb\+\_\+match\+\_\+init()}.

\mbox{\label{structosmo__usb__matchspec_a5de41814df545e139dee64659dc28f53}} 
\index{osmo\_usb\_matchspec@{osmo\_usb\_matchspec}!num@{num}}
\index{num@{num}!osmo\_usb\_matchspec@{osmo\_usb\_matchspec}}
\doxysubsubsection{num}
{\footnotesize\ttfamily int osmo\+\_\+usb\+\_\+matchspec\+::num}



Referenced by \textbf{ osmo\+\_\+libusb\+\_\+find\+\_\+open\+\_\+claim()}, and \textbf{ osmo\+\_\+libusb\+\_\+match\+\_\+init()}.

\mbox{\label{structosmo__usb__matchspec_a13058fa29555db23fc3f2d350ee9cc4b}} 
\index{osmo\_usb\_matchspec@{osmo\_usb\_matchspec}!path@{path}}
\index{path@{path}!osmo\_usb\_matchspec@{osmo\_usb\_matchspec}}
\doxysubsubsection{path}
{\footnotesize\ttfamily char$\ast$ osmo\+\_\+usb\+\_\+matchspec\+::path}



used for disambiguation when multiple matches; can be NULL 



Referenced by \textbf{ osmo\+\_\+libusb\+\_\+find\+\_\+open\+\_\+claim()}, and \textbf{ osmo\+\_\+libusb\+\_\+match\+\_\+init()}.

\mbox{\label{structosmo__usb__matchspec_a91fa6ce8d9605bf02c1d380b102c9630}} 
\index{osmo\_usb\_matchspec@{osmo\_usb\_matchspec}!product\_id@{product\_id}}
\index{product\_id@{product\_id}!osmo\_usb\_matchspec@{osmo\_usb\_matchspec}}
\doxysubsubsection{product\_id}
{\footnotesize\ttfamily int osmo\+\_\+usb\+\_\+matchspec\+::product\+\_\+id}



typically -\/1 for compile time defaults 



Referenced by \textbf{ osmo\+\_\+libusb\+\_\+find\+\_\+open\+\_\+claim()}, and \textbf{ osmo\+\_\+libusb\+\_\+match\+\_\+init()}.

\mbox{\label{structosmo__usb__matchspec_aef99491ab86647510ee0c065776fd2ba}} 
\index{osmo\_usb\_matchspec@{osmo\_usb\_matchspec}!proto@{proto}}
\index{proto@{proto}!osmo\_usb\_matchspec@{osmo\_usb\_matchspec}}
\doxysubsubsection{proto}
{\footnotesize\ttfamily int osmo\+\_\+usb\+\_\+matchspec\+::proto}



-\/1 or a user-\/specified protocol 



Referenced by \textbf{ osmo\+\_\+libusb\+\_\+find\+\_\+open\+\_\+claim()}, and \textbf{ osmo\+\_\+libusb\+\_\+match\+\_\+init()}.

\mbox{\label{structosmo__usb__matchspec_aba7603637392d6460eab9cf7aacd6ed9}} 
\index{osmo\_usb\_matchspec@{osmo\_usb\_matchspec}!subclass@{subclass}}
\index{subclass@{subclass}!osmo\_usb\_matchspec@{osmo\_usb\_matchspec}}
\doxysubsubsection{subclass}
{\footnotesize\ttfamily int osmo\+\_\+usb\+\_\+matchspec\+::subclass}



-\/1 or a user-\/specified subclass 



Referenced by \textbf{ osmo\+\_\+libusb\+\_\+find\+\_\+open\+\_\+claim()}, and \textbf{ osmo\+\_\+libusb\+\_\+match\+\_\+init()}.

\mbox{\label{structosmo__usb__matchspec_a29a840d46ed1ed5ac2c2da56dad1ae44}} 
\index{osmo\_usb\_matchspec@{osmo\_usb\_matchspec}!vendor\_id@{vendor\_id}}
\index{vendor\_id@{vendor\_id}!osmo\_usb\_matchspec@{osmo\_usb\_matchspec}}
\doxysubsubsection{vendor\_id}
{\footnotesize\ttfamily int osmo\+\_\+usb\+\_\+matchspec\+::vendor\+\_\+id}



typically -\/1 for compile time defaults 



Referenced by \textbf{ osmo\+\_\+libusb\+\_\+find\+\_\+open\+\_\+claim()}, and \textbf{ osmo\+\_\+libusb\+\_\+match\+\_\+init()}.



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
include/osmocom/usb/\textbf{ libusb.\+h}\end{DoxyCompactItemize}
