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

Public Member Functions

auto Read (const std::string &file) -> void override
 
auto Write (const std::string &file) -> void override
 
auto ToString () const -> std::string override
 
auto Decrypt () -> void override
 
auto Encrypt () -> void override
 
auto SetRadioModel (const std::string &) -> void override
 
auto IsCompatible (const FirmwareSupport *Other) const -> bool override
 
auto GetRadioModel () const -> const std::string override
 
- Public Member Functions inherited from radio_tool::fw::FirmwareSupport
virtual auto Read (const std::string &fw) -> void=0
 
virtual auto Write (const std::string &fw) -> void=0
 
virtual auto ToString () const -> std::string=0
 
virtual auto GetRadioModel () const -> const std::string=0
 
virtual auto SetRadioModel (const std::string &) -> void=0
 
virtual auto Decrypt () -> void=0
 
virtual auto Encrypt () -> void=0
 
virtual auto IsCompatible (const FirmwareSupport *Other) const -> bool=0
 
auto GetData () const -> const std::vector< uint8_t > &
 
virtual auto GetDataSegments () const -> const std::vector< FirmwareSegment >
 
virtual auto AppendSegment (const uint32_t &addr, const std::vector< uint8_t > &new_data) -> void
 

Static Public Member Functions

static auto SupportsFirmwareFile (const std::string &file) -> bool
 
static auto SupportsRadioModel (const std::string &model) -> bool
 
static auto Create () -> std::unique_ptr< FirmwareSupport >
 

Additional Inherited Members

- Protected Member Functions inherited from radio_tool::fw::FirmwareSupport
 FirmwareSupport (const uint32_t &align=0)
 
- Protected Attributes inherited from radio_tool::fw::FirmwareSupport
const uint32_t align
 
std::vector< uint8_t > data
 
std::vector< std::pair< uint32_t, uint32_t > > memory_ranges
 

Detailed Description

Definition at line 47 of file yaesu_fw.hpp.

Constructor & Destructor Documentation

◆ YaesuFW()

radio_tool::fw::YaesuFW::YaesuFW ( )
inline

Definition at line 50 of file yaesu_fw.hpp.

Member Function Documentation

◆ Create()

static auto radio_tool::fw::YaesuFW::Create ( ) -> std::unique_ptr<FirmwareSupport>
inlinestatic

Create an instance of this class for the firmware factory

Definition at line 79 of file yaesu_fw.hpp.

◆ Decrypt()

auto YaesuFW::Decrypt ( ) -> void
overridevirtual

Decrypt the firmware data

Implements radio_tool::fw::FirmwareSupport.

Definition at line 63 of file yaesu_fw.cpp.

◆ Encrypt()

auto YaesuFW::Encrypt ( ) -> void
overridevirtual

Encrypt the firmware data

Implements radio_tool::fw::FirmwareSupport.

Definition at line 64 of file yaesu_fw.cpp.

◆ GetRadioModel()

auto YaesuFW::GetRadioModel ( ) const -> const std::string
overridevirtual
Note
This is not the "firmware_model" which exists in the firmware header

Implements radio_tool::fw::FirmwareSupport.

Definition at line 66 of file yaesu_fw.cpp.

◆ IsCompatible()

auto YaesuFW::IsCompatible ( const FirmwareSupport Other) const -> bool
overridevirtual

Check if another firwamware handle is compatible with this

Implements radio_tool::fw::FirmwareSupport.

Definition at line 90 of file yaesu_fw.cpp.

◆ Read()

auto YaesuFW::Read ( const std::string &  fw) -> void
overridevirtual

Read the firmware file from disk

Implements radio_tool::fw::FirmwareSupport.

Definition at line 24 of file yaesu_fw.cpp.

◆ SetRadioModel()

auto YaesuFW::SetRadioModel ( const std::string &  ) -> void
overridevirtual

Set the radio model this firmware file is for

Implements radio_tool::fw::FirmwareSupport.

Definition at line 65 of file yaesu_fw.cpp.

◆ SupportsFirmwareFile()

auto YaesuFW::SupportsFirmwareFile ( const std::string &  file) -> bool
static

Tests a file if its a valid firmware file

Definition at line 71 of file yaesu_fw.cpp.

◆ SupportsRadioModel()

auto YaesuFW::SupportsRadioModel ( const std::string &  model) -> bool
static

Tests if a radio model is supported by this firmware handler

Definition at line 85 of file yaesu_fw.cpp.

◆ ToString()

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

Returns general info about the firmware file

Implements radio_tool::fw::FirmwareSupport.

Definition at line 55 of file yaesu_fw.cpp.

◆ Write()

auto YaesuFW::Write ( const std::string &  fw) -> void
overridevirtual

Write the firmware file to disk

Implements radio_tool::fw::FirmwareSupport.

Definition at line 44 of file yaesu_fw.cpp.


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