radio_tool 0.2.1
|
Public Member Functions | |
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 |
Protected Member Functions | |
FirmwareSupport (const uint32_t &align=0) | |
Protected Attributes | |
const uint32_t | align |
std::vector< uint8_t > | data |
std::vector< std::pair< uint32_t, uint32_t > > | memory_ranges |
|
inlineprotected |
|
inlinevirtual |
|
pure virtual |
Decrypt the firmware data
Implemented in radio_tool::fw::AilunceFW, radio_tool::fw::CSFW, radio_tool::fw::TYTFW, radio_tool::fw::TYTSGLFW, and radio_tool::fw::YaesuFW.
|
pure virtual |
Encrypt the firmware data
Implemented in radio_tool::fw::AilunceFW, radio_tool::fw::CSFW, radio_tool::fw::TYTFW, radio_tool::fw::TYTSGLFW, and radio_tool::fw::YaesuFW.
|
inline |
|
inlinevirtual |
|
pure virtual |
Returns the radio model this firmware file is for
Implemented in radio_tool::fw::AilunceFW, radio_tool::fw::CSFW, radio_tool::fw::TYTFW, radio_tool::fw::TYTSGLFW, and radio_tool::fw::YaesuFW.
|
pure virtual |
Check if another firwamware handle is compatible with this
Implemented in radio_tool::fw::AilunceFW, radio_tool::fw::CSFW, radio_tool::fw::TYTFW, radio_tool::fw::TYTSGLFW, and radio_tool::fw::YaesuFW.
|
pure virtual |
Read the firmware file from disk
Implemented in radio_tool::fw::AilunceFW, radio_tool::fw::TYTFW, radio_tool::fw::TYTSGLFW, radio_tool::fw::YaesuFW, and radio_tool::fw::CSFW.
|
pure virtual |
Set the radio model this firmware file is for
Implemented in radio_tool::fw::AilunceFW, radio_tool::fw::CSFW, radio_tool::fw::TYTFW, radio_tool::fw::TYTSGLFW, and radio_tool::fw::YaesuFW.
|
pure virtual |
Returns general info about the firmware file
Implemented in radio_tool::fw::AilunceFW, radio_tool::fw::CSFW, radio_tool::fw::TYTFW, radio_tool::fw::TYTSGLFW, and radio_tool::fw::YaesuFW.
|
pure virtual |
Write the firmware file to disk
Implemented in radio_tool::fw::AilunceFW, radio_tool::fw::TYTFW, radio_tool::fw::TYTSGLFW, radio_tool::fw::YaesuFW, and radio_tool::fw::CSFW.
|
protected |
|
protected |
|
protected |