Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Member Functions | Public Attributes
UsbInterfacePrivate::UsbContext Class Reference

Detailed Description

A context manager for libusb.

For predictable operation with libusb, it is recommended to use at least one context per library.

Definition at line 90 of file usbinterface.cpp.

Public Member Functions

 UsbContext ()
 Create the USB context. More...
 ~UsbContext ()
 Destroy the USB context. More...

Public Attributes

libusb_context * m_usbContext
XsLibUsb m_libUsb

Constructor & Destructor Documentation

◆ UsbContext()

UsbInterfacePrivate::UsbContext::UsbContext ( )

Create the USB context.

Definition at line 95 of file usbinterface.cpp.

References XsLibUsb::init, m_libUsb, and m_usbContext.

◆ ~UsbContext()

UsbInterfacePrivate::UsbContext::~UsbContext ( )

Destroy the USB context.

Definition at line 102 of file usbinterface.cpp.

References XsLibUsb::exit, m_libUsb, and m_usbContext.

Member Data Documentation

◆ m_libUsb

XsLibUsb UsbInterfacePrivate::UsbContext::m_libUsb

◆ m_usbContext

libusb_context* UsbInterfacePrivate::UsbContext::m_usbContext

Definition at line 103 of file usbinterface.cpp.

Referenced by UsbContext(), and ~UsbContext().

Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at lun oct 28 00:14:14 CET 2019