pciox.h

来自「DOS下使用PCI扩展串口的程序希望对大家有用」· C头文件 代码 · 共 36 行

H
36
字号
#ifndef __Pcioxh
#define __Pcioxh


#ifdef __cplusplus
extern "C" {
#endif
extern disinter[8]={0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80};
extern vectadr[17]={0x00, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10,
			 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78};

typedef struct  cfginfo
{
    unsigned  int baseadr0;
    unsigned  int baseadr2;
    unsigned  int intline;

}AdrInt;

AdrInt   getbasecfg();
void     Close_txrx(int intnum);
void     Inter_txrx(int intnum);
void     sendarrary(unsigned int baseadd,unsigned int portoffset,char *buffer, int len);
void     sendchar(unsigned int baseadd,unsigned int portoffset,char *chard);
char     getcha(unsigned int baseadd,unsigned int portoffset);
unsigned long pcicomint(unsigned int baseadd,unsigned int portoffset);
unsigned long pcicomBaudSet(unsigned int baseadd,unsigned int portoffset,unsigned int baud);
unsigned long pcicomFifoSet(unsigned int baseadd,unsigned int portoffset,unsigned int triglevel);


#ifdef __cplusplus
}
#endif

#endif /* __Pcioxh */

⌨️ 快捷键说明

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