📄 dcodedlg.h
字号:
#if !defined(AFX_DCODEDLG_H__E4CEF2EA_9E7F_4A04_981A_55880B8AC88F__INCLUDED_)
#define AFX_DCODEDLG_H__E4CEF2EA_9E7F_4A04_981A_55880B8AC88F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DCodeDlg.h : header file
//
#define INT_TYPE 2
/////////////////////////////////////////////////////////////////////////////
// CDCodeDlg dialog
typedef struct c_code /* 28 bytes total Stored as: */
{
char cells; /* # of cells */
char type; /* battery type code */
UINT rating; /* battery rating - mAh */
UINT cr; /* charge rate - C */
UINT dr; /* discharge rate - C */
char tcr; /* trickle charge rate - C */
char tdr; /* recon discharge rate - C */
signed char temp1; /* low temp cutoff - 鳦 */
signed char Roffset; /* capacity offset - % */
char ns; /* negative slope - mV/Cell */
signed char temp2; /* high temp cutoff - 鳦 */
UINT ed; /* end discharge threshold - mV/Cell */
UINT er; /* end recondition threshold - mV/Cell */
char method; /* charge method */
char rlw; /* reverse load weight - % */
UINT sv; /* maximum standby voltage - mV/Cell */
UINT mv; /* maximum voltage - mV/Cell */
char program; /* charge program */
char ctp; /* charge termination point - C */
unsigned char setups :4; /* number of setups in adapter - BatteryShop only */
unsigned char locked :1; /* set if C-Code is locked */
unsigned char perm_lock :1;
unsigned char init :1; /* set if lock flag are not valid */
unsigned char :1;
char target; /* target capacity - 50 - 150% */
} c_code;
typedef struct basic_cc /* basic c-code structure used net command 39&40*/
{
char type;
char cells;
unsigned int rating;
char program;
char target;
unsigned char ext :1;
unsigned char locked :1; /* set if C-Code is locked */
unsigned char perm_lock :1;
unsigned char :5;
} basic_cc;
const double StandVol[]={ 1.2,1.2,2.0,3.6};
const CString TypeStr1[4]={_T("镍镉电池"),_T("镍氢电池"),_T("铅酸电池"),_T("锂电池")};
const CString ProgramStr[]={_T("自动 "),_T("充电 "),_T("化成 "),_T("用户程序1"),_T("用户程序2"),_T("用户程序3"),_T("用户程序4"),_T("内阻测试") ,_T("模拟使用"),_T("自放电测试 "),_T("循环寿命"),_T("电池放电"),_T("深度化成"),_T("学习 "),_T("快速测试"),_T("快速学习")};
const CString MethodStr[]={_T("放电 "),_T("充电 "),_T("修复 "),_T("涓流充电"),_T("电池休眠"),_T("内阻测试"),_T("处理完成"),_T("处理完成并进行涓流充电")};
class CDCodeDlg : public CDialog
{
// Construction
public:
void Inint();
BOOL IsDlgShow;
void UpdateD(BOOL B=FALSE);
c_code m_DCodeccode;
CDCodeDlg(CWnd* pParent = NULL); // standard constructor
unsigned char m_nStation;
unsigned char m_nCycle;
CString m_sCaptionTiltle;
CView *m_pOwner;
void SetOwner(CView *m_pOwnerActul);
// Dialog Data
//{{AFX_DATA(CDCodeDlg)
enum { IDD = IDD_DIALOGD_CODE };
CComboBox m_cCodetype;
CComboBox m_Setup;
CComboBox m_Station;
CString m_DCodetype;
float m_DCodecells; /* # of cells */
UINT m_DCoderating; /* battery rating - mAh */
float m_DCodecr; /* charge rate - C */
float m_DCodedr; /* discharge rate - C */
UINT m_DCodetcr; /* trickle charge rate - C */
UINT m_DCodetdr; /* recon discharge rate - C */
UINT m_DCodecrDa; /* charge rate - C */
UINT m_DCodedrDa; /* discharge rate - C */
UINT m_DCodetcrDa; /* trickle charge rate - C */
UINT m_DCodetdrDa; /* recon discharge rate - C */
UINT m_DCodectpDa;
BYTE m_DCodetemp1; /* low temp cutoff - 鳦 */
BYTE m_DCodeRoffset; /* capacity offset - % */
BYTE m_DCodens; /* negative slope - mV/Cell */
UINT m_DCodeed; /* end discharge threshold - mV/Cell */
UINT m_DCodeer; /* end recondition threshold - mV/Cell */
CComboBox m_cCodemethod;
CString m_DCodemethod; /* charge method */
UINT m_DCodesv; /* maximum standby voltage - mV/Cell */
UINT m_DCodemv; /* maximum voltage - mV/Cell */
CComboBox m_cCodeprogram;
CString m_DCodeprogram; /* charge program */
float m_DCodectp; /* charge termination point - C */
BYTE m_DCodetarget; /* target capacity - 50 - 150% */
BYTE m_DCodetemp2;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDCodeDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDCodeDlg)
afx_msg void OnReadAnalysis();
afx_msg void OnWriteAnalysis();
virtual void OnOK();
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DCODEDLG_H__E4CEF2EA_9E7F_4A04_981A_55880B8AC88F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -