|
libdrmconf
0.12.0
A library to program DMR radios.
|
Base class for all C7000 based radios. More...
#include <c7000device.hh>


Classes | |
| class | Descriptor |
| Specialization to address a DFU device uniquely. More... | |
| struct | Packet |
| Request/response packet. More... | |
Public Member Functions | |
| C7000Device (const USBDeviceDescriptor &descr, const ErrorStack &err=ErrorStack(), QObject *parent=nullptr) | |
| Opens a connection to the C7000 device. | |
| virtual | ~C7000Device () |
| Destructor. | |
| bool | isOpen () const |
Returns true if the C7000 interface is open. | |
| void | close () |
| Closes the C7000 interface. | |
Static Public Member Functions | |
| static USBDeviceInfo | interfaceInfo () |
| Returns some information about the interface. | |
| static QList< USBDeviceDescriptor > | detect (bool saveOnly=true) |
| Finds all C7000 interfaces. | |
Protected Member Functions | |
| bool | sendRecv (const Packet &request, Packet &response, const ErrorStack &err=ErrorStack()) |
| Sends the given request to the device and receives the response. | |
Protected Attributes | |
| libusb_context * | _ctx |
| USB context. | |
| libusb_device_handle * | _dev |
| USB device object. | |
Base class for all C7000 based radios.
This class implements the basic communication protocol to these devices.