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

📄 hello.h

📁 基于PC104的24位数据采集器的完整源码
💻 H
字号:
// hello.h : Declares the class interfaces for the application.
//         Hello is a simple program which consists of a main window
//         and an "About" dialog which can be invoked by a menu choice.
//         It is intended to serve as a starting-point for new
//         applications.
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and Microsoft
// WinHelp documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.

#ifndef __HELLO_H__
#define __HELLO_H__

#include "InfoTeam.h"

struct BIT_STATUS
{
	unsigned Time:1;
	unsigned LongLat:1;
	unsigned Height:1;
	unsigned SateliteNum:1;
	unsigned :1;
	unsigned :1;
	unsigned :1;
	unsigned :1;


	unsigned SiteID:1;
	unsigned SampleRate:1;
	unsigned SerialSpeed:1;
	unsigned BiaoDinPluse:1;
	unsigned BiaoDinWave:1;
	unsigned Filt:1;
	unsigned Correct:1;
	unsigned :1;
};

union STATUS
{
	BIT_STATUS m_nBitStatus;
	unsigned long m_nStatus;
};


#define CHANNELS			3
#define TOTALCHANNELS		4

#define	BIAODIN_TYPES		18
#define	BIAODIN_TIMES		5


//	These are the port addresses of the 8259 Programmable Interrupt
//	Controller (PIC).
#define IMR             0x21   /* Interrupt Mask Register port */
#define ICR             0x20   /* Interrupt Control Port       */

//	An end of interrupt needs to be sent to the Control Port of
//  the 8259 when a hardware interrupt ends.
#define EOI             0x20   /* End Of Interrupt */



//  The (IMR) tells the (PIC) to service an interrupt only if it
//	is not masked (FALSE).
#define IRQ3            0xF7  /* COM2	*/
#define IRQ4            0xEF  /* COM1	*/
#define	IRQ5			0xdf  /* LPT2	*/
#define IRQ6			0xbf  /* floppy	*/

//
//	中断矢量
#define INT_IRQ5		0x0d
#define INT_IRQ6		0X0e
#define INT_COM1		0X0C
#define INT_COM2		0X0B

// 发送组缓冲区
#define	SENDTEAM_LENGTH	0x80

extern CSendTeam*	g_pSendTeam[SENDTEAM_LENGTH];
extern unsigned int	g_nSendTeamPos;

extern ulong g_nAbsoluteSecond;

//extern uint g_nTotalCorrectPeriod;
extern double g_pCorrectZeroData[CHANNELS];
extern long g_nCorrectPeriod;

//  定义串口缓冲区
//
extern char*	g_pGpsIn;
extern uint	g_nGpsInLength;
extern uint	g_nGpsInPos;

//	定义数据缓冲区
//
extern long*	g_pDataBuff[CHANNELS];
extern long*	g_pSourceBuff[CHANNELS];
extern uint	g_nDataLength;

extern uint	g_nDataInPos;

//  定义状态位
//
extern STATUS g_nStatus;
void OnSampleChange();
void OnSerialSpeedChange();
#endif // __HELLO_H__

⌨️ 快捷键说明

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