1#ifndef OPENRTXINTERFACE_HH
2#define OPENRTXINTERFACE_HH
4#include "radiointerface.hh"
5#include "packetstream.hh"
46 static QList<USBDeviceDescriptor>
detect(
bool saveOnly=
true);
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition errorstack.hh:43
bool read_start(uint32_t bank, uint32_t addr, const ErrorStack &err=ErrorStack())
Starts the read process from the specified bank and at the given address.
Definition openrtx_interface.cc:57
bool reboot(const ErrorStack &err=ErrorStack())
Some radios need to be rebooted after being read or programmed.
Definition openrtx_interface.cc:88
static USBDeviceInfo interfaceInfo()
Returns some information about this interface.
Definition openrtx_interface.cc:95
bool write_start(uint32_t bank, uint32_t addr, const ErrorStack &err=ErrorStack())
Starts the write process into the specified bank and at the given address.
Definition openrtx_interface.cc:73
OpenRTXLink * _rtxLink
OpenRTX link interface.
Definition openrtx_interface.hh:51
static QList< USBDeviceDescriptor > detect(bool saveOnly=true)
Tries to find all interfaces connected AnyTone radios.
Definition openrtx_interface.cc:100
bool write(uint32_t bank, uint32_t addr, uint8_t *data, int nbytes, const ErrorStack &err=ErrorStack())
Writes a chunk of data at the address addr.
Definition openrtx_interface.cc:78
RadioInfo identifier(const ErrorStack &err=ErrorStack())
Returns a device identifier.
Definition openrtx_interface.cc:46
bool read_finish(const ErrorStack &err=ErrorStack())
This function ends a series of read operations.
Definition openrtx_interface.cc:67
OpenRTXInterface(const USBDeviceDescriptor &descr, const ErrorStack &err=ErrorStack(), QObject *parent=nullptr)
Constructor.
Definition openrtx_interface.cc:11
bool read(uint32_t bank, uint32_t addr, uint8_t *data, int nbytes, const ErrorStack &err=ErrorStack())
Reads a chunk of data from the block-address bno (block number).
Definition openrtx_interface.cc:62
bool write_finish(const ErrorStack &err=ErrorStack())
This function ends a series of write operations.
Definition openrtx_interface.cc:83
bool isOpen() const
Return true if a connection to the device has been established.
Definition openrtx_interface.cc:35
void close()
Closes the connection to the device.
Definition openrtx_interface.cc:40
Implements the OpenRTX link protocol.
Definition openrtx_link.hh:37
Provides some information about a radio model.
Definition radioinfo.hh:16
RadioInterface()
Hidden constructor.
Definition radiointerface.cc:11
Base class for all radio interface descriptors representing a unique interface to a connected radio.
Definition usbdevice.hh:197
Generic information about a possible radio interface.
Definition usbdevice.hh:121