\hypertarget{classBMeasureApi_1_1CommsUsb}{}\section{B\+Measure\+Api\+::Comms\+Usb Class Reference}
\label{classBMeasureApi_1_1CommsUsb}\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}


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

Inheritance diagram for B\+Measure\+Api\+::Comms\+Usb\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classBMeasureApi_1_1CommsUsb}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classBMeasureApi_1_1CommsUsb_a89b726445e52f51ea6a8175d00fd6cfa}{Comms\+Usb}} ()
\item 
\mbox{\hyperlink{classBMeasureApi_1_1CommsUsb_ad9d25520a0389521078d94e623311c7b}{$\sim$\+Comms\+Usb}} ()
\item 
\textbf{ B\+Error} \mbox{\hyperlink{classBMeasureApi_1_1CommsUsb_a69e797f8ac2d639a4ca625704b487fa7}{connect}} (\textbf{ B\+String} device)
\item 
\textbf{ B\+Error} \mbox{\hyperlink{classBMeasureApi_1_1CommsUsb_a18954e773870a48ebdf488a5fbb3a46e}{disconnect}} ()
\item 
\textbf{ B\+U\+Int} \mbox{\hyperlink{classBMeasureApi_1_1CommsUsb_a6ebb81bc5b51e730c20606422946b75a}{read\+Available}} ()
\item 
\textbf{ B\+Error} \mbox{\hyperlink{classBMeasureApi_1_1CommsUsb_ab4297990183dd77b18b40c2dc30b6d39}{read}} (void $\ast$\textbf{ data}, \textbf{ B\+U\+Int32} num, \textbf{ B\+U\+Int32} \&n\+Trans)
\item 
\textbf{ B\+Error} \mbox{\hyperlink{classBMeasureApi_1_1CommsUsb_a58a04f86bae9cea47b2b4dcc8f7302cc}{write}} (const void $\ast$\textbf{ data}, \textbf{ B\+U\+Int32} num, \textbf{ B\+U\+Int32} \&n\+Trans)
\item 
\textbf{ B\+Error} \mbox{\hyperlink{classBMeasureApi_1_1CommsUsb_a48fc9ac45cb953c54515faaa7000b318}{wait}} (\textbf{ B\+U\+Int32} event\+Set, \textbf{ B\+Timeout} timeout=-\/1, \textbf{ B\+U\+Int32} num=1)
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ B\+Error} \mbox{\hyperlink{classBMeasureApi_1_1CommsUsb_a0ed8ae2cfba717eb25f0be72fa6978fe}{read\+Chunk}} ()
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\textbf{ B\+String} \mbox{\hyperlink{classBMeasureApi_1_1CommsUsb_ad0168cea8c3fb6a3009ac06a7a44d6b0}{odevice}}
\item 
libusb\+\_\+context $\ast$ \mbox{\hyperlink{classBMeasureApi_1_1CommsUsb_a40a5148a7e881576f881b4be9044db96}{ocontext}}
\item 
libusb\+\_\+device\+\_\+handle $\ast$ \mbox{\hyperlink{classBMeasureApi_1_1CommsUsb_a4852cfb27ca5b12006a6c4285f6403f0}{odev}}
\item 
char \mbox{\hyperlink{classBMeasureApi_1_1CommsUsb_af57e37f18dc628209f7244a8bbfddfdf}{obuffer}} \mbox{[}102400\mbox{]}
\item 
\textbf{ B\+U\+Int} \mbox{\hyperlink{classBMeasureApi_1_1CommsUsb_a72d146513fb8a8462bde9843a8994310}{onum}}
\item 
\textbf{ Bool} \mbox{\hyperlink{classBMeasureApi_1_1CommsUsb_a57a030488fbdfaa5df08ee0f61e87b2c}{oterminated}}
\item 
\textbf{ Bool} \mbox{\hyperlink{classBMeasureApi_1_1CommsUsb_a6d7d56ffda28b604c8567c1ce0a48c98}{oterminating}}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classBMeasureApi_1_1CommsUsb_a89b726445e52f51ea6a8175d00fd6cfa}\label{classBMeasureApi_1_1CommsUsb_a89b726445e52f51ea6a8175d00fd6cfa}} 
\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}!CommsUsb@{CommsUsb}}
\index{CommsUsb@{CommsUsb}!BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}
\subsubsection{\texorpdfstring{CommsUsb()}{CommsUsb()}}
{\footnotesize\ttfamily B\+Measure\+Api\+::\+Comms\+Usb\+::\+Comms\+Usb (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{classBMeasureApi_1_1CommsUsb_ad9d25520a0389521078d94e623311c7b}\label{classBMeasureApi_1_1CommsUsb_ad9d25520a0389521078d94e623311c7b}} 
\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}!````~CommsUsb@{$\sim$CommsUsb}}
\index{````~CommsUsb@{$\sim$CommsUsb}!BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}
\subsubsection{\texorpdfstring{$\sim$CommsUsb()}{~CommsUsb()}}
{\footnotesize\ttfamily B\+Measure\+Api\+::\+Comms\+Usb\+::$\sim$\+Comms\+Usb (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



\subsection{Member Function Documentation}
\mbox{\Hypertarget{classBMeasureApi_1_1CommsUsb_a69e797f8ac2d639a4ca625704b487fa7}\label{classBMeasureApi_1_1CommsUsb_a69e797f8ac2d639a4ca625704b487fa7}} 
\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}!connect@{connect}}
\index{connect@{connect}!BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}
\subsubsection{\texorpdfstring{connect()}{connect()}}
{\footnotesize\ttfamily \textbf{ B\+Error} B\+Measure\+Api\+::\+Comms\+Usb\+::connect (\begin{DoxyParamCaption}\item[{\textbf{ B\+String}}]{device }\end{DoxyParamCaption})}

\mbox{\Hypertarget{classBMeasureApi_1_1CommsUsb_a18954e773870a48ebdf488a5fbb3a46e}\label{classBMeasureApi_1_1CommsUsb_a18954e773870a48ebdf488a5fbb3a46e}} 
\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}!disconnect@{disconnect}}
\index{disconnect@{disconnect}!BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}
\subsubsection{\texorpdfstring{disconnect()}{disconnect()}}
{\footnotesize\ttfamily \textbf{ B\+Error} B\+Measure\+Api\+::\+Comms\+Usb\+::disconnect (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Reimplemented from \textbf{ B\+Comms}.

\mbox{\Hypertarget{classBMeasureApi_1_1CommsUsb_ab4297990183dd77b18b40c2dc30b6d39}\label{classBMeasureApi_1_1CommsUsb_ab4297990183dd77b18b40c2dc30b6d39}} 
\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}!read@{read}}
\index{read@{read}!BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}
\subsubsection{\texorpdfstring{read()}{read()}}
{\footnotesize\ttfamily \textbf{ B\+Error} B\+Measure\+Api\+::\+Comms\+Usb\+::read (\begin{DoxyParamCaption}\item[{void $\ast$}]{data,  }\item[{\textbf{ B\+U\+Int32}}]{num,  }\item[{\textbf{ B\+U\+Int32} \&}]{n\+Trans }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Implements \textbf{ B\+Comms}.

\mbox{\Hypertarget{classBMeasureApi_1_1CommsUsb_a6ebb81bc5b51e730c20606422946b75a}\label{classBMeasureApi_1_1CommsUsb_a6ebb81bc5b51e730c20606422946b75a}} 
\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}!readAvailable@{readAvailable}}
\index{readAvailable@{readAvailable}!BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}
\subsubsection{\texorpdfstring{readAvailable()}{readAvailable()}}
{\footnotesize\ttfamily \textbf{ B\+U\+Int} B\+Measure\+Api\+::\+Comms\+Usb\+::read\+Available (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Reimplemented from \textbf{ B\+Comms}.

\mbox{\Hypertarget{classBMeasureApi_1_1CommsUsb_a0ed8ae2cfba717eb25f0be72fa6978fe}\label{classBMeasureApi_1_1CommsUsb_a0ed8ae2cfba717eb25f0be72fa6978fe}} 
\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}!readChunk@{readChunk}}
\index{readChunk@{readChunk}!BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}
\subsubsection{\texorpdfstring{readChunk()}{readChunk()}}
{\footnotesize\ttfamily \textbf{ B\+Error} B\+Measure\+Api\+::\+Comms\+Usb\+::read\+Chunk (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}}

\mbox{\Hypertarget{classBMeasureApi_1_1CommsUsb_a48fc9ac45cb953c54515faaa7000b318}\label{classBMeasureApi_1_1CommsUsb_a48fc9ac45cb953c54515faaa7000b318}} 
\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}!wait@{wait}}
\index{wait@{wait}!BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}
\subsubsection{\texorpdfstring{wait()}{wait()}}
{\footnotesize\ttfamily \textbf{ B\+Error} B\+Measure\+Api\+::\+Comms\+Usb\+::wait (\begin{DoxyParamCaption}\item[{\textbf{ B\+U\+Int32}}]{event\+Set,  }\item[{\textbf{ B\+Timeout}}]{timeout = {\ttfamily -\/1},  }\item[{\textbf{ B\+U\+Int32}}]{num = {\ttfamily 1} }\end{DoxyParamCaption})}

\mbox{\Hypertarget{classBMeasureApi_1_1CommsUsb_a58a04f86bae9cea47b2b4dcc8f7302cc}\label{classBMeasureApi_1_1CommsUsb_a58a04f86bae9cea47b2b4dcc8f7302cc}} 
\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}!write@{write}}
\index{write@{write}!BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}
\subsubsection{\texorpdfstring{write()}{write()}}
{\footnotesize\ttfamily \textbf{ B\+Error} B\+Measure\+Api\+::\+Comms\+Usb\+::write (\begin{DoxyParamCaption}\item[{const void $\ast$}]{data,  }\item[{\textbf{ B\+U\+Int32}}]{num,  }\item[{\textbf{ B\+U\+Int32} \&}]{n\+Trans }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Implements \textbf{ B\+Comms}.



\subsection{Member Data Documentation}
\mbox{\Hypertarget{classBMeasureApi_1_1CommsUsb_af57e37f18dc628209f7244a8bbfddfdf}\label{classBMeasureApi_1_1CommsUsb_af57e37f18dc628209f7244a8bbfddfdf}} 
\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}!obuffer@{obuffer}}
\index{obuffer@{obuffer}!BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}
\subsubsection{\texorpdfstring{obuffer}{obuffer}}
{\footnotesize\ttfamily char B\+Measure\+Api\+::\+Comms\+Usb\+::obuffer\mbox{[}102400\mbox{]}\hspace{0.3cm}{\ttfamily [private]}}

\mbox{\Hypertarget{classBMeasureApi_1_1CommsUsb_a40a5148a7e881576f881b4be9044db96}\label{classBMeasureApi_1_1CommsUsb_a40a5148a7e881576f881b4be9044db96}} 
\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}!ocontext@{ocontext}}
\index{ocontext@{ocontext}!BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}
\subsubsection{\texorpdfstring{ocontext}{ocontext}}
{\footnotesize\ttfamily libusb\+\_\+context$\ast$ B\+Measure\+Api\+::\+Comms\+Usb\+::ocontext\hspace{0.3cm}{\ttfamily [private]}}

\mbox{\Hypertarget{classBMeasureApi_1_1CommsUsb_a4852cfb27ca5b12006a6c4285f6403f0}\label{classBMeasureApi_1_1CommsUsb_a4852cfb27ca5b12006a6c4285f6403f0}} 
\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}!odev@{odev}}
\index{odev@{odev}!BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}
\subsubsection{\texorpdfstring{odev}{odev}}
{\footnotesize\ttfamily libusb\+\_\+device\+\_\+handle$\ast$ B\+Measure\+Api\+::\+Comms\+Usb\+::odev\hspace{0.3cm}{\ttfamily [private]}}

\mbox{\Hypertarget{classBMeasureApi_1_1CommsUsb_ad0168cea8c3fb6a3009ac06a7a44d6b0}\label{classBMeasureApi_1_1CommsUsb_ad0168cea8c3fb6a3009ac06a7a44d6b0}} 
\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}!odevice@{odevice}}
\index{odevice@{odevice}!BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}
\subsubsection{\texorpdfstring{odevice}{odevice}}
{\footnotesize\ttfamily \textbf{ B\+String} B\+Measure\+Api\+::\+Comms\+Usb\+::odevice\hspace{0.3cm}{\ttfamily [private]}}

\mbox{\Hypertarget{classBMeasureApi_1_1CommsUsb_a72d146513fb8a8462bde9843a8994310}\label{classBMeasureApi_1_1CommsUsb_a72d146513fb8a8462bde9843a8994310}} 
\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}!onum@{onum}}
\index{onum@{onum}!BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}
\subsubsection{\texorpdfstring{onum}{onum}}
{\footnotesize\ttfamily \textbf{ B\+U\+Int} B\+Measure\+Api\+::\+Comms\+Usb\+::onum\hspace{0.3cm}{\ttfamily [private]}}

\mbox{\Hypertarget{classBMeasureApi_1_1CommsUsb_a57a030488fbdfaa5df08ee0f61e87b2c}\label{classBMeasureApi_1_1CommsUsb_a57a030488fbdfaa5df08ee0f61e87b2c}} 
\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}!oterminated@{oterminated}}
\index{oterminated@{oterminated}!BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}
\subsubsection{\texorpdfstring{oterminated}{oterminated}}
{\footnotesize\ttfamily \textbf{ Bool} B\+Measure\+Api\+::\+Comms\+Usb\+::oterminated\hspace{0.3cm}{\ttfamily [private]}}

\mbox{\Hypertarget{classBMeasureApi_1_1CommsUsb_a6d7d56ffda28b604c8567c1ce0a48c98}\label{classBMeasureApi_1_1CommsUsb_a6d7d56ffda28b604c8567c1ce0a48c98}} 
\index{BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}!oterminating@{oterminating}}
\index{oterminating@{oterminating}!BMeasureApi::CommsUsb@{BMeasureApi::CommsUsb}}
\subsubsection{\texorpdfstring{oterminating}{oterminating}}
{\footnotesize\ttfamily \textbf{ Bool} B\+Measure\+Api\+::\+Comms\+Usb\+::oterminating\hspace{0.3cm}{\ttfamily [private]}}



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{CommsUsb_8h}{Comms\+Usb.\+h}}\item 
\mbox{\hyperlink{CommsUsb_8cpp}{Comms\+Usb.\+cpp}}\end{DoxyCompactItemize}
