?? 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 + -