⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 param.h

📁 MTK 最新的flashtool工具的源代码
💻 H
字号:
#ifndef _PARAM_H_
#define _PARAM_H_

#include <vcl.h>
#include "flashtool.h"

typedef enum{
    PARAM_FT_CFG = 0
    ,PARAM_SEC_RO
    ,PARAM_CUST
    ,PARAM_OTP
    ,PARAM_END
} ParameterType_T;

typedef struct {

	void reset() {
		m_ft_cfg_enable = _FALSE;
		memset(&m_ft_cfg, 0, sizeof(m_ft_cfg));
		// CUST_PARA 
		m_cust_para_enable = _FALSE;
		memset(&m_cust_para, 0, sizeof(m_cust_para));
		m_cust_para_filepath = "";
		// SEC_RO 
		m_sec_ro_enable = _FALSE;
		memset(&m_sec_ro, 0, sizeof(m_sec_ro));
		m_sec_ro_filepath = "";
		// OTP 
		m_otp_enable = _FALSE;
		m_otp_op = OTP_WRITE;
		memset(&m_otp, 0, sizeof(m_otp));
		m_otp_filepath = "";
	}

	// FlashToolCfg 
	_BOOL				m_ft_cfg_enable;
	FlashToolCfg_T		m_ft_cfg;
	// CUST_PARA
	_BOOL				m_cust_para_enable;
	CustPara_T			m_cust_para;
	AnsiString			m_cust_para_filepath;
	// SEC_RO 
	_BOOL				m_sec_ro_enable;
	SecRO_T				m_sec_ro;
	AnsiString			m_sec_ro_filepath;
	// OTP 
	_BOOL				m_otp_enable;
	OTP_OPERATION		m_otp_op;
	OTP_T				m_otp;
	AnsiString			m_otp_filepath;

} ParamDownloadConfig_T;

typedef struct {
	// CUST_PARA
	_BOOL				m_cust_para_enable;
	CustPara_T			m_cust_para;
	AnsiString			m_cust_para_filepath;
	// SEC_RO
	_BOOL				m_sec_ro_enable;
	SecRO_T				m_sec_ro;
	AnsiString			m_sec_ro_filepath;
	// OTP
	_BOOL				m_otp_enable;
	OTP_T				m_otp;
	AnsiString			m_otp_filepath;
} ParamReadbackConfig_T;

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -