pcirq.h

来自「DOS下采用中断接收数据的串口通讯的例子,很难找到的好东西!」· C头文件 代码 · 共 36 行

H
36
字号
//
//  PCIRQ.H
//
//  Source code from:
//
//  Serial Communications: A C++ Developer's Guide, 2nd Edition
//  by Mark Nelson, IDG Books, 1999
//
//  Please see the book for information on usage.
//
// This header file has the prototypes and definitions used with
// the IRQ manager routines.  The three public functions have
// their prototypes here.  All the code for the IRQ manager is
// found in PCIRQ.CPP.

#ifndef _PCIRQ_DOT_H
#define _PCIRQ_DOT_H

#include "rs232.h"

enum irq_name {  IRQ0 = 0, IRQ1,  IRQ2,  IRQ3,  IRQ4,  IRQ5,
                 IRQ6,     IRQ7,  IRQ8,  IRQ9,  IRQ10, IRQ11,
                 IRQ12,    IRQ13, IRQ14, IRQ15,
                 ILLEGAL_IRQ = -1 };

RS232Error
ConnectToIrq( irq_name irq,
              void *isr_data_block,
              void ( *isr_routine )( void *isr_data_block ) );
int DisconnectFromIRQ( enum irq_name irq );

#endif // #ifndef _PCIRQ_DOT_H

// ********************* END OF PCIRQ.H ********************

⌨️ 快捷键说明

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