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

📄 readwritecmdtab.h

📁 国半usbn9604芯片开发办的源码
💻 H
字号:
/*----------------------------------------------------------------------------
 *  Copyright (c) 2001 by National Semiconductor Corporation
 *  National Semiconductor Corporation
 *  2900 Semiconductor Drive
 *  Santa Clara, California 95051
 *
 *  All rights reserved
 *
 *<<<-------------------------------------------------------------------------
 * File Contents:
 *	readWriteCmdTab.h
 *
 *  Project: USB Demo Application
 *  Author : Yan Nosovitsky
 *  Date   : Dec 2001
 *----------------------------------------------------------------------->>>*/

#if !defined(AFX_READWRITECMDTAB_H__7E2C0559_AF61_4100_A93F_AC8F7A445201__INCLUDED_)
#define AFX_READWRITECMDTAB_H__7E2C0559_AF61_4100_A93F_AC8F7A445201__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// readWriteCmdTab.h : header file
//

#define BIT_NUM 8
/////////////////////////////////////////////////////////////////////////////
// readWriteCmdTab dialog

class readWriteCmdTab : public CDialog
{
// Construction
public:
	readWriteCmdTab(CWnd* pParent = NULL);   // standard constructor
	void BuildRegList();
	
// Dialog Data
	//{{AFX_DATA(readWriteCmdTab)
	enum { IDD = IDD_READ_WRITE_TAB };
	CEdit	m_bit7Edit;
	CEdit	m_bit6Edit;
	CEdit	m_bit5Edit;
	CEdit	m_bit4Edit;
	CEdit	m_bit3Edit;
	CEdit	m_bit2Edit;
	CEdit	m_bit1Edit;
	CEdit	m_bit0Edit;
	CButton	m_serialRadio;
	CComboBox	m_comList;
	CSpinButtonCtrl	m_addressSpin;
	CEdit	m_regAddress;
	CComboBox	m_regName;
	CEdit	m_regVal;
	//}}AFX_DATA

	CEdit *m_bitArray[8];
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(readWriteCmdTab)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(readWriteCmdTab)
	afx_msg void OnSelendokRegNamesCombo();
	afx_msg void OnChangeRegValEdit();
	afx_msg void OnChangeRegAddressEdit();
	afx_msg void OnDeltaposAddressSpin(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnSelendokComCombo();
	afx_msg void OnSerialRadio();
	afx_msg void OnUsbRadio();
	afx_msg void OnReadButton();
	afx_msg void OnWriteButton();
	afx_msg void OnCancel() {}
	afx_msg void OnOK() {}
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:

	void ClearBits();
	byte regIndex;
	byte regValue;
	bool UARTChannel;
	CString COMNum;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_READWRITECMDTAB_H__7E2C0559_AF61_4100_A93F_AC8F7A445201__INCLUDED_)

⌨️ 快捷键说明

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