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

Public Member Functions

auto Read (const std::string &fw) -> void override
 
auto Write (const std::string &fw) -> void override
 
auto ToString () const -> std::string override
 
auto GetRadioModel () const -> const std::string override
 
auto SetRadioModel (const std::string &) -> void override
 
auto Decrypt () -> void override
 
auto Encrypt () -> void override
 
auto IsCompatible (const FirmwareSupport *Other) const -> bool 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 cs_fw.hpp.

Member Function Documentation

◆ Create()

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

Create an instance of this class for the firmware factory

Definition at line 69 of file cs_fw.hpp.

◆ Decrypt()

auto CSFW::Decrypt ( ) -> void
overridevirtual

Decrypt the firmware data

Implements radio_tool::fw::FirmwareSupport.

Definition at line 149 of file cs_fw.cpp.

◆ Encrypt()

auto CSFW::Encrypt ( ) -> void
overridevirtual

Encrypt the firmware data

Implements radio_tool::fw::FirmwareSupport.

Definition at line 155 of file cs_fw.cpp.

◆ GetRadioModel()

auto CSFW::GetRadioModel ( ) const -> const std::string
overridevirtual

Returns the radio model this firmware file is for

Implements radio_tool::fw::FirmwareSupport.

Definition at line 138 of file cs_fw.cpp.

◆ IsCompatible()

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

Check if another firwamware handle is compatible with this

Implements radio_tool::fw::FirmwareSupport.

Definition at line 222 of file cs_fw.cpp.

◆ Read()

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

Read the firmware file from disk

Implements radio_tool::fw::FirmwareSupport.

Definition at line 33 of file cs_fw.cpp.

◆ SetRadioModel()

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

Set the radio model this firmware file is for

Implements radio_tool::fw::FirmwareSupport.

Definition at line 144 of file cs_fw.cpp.

◆ SupportsFirmwareFile()

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

Tests a file if its a valid firmware file

Definition at line 161 of file cs_fw.cpp.

◆ SupportsRadioModel()

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

Definition at line 189 of file cs_fw.cpp.

◆ ToString()

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

Returns general info about the firmware file

Implements radio_tool::fw::FirmwareSupport.

Definition at line 117 of file cs_fw.cpp.

◆ Write()

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

Write the firmware file to disk

Implements radio_tool::fw::FirmwareSupport.

Definition at line 94 of file cs_fw.cpp.


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