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

📄 crc_func.h

📁 该工具用于数字电路仿真中的usb数据文件转换: 1.可以把11比特的令牌包数据(crc5)或者任意字节的数据包数据(crc16)转换为可以作为仿真输入的dn dp文件。 2.可以根据仿真接收到的d
💻 H
字号:
#if !defined(AFX_DEVICE_USB_H__22ADAD0F_EFB9_4BF8_9D3B_03E5ED3A21B8__INCLUDED_)
#define AFX_DEVICE_USB_H__22ADAD0F_EFB9_4BF8_9D3B_03E5ED3A21B8__INCLUDED_

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

#define	DATA_RX16	"data_rx16.txt"
#define	DATA_RX5	"data_rx5.txt"
#define	RESULT_FULL_16	"result_full_16.txt"
#define RESULT_HIGH_16	"result_high_16.txt"
#define RESULT_FULL_5	"result_full_5.txt"
#define RESULT_HIGH_5	"result_high_5.txt"

	typedef struct _test_select{
	unsigned char transmode;
	unsigned char endpoint;
	unsigned char direction;
	//char file_path[1024];
	}test_select;
/////////////////////////////////////////////////////////////////////////////
// device_usb view

class crc_func 
{
public:
	
	crc_func();
	virtual ~crc_func();
	DWORD crc5_tx(void);
	DWORD crc5_rx(void);
	DWORD crc16_tx(void);
	DWORD crc16_rx(void);
	
	CDialog* crc_dlg;
};



⌨️ 快捷键说明

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