radio_tool 0.2.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
radio_tool::fw::TYTRadioConfig Class Reference

#include <tyt_fw.hpp>

Collaboration diagram for radio_tool::fw::TYTRadioConfig:
Collaboration graph

Public Member Functions

 TYTRadioConfig (const std::string &model, const std::string &fw_model, const std::vector< uint8_t > &c_magic, const uint8_t *cipher, const uint32_t &cipher_l)
 

Public Attributes

const std::string radio_model
 
const std::string firmware_model
 
const std::vector< uint8_t > counter_magic
 
const uint8_t * cipher
 
const uint32_t cipher_len
 

Detailed Description

Class to store all config for each TYT radio model

Definition at line 37 of file tyt_fw.hpp.

Constructor & Destructor Documentation

◆ TYTRadioConfig()

radio_tool::fw::TYTRadioConfig::TYTRadioConfig ( const std::string &  model,
const std::string &  fw_model,
const std::vector< uint8_t > &  c_magic,
const uint8_t *  cipher,
const uint32_t &  cipher_l 
)
inline

Definition at line 40 of file tyt_fw.hpp.

Member Data Documentation

◆ cipher

const uint8_t* radio_tool::fw::TYTRadioConfig::cipher

The cipher key for encrypting/decrypting the firmwar

Definition at line 63 of file tyt_fw.hpp.

◆ cipher_len

const uint32_t radio_tool::fw::TYTRadioConfig::cipher_len

The length of the cipher

Definition at line 68 of file tyt_fw.hpp.

◆ counter_magic

const std::vector<uint8_t> radio_tool::fw::TYTRadioConfig::counter_magic

The magic counter value for this radio

Definition at line 58 of file tyt_fw.hpp.

◆ firmware_model

const std::string radio_tool::fw::TYTRadioConfig::firmware_model

The model in the firmware file

Definition at line 53 of file tyt_fw.hpp.

◆ radio_model

const std::string radio_tool::fw::TYTRadioConfig::radio_model

The model of the radio

Definition at line 48 of file tyt_fw.hpp.


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