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

📄 pcirq.h

📁 DOS下采用中断接收数据的串口通讯的例子,很难找到的好东西!
💻 H
字号:
//
//  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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -