#include <UsbDevice.h>
Public Member Functions | |
Location () | |
Location (uint8_t _bus, uint8_t _port=0, uint8_t _addr=0, uint16_t _vid=0, uint16_t _pid=0) | |
bool | match (const Location &other) const |
bool | operator!= (const Location &other) const |
bool | operator< (const Location &other) const |
bool | operator<= (const Location &other) const |
bool | operator== (const Location &other) const |
bool | operator> (const Location &other) const |
bool | operator>= (const Location &other) const |
Static Public Member Functions | |
static bool | match (const Location &a, const Location &b) |
Public Attributes | |
union { | |
struct { | |
uint8_t __pad0__:8 | |
uint8_t addr | |
uint8_t bus | |
uint8_t port | |
} | |
uint32_t loc | |
}; | |
uint16_t | pid |
uint16_t | vid |
Definition at line 72 of file UsbDevice.h.
lusb::UsbDevice::Location::Location | ( | ) | [inline] |
Definition at line 74 of file UsbDevice.h.
lusb::UsbDevice::Location::Location | ( | uint8_t | _bus, |
uint8_t | _port = 0 , |
||
uint8_t | _addr = 0 , |
||
uint16_t | _vid = 0 , |
||
uint16_t | _pid = 0 |
||
) | [inline] |
Definition at line 75 of file UsbDevice.h.
static bool lusb::UsbDevice::Location::match | ( | const Location & | a, |
const Location & | b | ||
) | [inline, static] |
Definition at line 82 of file UsbDevice.h.
bool lusb::UsbDevice::Location::match | ( | const Location & | other | ) | const [inline] |
Definition at line 88 of file UsbDevice.h.
bool lusb::UsbDevice::Location::operator!= | ( | const Location & | other | ) | const [inline] |
Definition at line 94 of file UsbDevice.h.
bool lusb::UsbDevice::Location::operator< | ( | const Location & | other | ) | const [inline] |
Definition at line 97 of file UsbDevice.h.
bool lusb::UsbDevice::Location::operator<= | ( | const Location & | other | ) | const [inline] |
Definition at line 103 of file UsbDevice.h.
bool lusb::UsbDevice::Location::operator== | ( | const Location & | other | ) | const [inline] |
Definition at line 91 of file UsbDevice.h.
bool lusb::UsbDevice::Location::operator> | ( | const Location & | other | ) | const [inline] |
Definition at line 100 of file UsbDevice.h.
bool lusb::UsbDevice::Location::operator>= | ( | const Location & | other | ) | const [inline] |
Definition at line 106 of file UsbDevice.h.
union { ... } |
Definition at line 115 of file UsbDevice.h.
uint8_t lusb::UsbDevice::Location::addr |
Definition at line 113 of file UsbDevice.h.
uint8_t lusb::UsbDevice::Location::bus |
Definition at line 112 of file UsbDevice.h.
uint32_t lusb::UsbDevice::Location::loc |
Definition at line 110 of file UsbDevice.h.
uint16_t lusb::UsbDevice::Location::pid |
Definition at line 119 of file UsbDevice.h.
uint8_t lusb::UsbDevice::Location::port |
Definition at line 114 of file UsbDevice.h.
uint16_t lusb::UsbDevice::Location::vid |
Definition at line 118 of file UsbDevice.h.