radio_tool 0.2.1
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
radio_tool::radio::TYTRadio Class Reference
Inheritance diagram for radio_tool::radio::TYTRadio:
Inheritance graph
Collaboration diagram for radio_tool::radio::TYTRadio:
Collaboration graph

Public Member Functions

 TYTRadio (libusb_device_handle *h)
 
auto WriteFirmware (const std::string &file) -> void override
 
auto ToString () const -> const std::string override
 
auto GetDFU () const -> const dfu::TYTDFU *
 
virtual auto WriteFirmware (const std::string &file) -> void=0
 
virtual auto ToString () const -> const std::string=0
 

Static Public Member Functions

static auto SupportsDevice (const libusb_device_descriptor &dev) -> bool
 
static auto Create (libusb_device_handle *h) -> TYTRadio *
 

Detailed Description

Definition at line 28 of file tyt_radio.hpp.

Constructor & Destructor Documentation

◆ TYTRadio()

radio_tool::radio::TYTRadio::TYTRadio ( libusb_device_handle *  h)
inline

Definition at line 31 of file tyt_radio.hpp.

Member Function Documentation

◆ Create()

static auto radio_tool::radio::TYTRadio::Create ( libusb_device_handle *  h) -> TYTRadio*
inlinestatic

Definition at line 50 of file tyt_radio.hpp.

◆ GetDFU()

auto radio_tool::radio::TYTRadio::GetDFU ( ) const -> const dfu::TYTDFU*
inline

Get the handler used to communicate with this device

Definition at line 45 of file tyt_radio.hpp.

◆ SupportsDevice()

static auto radio_tool::radio::TYTRadio::SupportsDevice ( const libusb_device_descriptor &  dev) -> bool
inlinestatic

Definition at line 37 of file tyt_radio.hpp.

◆ ToString()

auto TYTRadio::ToString ( ) const -> const std::string
overridevirtual

Get general info about the radio

Implements radio_tool::radio::RadioOperations.

Definition at line 31 of file tyt_radio.cpp.

Here is the call graph for this function:

◆ WriteFirmware()

auto TYTRadio::WriteFirmware ( const std::string &  file) -> void
overridevirtual

Write a firmware file to the device (Firmware Upgrade)

Implements radio_tool::radio::RadioOperations.

Definition at line 45 of file tyt_radio.cpp.

Here is the call graph for this function:

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