📄 rs485nt.h
字号:
//---------------------------------------------------------------------------
//
// RS485NT.H
//
// Author: Anthony A. Kempka
// Device Drivers International, LLC
//
// Tel: 218-587-3120
// Tel: 513-984-4491
// Web: www.ddiusa.com
//
//
// For: Integrity Instruments (a division of Cogito Software, Inc.)
//
// Tel: 800-450-2001
// Web: www.integrityusa.com
//
//
// Last Modified:
// A. A. Kempka 08/20/97 Original.
//
//---------------------------------------------------------------------------
//
// Defaults
//
#define DEF_PORT_ADDRESS 0x2F8
#define DEF_PORT_RANGE 0x07
#define DEF_IRQ_LINE 0x03
#define DEF_BAUD_RATE 19200
#define DEF_BUFFER_SIZE 2048
//---------------------------------------------------------------------------
//
// *Note*
// ALL variables and data storage should be placed in
// the following data structure.
//
typedef struct _RS485NT_DEVICE_EXTENSION {
PDEVICE_OBJECT DeviceObject;
PKINTERRUPT InterruptObject;
KIRQL Irql;
ULONG InterruptCount;
ULONG RcvError;
LARGE_INTEGER LastQuerySystemTime;
ULONG ioCtlCode;
PUCHAR PortAddress;
KIRQL IRQLine;
ULONG BaudRate;
COMPORT ComPort;
KEVENT XmitDone;
ULONG BufferSize;
PUCHAR XmitBuffer;
PUCHAR XmitBufferPosition;
PUCHAR XmitBufferEnd;
ULONG XmitBufferCount;
PUCHAR RcvBuffer;
PUCHAR RcvBufferPosition;
PUCHAR RcvBufferEnd;
ULONG RcvBufferCount;
} RS485NT_DEVICE_EXTENSION, *PRS485NT_DEVICE_EXTENSION;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -