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

📄 hmican_usb.h

📁 面板显示程序
💻 H
📖 第 1 页 / 共 2 页
字号:
// HMIcan_usb.h : main header file for the HMICAN_USB application
//

#if !defined(AFX_HMICAN_USB_H__EA844F33_7E4B_4C90_B336_E99E3B0CDC9E__INCLUDED_)
#define AFX_HMICAN_USB_H__EA844F33_7E4B_4C90_B336_E99E3B0CDC9E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols
#define __REG16 unsigned short
#define __REG32 unsigned long
/////////////////////////////////////////////////////////////////////////////
// CHMIcan_usbApp:
// See HMIcan_usb.cpp for the implementation of this class
//

class CHMIcan_usbApp : public CWinApp
{
public:
	CHMIcan_usbApp();

		typedef struct {
		__REG32 ID0_0_7           :8;  
		__REG32 ID0_8_15          :8;
		__REG32 ID0_16_23         :8;
		__REG32 ID0_24_31         :8;
		__REG32 ID0_32_62         :31;  ////////////
		__REG32 ID0_63            :1;
	} ID0_bits;
	
	
	typedef struct {
		__REG32 ID1_0             :1;
		__REG32 ID1_1             :1;
		__REG32 ID1_2             :1;
		__REG32 ID1_3             :1;
		__REG32 ID1_4             :1;
		__REG32 ID1_5             :1;
		__REG32 ID1_6             :1;
		__REG32 ID1_7             :1;
		__REG32 ID1_8             :1;
		__REG32 ID1_9             :1;
		__REG32 ID1_10            :1;
		__REG32 ID1_11            :1;
		__REG32 ID1_12            :1;
		__REG32 ID1_13            :1;
		__REG32 ID1_14            :1;
		__REG32 ID1_15            :1;
		__REG32 ID1_16            :1;
		__REG32 ID1_17            :1;
		__REG32 ID1_18            :1;
		__REG32 ID1_19            :1;
		__REG32 ID1_20            :1;
		__REG32 ID1_21            :1;
		__REG32 ID1_22            :1;
		__REG32 ID1_23            :1;
		__REG32 ID1_24            :1;
		__REG32 ID1_25            :1;
		__REG32 ID1_26            :1;
		__REG32 ID1_27            :1;
		__REG32 ID1_28_31         :4;     /////////////////
		__REG32 ID1_32_64         :32;     /////////////////
	} ID1_bits;
	
	typedef struct {
		__REG32 ID2_0_31          :32;    
		__REG32 ID2_32_38         :7;
		__REG32 ID2_39_59         :21;       /////////////
		__REG32 ID2_60_63         :4;
	} ID2_bits;
	
	typedef struct {
		__REG32 ID3_0_3           :4;
		__REG32 ID3_4             :1;
		__REG32 ID3_5_8           :4;  
		__REG32 ID3_9             :1;
		__REG32 ID3_10_13         :4;
		__REG32 ID3_14            :1;
		__REG32 ID3_15_18         :4;
		__REG32 ID3_19            :1;

		__REG32 ID3_20_31         :12;        //////////////// 
		
		__REG32 ID3_32_35         :4;
		__REG32 ID3_36            :1;
		__REG32 ID3_37_40         :4;
		__REG32 ID3_41            :1;
		__REG32 ID3_42_45         :4;  
		__REG32 ID3_46            :1;
		__REG32 ID3_47_50         :4;      
		__REG32 ID3_51            :1;

		__REG32 ID3_52_62         :11;        //////////////// 

		__REG32 ID3_63            :1;
		
	} ID3_bits;
	
	typedef struct {
		__REG32 ID4_0_31          :32;
		__REG32 ID4_32_55         :24;     ///////////
		__REG32 ID4_56_59         :4;
		__REG32 ID4_60_63         :4;
	} ID4_bits;
	
	/*typedef struct {
		__REG32 ID5_0_15          :16;    ////////
		__REG32 ID5_16_23         :8;
		__REG32 ID5_24_31         :8;
		__REG32 ID5_32_39         :8;
		__REG32 ID5_40_47         :8;
		__REG32 ID5_48_55         :8;
		__REG32 ID5_56_63         :8;
	} ID5_bits;*/

	typedef struct {
		__REG32 ID5_0_31          :32;    
		__REG32 ID5_32_39         :8;
		__REG32 ID5_40_47         :8;
		__REG32 ID5_48_51         :4;
		__REG32 ID5_52_59         :8;
		__REG32 ID5_60_63         :4;
	} ID50_bits;

	typedef struct {
		__REG32 ID5_0_31          :32;    
		__REG32 ID5_32_39         :8;
		__REG32 ID5_40_47         :8;
		__REG32 ID5_48_59         :12;
		__REG32 ID5_60_63         :4;
	} ID51_bits;

	typedef struct {
		__REG32 ID5_0_3           :4;    
		__REG32 ID5_4_7           :4;
		__REG32 ID5_8_11          :4;
		__REG32 ID5_12_15         :4;
		__REG32 ID5_16_19         :4;
		__REG32 ID5_20_23         :4;
		__REG32 ID5_24_27         :4;
		__REG32 ID5_28_31         :4;
		__REG32 ID5_32_34         :3;
		__REG32 ID5_35_37         :3;
		__REG32 ID5_38_40         :3;
		__REG32 ID5_41_43         :3;
		__REG32 ID5_44_46         :3;
		__REG32 ID5_47_49         :3;
		__REG32 ID5_50_52         :3;
		__REG32 ID5_53_55         :3;
		__REG32 ID5_56_59         :4;
		__REG32 ID5_60_63         :4;
	} ID52_bits;
	
	
	typedef struct {
		__REG32 ID6_0_11          :12;    
		__REG32 ID6_12_23         :12;
		__REG32 ID6_24_31         :8;     //////////////////   
		__REG32 ID6_32_43         :12;    
		__REG32 ID6_44_55         :12;    
		__REG32 ID6_56_59         :4;
		__REG32 ID6_60_63         :4;
	} ID60_bits;
	
	typedef struct {
		__REG32 ID6_0             :1;    //////////////////
		__REG32 ID6_1             :1;
		__REG32 ID6_2             :1;
		__REG32 ID6_3             :1;
		__REG32 ID6_4             :1;    //////////////////
		__REG32 ID6_5             :1;
		__REG32 ID6_6             :1;
		__REG32 ID6_7             :1;
		__REG32 ID6_8             :1;    //////////////////
		__REG32 ID6_9             :1;
		__REG32 ID6_10            :1;
		__REG32 ID6_11            :1;
		__REG32 ID6_12            :1;    //////////////////
		__REG32 ID6_13            :1;
		__REG32 ID6_14            :1;
		__REG32 ID6_15            :1;
		__REG32 ID6_16            :1;    //////////////////
		__REG32 ID6_17            :1;
		__REG32 ID6_18            :1;
		__REG32 ID6_19            :1;
		__REG32 ID6_20            :1;    //////////////////
		__REG32 ID6_21            :1;
		__REG32 ID6_22            :1;
		__REG32 ID6_23            :1;
		__REG32 ID6_24            :1;    //////////////////
		__REG32 ID6_25            :1;
		__REG32 ID6_26            :1;
		__REG32 ID6_27            :1;
		__REG32 ID6_28            :1;    //////////////////
		__REG32 ID6_29            :1;
		__REG32 ID6_30            :1;
		__REG32 ID6_31            :1;
	     
		__REG32 ID6_32_55         :24;    //////////
		__REG32 ID6_56_59         :4;
		__REG32 ID6_60_63         :4;
	} ID61_bits;

	typedef struct {
		__REG32 ID7_0_7          :8;    
		__REG32 ID7_8_15         :8;
		__REG32 ID7_16_23        :8;
		__REG32 ID7_24_31        :8;     ////////
		__REG32 ID7_32_56        :25;     ////////
		__REG32 ID7_57           :1;
		__REG32 ID7_58           :1;
		__REG32 ID7_59           :1;
		__REG32 ID7_60_63        :4;
	} ID70_bits;

	typedef struct {
		__REG32 ID7_0_6          :7;    
		__REG32 ID7_7_13         :7;
		__REG32 ID7_14_20        :7;
		__REG32 ID7_21_27        :7;     
		__REG32 ID7_28_31        :4;    //////// 
		__REG32 ID7_32_38        :7;     
		__REG32 ID7_39_45        :7;
		__REG32 ID7_46_52        :7;
		__REG32 ID7_53_59        :7;
		__REG32 ID7_60_63        :4;
	} ID71_bits;

    /////////发送结构体

	/*typedef struct {
		__REG32 ID5_0_15          :16;    ////////
		__REG32 ID5_16_23         :8;
		__REG32 ID5_24_31         :8;
		__REG32 ID5_32_39         :8;
		__REG32 ID5_40_47         :8;
		__REG32 ID5_48_55         :8;
		__REG32 ID5_56_60         :5;
		__REG32 ID5_61            :1;
		__REG32 ID5_62            :1;
		__REG32 ID5_63            :1;
		
	} ID5Snd_bits;*/
	typedef struct {
		__REG32 ID5_0_31          :32;    
		__REG32 ID5_32_39         :8;
		__REG32 ID5_40_47         :8;
		__REG32 ID5_48_51         :4;
		__REG32 ID5_52_59         :8;
		__REG32 ID5_60_63         :4;
	} ID50Snd_bits;

	typedef struct {
		__REG32 ID5_0_31          :32;    
		__REG32 ID5_32_39         :8;
		__REG32 ID5_40_47         :8;
		__REG32 ID5_48_59         :12;
		__REG32 ID5_60_63         :4;
	} ID51Snd_bits;

	typedef struct {
		__REG32 ID5_0_3           :4;    
		__REG32 ID5_4_7           :4;
		__REG32 ID5_8_11          :4;
		__REG32 ID5_12_15         :4;
		__REG32 ID5_16_19         :4;
		__REG32 ID5_20_23         :4;
		__REG32 ID5_24_27         :4;
		__REG32 ID5_28_31         :4;
		__REG32 ID5_32_34         :3;
		__REG32 ID5_35_37         :3;
		__REG32 ID5_38_40         :3;
		__REG32 ID5_41_43         :3;
		__REG32 ID5_44_46         :3;
		__REG32 ID5_47_49         :3;
		__REG32 ID5_50_52         :3;
		__REG32 ID5_53_55         :3;
		__REG32 ID5_56_59         :4;
		__REG32 ID5_60_63         :4;
	} ID52Snd_bits;

	typedef struct {
		__REG32 ID6_0             :1;    //////////////////
		__REG32 ID6_1             :1;
		__REG32 ID6_2             :1;
		__REG32 ID6_3             :1;
		__REG32 ID6_4             :1;    //////////////////
		__REG32 ID6_5             :1;
		__REG32 ID6_6             :1;
		__REG32 ID6_7             :1;

⌨️ 快捷键说明

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