📄 phantomeppsrl.h
字号:
//////////////////////////////////////////////////////////////////
//
// PhantomEPPSRL.h - Header file
//
// This file was generated using the RTX Device Driver Wizard.
//
//////////////////////////////////////////////////////////////////
#ifndef _PhantomEPP_SRL_HEADER_
#define _PhantomEPP_SRL_HEADER_
#include <windows.h>
//#include <stdio.h>
//#include <string.h>
//#include <ctype.h>
//#include <conio.h>
//#include <stdlib.h>
//#include <math.h>
//#include <errno.h>
#include <rtapi.h>
#include "PhantomEPPSrlAPI.h"
//
// Function prototypes
//
//
// Interrupt Service Routine
//
INTERRUPT_DISPOSITION
RTFCNDCL
DeviceISR(
PVOID pContext
);
//
// Interrupt Service Thread
//
BOOLEAN
RTAPI
DeviceIST(
PVOID pContext
);
//
// Checks for more data
//
VOID
SendNextFIFO ( );
//
// Transfers the FIFO contents to buffer
//
VOID
EmptyFIFO ( );
//
// Print message and exit
//
void
MsgAndExit (
wchar_t *msg
);
//
// Open the Parallel port
//
WORD
RtOpenParallelPort ( );
//
// Interrupt port for IO
//
VOID
InitializePort ( );
//
// Close the Parallel port
//
WORD
RtCloseParallelPort ( );
//
// Read information from the Parallel port
//
WORD
RtReadParallelPort (
BYTE *buffer,
WORD bytesToRead,
WORD *bytesRead
);
//
// Write information to the Parallel port
//
WORD
RtWriteParallelPort(
BYTE *buffer,
WORD bytesToWrite,
WORD *bytesWritten
);
//
// Check for informaiton in the Buffer
//
WORD
RtGetParallelBufferCount ( );
//
// Driver Entry
//
DWORD DriverCreateDevice();
//
// Driver controller handler
//
ULONG RTFCNDCL DriverDeviceControl(PTRP pIrp);
#endif //_PhantomEPP_SRL_HEADER_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -