23#include <radio_tool/fw/fw.hpp>
31 uint32_t baseaddr_offset;
37 uint8_t padding1[0x24];
38 uint32_t rsrcHeaderSize;
39 uint32_t unkHeaderSize;
40 uint32_t imageHeaderSize;
41 uint8_t padding2[0x24];
50 auto Read(
const std::string &fw) ->
void override;
51 auto Write(
const std::string &fw) ->
void override;
52 auto ToString()
const -> std::string
override;
55 auto Decrypt() ->
void override;
56 auto Encrypt() ->
void override;
64 static auto SupportsRadioModel(
const std::string &model) -> bool;
69 static auto Create() -> std::unique_ptr<FirmwareSupport>
71 return std::make_unique<CSFW>();
77 auto MakeChecksum() const -> uint16_t;
78 auto MakeFiledata() const -> std::vector<uint8_t>;
79 auto UpdateHeader() ->
void;