136 USBDeviceInfo(Class cls, uint16_t vid, uint16_t pid,
bool save=
true);
151 bool isValid()
const;
154 Class interfaceClass()
const;
157 bool hasVendorID()
const;
159 uint16_t vendorId()
const;
161 bool hasProductID()
const;
163 uint16_t productId()
const;
166 QString description()
const;
169 QString longDescription()
const;
221 const QVariant &
device()
const;
227 static QList<USBDeviceDescriptor>
detect(
bool saveOnly=
true);
Base class for all radio interface descriptors representing a unique interface to a connected radio.
Definition: usbdevice.hh:197
QString deviceHandle() const
Returns a unique string representation of the device information.
Definition: usbdevice.cc:295
static QList< USBDeviceDescriptor > detect(bool saveOnly=true)
Searches for all connected radios (may contain false positives).
Definition: usbdevice.cc:312
QVariant _device
Holds some information to identify the radio interface uniquely.
Definition: usbdevice.hh:237
bool validSerial() const
Checks a serial port.
Definition: usbdevice.cc:255
QString description() const
Returns a human readable description of the device.
Definition: usbdevice.cc:273
bool validRawUSB() const
Checks a raw USB device.
Definition: usbdevice.cc:209
bool isValid() const
Returns true if the descriptor is still valid.
Definition: usbdevice.cc:190
USBDeviceDescriptor & operator=(const USBDeviceDescriptor &other)
Assignment.
Definition: usbdevice.cc:183
USBDeviceDescriptor()
Empty constructor.
Definition: usbdevice.cc:158
const QVariant & device() const
Returns the device information identifying the interface uniquely.
Definition: usbdevice.cc:290
Generic information about a possible radio interface.
Definition: usbdevice.hh:121
uint16_t _pid
The USB pid.
Definition: usbdevice.hh:183
bool _save
If true, it is save to send commands to the device without user approval.
Definition: usbdevice.hh:185
uint16_t _vid
The USB vid.
Definition: usbdevice.hh:181
Class _class
The class of the interface.
Definition: usbdevice.hh:179
Class
Possible interface types.
Definition: usbdevice.hh:124
Combines the USB bus and device number, to address a USB device uniquely.
Definition: usbdevice.hh:98
uint8_t bus
Holds the bus number.
Definition: usbdevice.hh:99
uint32_t locationId
On MacOS, holds the location ID.
Definition: usbdevice.hh:101
bool operator==(const USBDeviceHandle &other)
Compares only wrt bus and device number.
Definition: usbdevice.cc:32
uint8_t device
Holds the device address.
Definition: usbdevice.hh:100
USBDeviceHandle()
Empty constructor.
Definition: usbdevice.cc:19