libdrmconf  0.12.0
A library to program DMR radios.
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
C7000Device Class Reference

Base class for all C7000 based radios. More...

#include <c7000device.hh>

Inheritance diagram for C7000Device:
Inheritance graph
[legend]
Collaboration diagram for C7000Device:
Collaboration graph
[legend]

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< USBDeviceDescriptordetect (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.
 

Detailed Description

Base class for all C7000 based radios.

This class implements the basic communication protocol to these devices.


The documentation for this class was generated from the following files: