radio_tool 0.2.1
|
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 |
Definition at line 27 of file ailunce_fw.hpp.
|
inline |
Definition at line 30 of file ailunce_fw.hpp.
|
inlinestatic |
Create an instance of this class for the firmware factory
Definition at line 58 of file ailunce_fw.hpp.
|
overridevirtual |
Decrypt the firmware data
Implements radio_tool::fw::FirmwareSupport.
Definition at line 95 of file ailunce_fw.cpp.
|
overridevirtual |
Encrypt the firmware data
Implements radio_tool::fw::FirmwareSupport.
Definition at line 100 of file ailunce_fw.cpp.
|
overridevirtual |
Implements radio_tool::fw::FirmwareSupport.
Definition at line 86 of file ailunce_fw.cpp.
|
overridevirtual |
Check if another firwamware handle is compatible with this
Implements radio_tool::fw::FirmwareSupport.
Definition at line 130 of file ailunce_fw.cpp.
|
overridevirtual |
Read the firmware file from disk
Implements radio_tool::fw::FirmwareSupport.
Definition at line 26 of file ailunce_fw.cpp.
|
overridevirtual |
Set the radio model this firmware file is for
Implements radio_tool::fw::FirmwareSupport.
Definition at line 91 of file ailunce_fw.cpp.
|
static |
Tests a file if its a valid firmware file
Definition at line 65 of file ailunce_fw.cpp.
|
static |
Tests if a radio model is supported by this firmware handler
Definition at line 81 of file ailunce_fw.cpp.
|
overridevirtual |
Returns general info about the firmware file
Implements radio_tool::fw::FirmwareSupport.
Definition at line 51 of file ailunce_fw.cpp.
|
overridevirtual |
Write the firmware file to disk
Implements radio_tool::fw::FirmwareSupport.
Definition at line 41 of file ailunce_fw.cpp.