#include <usb_libusb.h>
◆ LibUsbConnection()
| LibUsbConnection::LibUsbConnection |
( |
std::unique_ptr< LibUsbDevice > |
device | ) |
|
|
explicit |
◆ ~LibUsbConnection()
| LibUsbConnection::~LibUsbConnection |
( |
| ) |
|
|
override |
◆ Attach()
| bool LibUsbConnection::Attach |
( |
std::string * |
error | ) |
|
|
overridevirtual |
◆ Detach()
| bool LibUsbConnection::Detach |
( |
std::string * |
error | ) |
|
|
overridevirtual |
◆ DoTlsHandshake()
| bool LibUsbConnection::DoTlsHandshake |
( |
RSA * |
key, |
|
|
std::string * |
auth_key |
|
) |
| |
|
overridevirtual |
◆ GetSessionId()
| uint64_t LibUsbConnection::GetSessionId |
( |
| ) |
const |
◆ GUARDED_BY() [1/4]
| bool running_ LibUsbConnection::GUARDED_BY |
( |
mutex_ |
| ) |
|
|
private |
◆ GUARDED_BY() [2/4]
| std::thread read_thread_ LibUsbConnection::GUARDED_BY |
( |
mutex_ |
| ) |
|
|
private |
◆ GUARDED_BY() [3/4]
| std::thread write_thread_ LibUsbConnection::GUARDED_BY |
( |
mutex_ |
| ) |
|
|
private |
◆ GUARDED_BY() [4/4]
| std::deque< std::unique_ptr< apacket > > write_queue_ LibUsbConnection::GUARDED_BY |
( |
mutex_ |
| ) |
|
|
private |
◆ HandleStop()
| void LibUsbConnection::HandleStop |
( |
const std::string & |
reason | ) |
|
|
private |
◆ Init()
| void LibUsbConnection::Init |
( |
| ) |
|
◆ IsDetached()
| bool LibUsbConnection::IsDetached |
( |
| ) |
|
◆ MaxSpeedMbps()
| uint64_t LibUsbConnection::MaxSpeedMbps |
( |
| ) |
|
|
overridevirtual |
◆ NegotiatedSpeedMbps()
| uint64_t LibUsbConnection::NegotiatedSpeedMbps |
( |
| ) |
|
|
overridevirtual |
◆ OnError()
| void LibUsbConnection::OnError |
( |
const std::string & |
error | ) |
|
◆ Reset()
| void LibUsbConnection::Reset |
( |
| ) |
|
|
overridevirtual |
◆ Start()
| bool LibUsbConnection::Start |
( |
| ) |
|
|
overridevirtual |
◆ StartReadThread()
| void LibUsbConnection::StartReadThread |
( |
| ) |
|
|
private |
◆ StartWriteThread()
| void LibUsbConnection::StartWriteThread |
( |
| ) |
|
|
private |
◆ Stop()
| void LibUsbConnection::Stop |
( |
| ) |
|
|
overridevirtual |
◆ SupportsDetach()
| bool LibUsbConnection::SupportsDetach |
( |
| ) |
const |
|
overridevirtual |
◆ Write()
| bool LibUsbConnection::Write |
( |
std::unique_ptr< apacket > |
packet | ) |
|
|
overridevirtual |
◆ cv_write_
| std::condition_variable LibUsbConnection::cv_write_ |
|
private |
◆ detached_
| std::atomic<bool> LibUsbConnection::detached_ = false |
|
private |
◆ device_
◆ error_flag_
| std::once_flag LibUsbConnection::error_flag_ |
|
private |
◆ mutex_
| std::mutex LibUsbConnection::mutex_ |
|
private |
The documentation for this struct was generated from the following files: