Private object for UsbInterface.
Definition at line 35 of file usbinterface.cpp.
Classes | |
class | UsbContext |
A context manager for libusb. More... | |
Public Member Functions | |
XsResultValue | libusbErrorToXrv (int libusbError, XsResultValue hint=XRV_ERROR) |
Map a libusb_error to XsResultValue. More... | |
const char * | libusbErrorToString (int libusbError) |
Convert a libusb error to a human-readable string. More... | |
Static Public Member Functions | |
static UsbContext & | getContextManager () |
Public Attributes | |
uint32_t | m_endTime |
The time at which an operation will end in ms, used by several functions. More... | |
XsResultValue | m_lastResult |
The last result of an operation. More... | |
uint32_t | m_timeout |
int | m_interfaceCount |
int | m_interface |
int | m_dataInEndPoint |
int | m_dataOutEndPoint |
char | m_portname [256] |
libusb_device_handle * | m_deviceHandle |
|
inlinestatic |
Definition at line 110 of file usbinterface.cpp.
Referenced by UsbInterface::closeUsb(), UsbInterface::flushData(), UsbInterface::open(), UsbInterface::readData(), UsbInterface::usbAddress(), UsbInterface::usbBus(), and UsbInterface::writeData().
|
inline |
Convert a libusb error to a human-readable string.
Definition at line 170 of file usbinterface.cpp.
Referenced by UsbInterface::readData(), and UsbInterface::writeData().
|
inline |
Map a libusb_error to XsResultValue.
param libusbError [in] the result code to convert param hint give a hint for the code to return when in doubt
Definition at line 121 of file usbinterface.cpp.
References XRV_INVALIDOPERATION, XRV_INVALIDPARAM, XRV_NOPORTOPEN, XRV_NOTFOUND, XRV_NOTIMPLEMENTED, XRV_OK, XRV_OUTOFMEMORY, XRV_TIMEOUT, and XRV_UNEXPECTEDMSG.
Referenced by UsbInterface::open(), UsbInterface::readData(), and UsbInterface::writeData().
int UsbInterfacePrivate::m_dataInEndPoint |
Definition at line 54 of file usbinterface.cpp.
Referenced by UsbInterface::closeUsb(), UsbInterface::flushData(), UsbInterface::open(), UsbInterface::readData(), and UsbInterface::UsbInterface().
int UsbInterfacePrivate::m_dataOutEndPoint |
Definition at line 55 of file usbinterface.cpp.
Referenced by UsbInterface::closeUsb(), UsbInterface::open(), UsbInterface::UsbInterface(), and UsbInterface::writeData().
libusb_device_handle* UsbInterfacePrivate::m_deviceHandle |
Definition at line 83 of file usbinterface.cpp.
Referenced by UsbInterface::closeUsb(), UsbInterface::flushData(), UsbInterface::isOpen(), UsbInterface::open(), UsbInterface::readData(), UsbInterface::usbAddress(), UsbInterface::usbBus(), UsbInterface::UsbInterface(), and UsbInterface::writeData().
uint32_t UsbInterfacePrivate::m_endTime |
The time at which an operation will end in ms, used by several functions.
Definition at line 44 of file usbinterface.cpp.
Referenced by UsbInterface::closeUsb(), UsbInterface::flushData(), UsbInterface::open(), and UsbInterface::UsbInterface().
int UsbInterfacePrivate::m_interface |
Definition at line 53 of file usbinterface.cpp.
Referenced by UsbInterface::closeUsb(), and UsbInterface::open().
int UsbInterfacePrivate::m_interfaceCount |
Definition at line 52 of file usbinterface.cpp.
Referenced by UsbInterface::closeUsb(), and UsbInterface::open().
XsResultValue UsbInterfacePrivate::m_lastResult |
The last result of an operation.
Definition at line 46 of file usbinterface.cpp.
Referenced by UsbInterface::closeUsb(), UsbInterface::flushData(), UsbInterface::getLastResult(), UsbInterface::open(), UsbInterface::readData(), UsbInterface::setRawIo(), UsbInterface::setTimeout(), UsbInterface::UsbInterface(), UsbInterface::waitForData(), and UsbInterface::writeData().
char UsbInterfacePrivate::m_portname[256] |
Definition at line 56 of file usbinterface.cpp.
Referenced by UsbInterface::getPortName(), UsbInterface::open(), and UsbInterface::UsbInterface().
uint32_t UsbInterfacePrivate::m_timeout |
The default timeout value to use during blocking operations. A value of 0 means that all operations become non-blocking.
Definition at line 50 of file usbinterface.cpp.
Referenced by UsbInterface::getTimeout(), UsbInterface::readData(), UsbInterface::setTimeout(), UsbInterface::UsbInterface(), and UsbInterface::waitForData().
Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020 |