亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? com8250.h

?? profibus-dp主站源代碼
?? H
字號:
//-----------------------------------------------------------------------------
// $Id: com8250.h,v 1.0.0                                           2004/01/13
//-----------------------------------------------------------------------------
//
//      ProfiM - PROFIBUS MASTER DRIVER FOR WINDOWS NT/2000
//
// Author:  
//      Pavel Trnka, CTU FEE
//      trnkap@seznam.cz
// With help and advices from:
//      Ing. Petr Smolik, CTU FEE
//      Ing. Pavel Pisa, CTU FEE
//      Ing. Pavel Burget, CTU FEE
//
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------

#ifndef _COMINC
#define _COMINC

//
// Macro definitions
//

#define COM1                    1       // COM1 PC serial port
#define COM2                    2       // COM2 PC serial port

#define COM1_BASE_ADDRESS       0x3F8   // Base address of the COM1 PC
#define COM2_BASE_ADDRESS       0x2F8   // Base address of the COM2 PC

#define RX_REGISTER_8250        0       // 8250 Receiver Buffer Register
#define TX_REGISTER_8250        0       // 8250 Transmit Buffer Register
#define IER_8250                1       // 8250 Interrupt Enable Register
#define IIR_8250                2       // 8250 Interrupt Id Register
#define LCR_8250                3       // 8250 Line Control Register
#define MCR_8250                4       // 8250 Modem Control Register
#define LSR_8250                5       // 8250 Line Status Register
#define MSR_8250                6       // 8250 Modem Status Register
#define DIVISOR_REGISTER_8250   0       // 8250 16-bit Baud Rate Divisor


//***************************************************************************
//
// Interrupt Enable Register -- IER defines
//

#define IER_ENABLE_RX_DATA_READY_IRQ    0x01    // Enables the Receiver Data
// Ready interrupt when Or'd
// with the IER

#define IER_DISABLE_RX_DATA_READY_IRQ   0xFE    // Disables the Receiver Data
// Ready interrupt when
// And'd with the IER

#define IER_ENABLE_TX_BE_IRQ            0x02    // Enables the Transmitter
// Buffer Empty interrupt
// when Or'd with the IER

#define IER_DISABLE_TX_BE_IRQ           0xFD    // Disables the Transmitter
// Buffer Empty interrupt
// when And'd with the IER

#define IER_ENABLE_RX_ERROR_IRQ         0x04    // Enables the Receiver Line
// Status interrupt when
// Or'd with the IER

#define IER_DISABLE_RX_ERROR_IRQ        0xFB    // Disables the Receiver Line
// Status interrupt when
// And'd with the IER

#define IER_ENABLE_MODEM_STATUS_IRQ     0x08    // Enables the MODEM Status
// interrupt when Or'd with
// the IER

#define IER_DISABLE_MODEM_STATUS_IRQ    0xF7    // Disables the MODEM Status
// interrupt when And'd with
// the IER


//***************************************************************************
//
// Interrupt ID Register -- IIR defines
//

#define IIR_INTERRUPT_MASK              0x07    // Masks off 3 interrupt pending
// bits when And'd with the
// IIR

#define IIR_NO_INTERRUPT_PENDING        0x01    // This defines the Interrupt
// Identification register
// pattern when no UART
// interrupts are pending.

#define IIR_MODEM_STATUS_IRQ_PENDING    0x00    // Interrupt pending pattern for
// MODEM Status interrupt.

#define IIR_TX_HBE_IRQ_PENDING          0x02    // Interrupt pending pattern for
// Transmitter Buffer Empty

#define IIR_RX_DATA_READY_IRQ_PENDING   0x04    // Interrupt pending pattern for
// Receiver Buffer Full

#define IIR_RX_ERROR_IRQ_PENDING        0x06    // Interrupt pending pattern for
// Receiver Line Status


//***************************************************************************
//
// Line Control Register -- LCR defines
//

#define LCR_FIVE_BITS_PER_WORD          0x00    // Sets serial word length to 5
// bits when Or'd with the LCR

#define LCR_SIX_BITS_PER_WORD           0x01    // Sets serial word length to 6
// bits when Or'd with the LCR 

#define LCR_SEVEN_BITS_PER_WORD         0x02    // Sets serial word length to 7
// bits when Or'd with the LCR 

#define LCR_EIGHT_BITS_PER_WORD         0x03    // Sets serial word length to 8
// bits when Or'd with the LCR

#define LCR_ONE_STOP_BIT 0x00               // Sets the number of stop bits
// to 1 when Or'd with the LCR

#define LCR_TWO_STOP_BITS 0x04              // Sets the number of stop bits
// to 2 when Or'd with the LCR

#define LCR_NO_PARITY 0x00                  // Disables parity when Or'd
// with the LCR

#define LCR_ODD_PARITY 0x08                 // Enables odd parity when Or'd
// with the LCR

#define LCR_EVEN_PARITY 0x18                // Enables even parity when Or'd
// with the LCR

#define LCR_MARK_PARITY 0x28                // Enables mark parity when Or'd
// with the LCR

#define LCR_SPACE_PARITY 0x38               // Enables space parity when
// Or'd with the LCR

#define LCR_DISABLE_BREAK 0xBF              // Disables the break condition
// when And'd with the LCR

#define LCR_ENABLE_BREAK 0x40               // Enables the break condition
// when Or'd with the LCR

#define LCR_DISABLE_DIVISOR_LATCH 0x7F      // Disables the divisor latch
// when And'd with the LCR

#define LCR_ENABLE_DIVISOR_LATCH 0x80       // Enables the divisor latch
// when Or'd with the LCR


//***************************************************************************
//
// Modem Control Register -- MCR defines
//

#define MCR_DEACTIVATE_ALL 0x00             // Deactivates all MCR outputs

#define MCR_ACTIVATE_DTR 0x01               // Activates the RS-232 DTR line
// when Or'd with the MCR

#define MCR_DEACTIVATE_DTR 0xFE             // Deactivates the RS-232 DTR
// line when And'd with the MCR

#define MCR_ACTIVATE_RTS 0x02               // Activates the RS-232 RTS line
// when Or'd with the MCR

#define MCR_DEACTIVATE_RTS 0xFD             // Deactivates the RS-232 RTS
// line when And'd with the MCR

#define MCR_ACTIVATE_GP01 0x04              // Activates the general purpose
// output #1 when Or'd with MCR

#define MCR_DEACTIVATE_GP01 0xFB            // Deativates the general
// purpose output #1 when
// And'd with the MCR

#define MCR_ACTIVATE_GP02 0x08              // Activates the general purpose
// output #2 when Or'd with MCR

#define MCR_DEACTIVATE_GP02 0xF7            // Deativates the general
// purpose output #2 when
// And'd with the MCR

#define MCR_ACTIVATE_LOOPBACK 0x10          // Activates the local loopback
// test when Or'd with the MCR

#define MCR_DEACTIVATE_LOOPBACK 0xEF        // Deactivates the local
// loopback test when And'd
// with the MCR


//***************************************************************************
//
// Line Status Register -- LSR defines
//

#define LSR_RX_DATA_READY 0x01              // This bit signals a
// character is ready

#define LSR_RX_OVERRUN_ERROR 0x02           // This bit signals a
// receiver overrun error 

#define LSR_RX_PARITY_ERROR 0x04            // This bit signals a
// parity error

#define LSR_RX_FRAMING_ERROR 0x08           // This bit signals a
// framing error

#define LSR_RX_BREAK_DETECTED 0x10          // This bit signals a break char

#define LSR_TX_BUFFER_EMPTY 0x20            // This bit signals the transmit
// buffer is empty

#define LSR_TX_BOTH_EMPTY 0x40              // This bit signals both the
// transmit buffer and the shift
// register are empty


//***************************************************************************
//
// Modem Status Register -- MSR defines
//

#define MSR_DELTA_CTS 0x01                  // Signals CTS has changed

#define MSR_DELTA_DSR 0x02                  // Signals DSR has changed

#define MSR_DELTA_RI 0x04                   // Signals RI has changed

#define MSR_DELTA_DCD 0x08                  // Signals CDC has changed

#define MSR_CURRENT_CTS 0x10                // Reads current CTS

#define MSR_CURRENT_DSR 0x20                // Reads current DSR

#define MSR_CURRENT_RI 0x40                 // Reads current RI

#define MSR_CURRENT_DCD 0x80                // Reads current DCD


//
// Communication system BAUD rate defines.
//

#define BAUD_RATE_DIVISOR_1200      0x60    // 1200 baud

#define BAUD_RATE_DIVISOR_2400      0x30    // 2400 baud

#define BAUD_RATE_DIVISOR_4800      0x18    // 4800 baud 

#define BAUD_RATE_DIVISOR_9600      0x0C    // 9600 baud 

#define BAUD_RATE_DIVISOR_19200     0x06    // 19200 baud

#define BAUD_RATE_DIVISOR_38400     0x03    // 38400 baud

#define BAUD_RATE_DIVISOR_57600     0x02    // 57600 baud

#define BAUD_RATE_DIVISOR_115200    0x01    // 152000 baud

//
// Communication port type definition
//

typedef struct _COMPORT
{
    PUCHAR  RBR;     // Receiver Buffer reg.
    PUCHAR  TBR;     // Transmitter Buffer reg.
    PUCHAR  IER;     // Interrupt Enable reg.
    PUCHAR  IIR;     // Interrupt ID reg.
    PUCHAR  LCR;     // Line Control register.
    PUCHAR  MCR;     // Modem Control register.
    PUCHAR  LSR;     // Line Status register.
    PUCHAR  MSR;     // Modem Status register.
    PUCHAR  BAUD;    // Baud Rate Divisor.
} COMPORT, *PCOM_PORT;

#endif // _COMINC

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品国产自产拍在线| 欧美日本在线观看| 久久国产尿小便嘘嘘| 亚洲高清免费观看高清完整版在线观看 | 欧美亚洲国产一区二区三区va| jlzzjlzz亚洲日本少妇| 高清国产一区二区| 成人av资源站| 91同城在线观看| 91传媒视频在线播放| 欧美日韩一区二区不卡| 欧美精品一级二级| 欧美一级爆毛片| 久久午夜电影网| 国产精品天天摸av网| 亚洲天堂网中文字| 亚洲国产精品久久久久婷婷884 | 久久久综合精品| 国产日韩精品久久久| 一区二区中文字幕在线| 亚洲精选一二三| 免费人成精品欧美精品| 国产精品主播直播| 95精品视频在线| 欧美日本在线看| 国产蜜臀97一区二区三区| 亚洲色图丝袜美腿| 日本女人一区二区三区| 黄色精品一二区| 91国偷自产一区二区三区成为亚洲经典 | 五月婷婷色综合| 国产乱淫av一区二区三区| 97超碰欧美中文字幕| 欧美一区二区三区男人的天堂| 欧美国产精品一区二区| 亚洲影院久久精品| 国产做a爰片久久毛片| 在线免费观看一区| 久久综合久久综合久久| 一区二区三区丝袜| 国产成人鲁色资源国产91色综| 欧美色精品天天在线观看视频| 精品国产91久久久久久久妲己| 亚洲精品日韩综合观看成人91| 精品一区二区三区免费毛片爱| 色婷婷综合久久久中文一区二区| 日韩美女天天操| 一区二区成人在线观看| 成人精品亚洲人成在线| 欧美大度的电影原声| 亚洲色图20p| 成人性生交大片免费看中文| 日韩亚洲欧美中文三级| 亚洲久本草在线中文字幕| 国产91丝袜在线播放0| 91精品福利在线一区二区三区| 亚洲日本成人在线观看| 国产成人日日夜夜| 精品免费国产二区三区| 日本成人中文字幕| 欧美亚洲国产一卡| 亚洲精品国产第一综合99久久| 国产成人精品免费网站| 久久综合九色综合欧美98| 麻豆传媒一区二区三区| 欧美日韩一区二区三区四区| 一区二区三区在线视频观看58| 成人高清视频免费观看| 亚洲国产精品t66y| 成人免费观看男女羞羞视频| 亚洲国产精品av| 顶级嫩模精品视频在线看| 国产欧美日韩另类一区| 国产精品一区二区三区网站| 久久久一区二区三区| 国产在线不卡一区| 精品国产乱码久久久久久免费| 日本成人中文字幕| 日韩一级大片在线| 激情久久五月天| 国产视频一区二区三区在线观看| 国产一区二区福利| 久久精品免费在线观看| 国产69精品久久99不卡| 中文字幕一区二区在线播放| 91丝袜美腿高跟国产极品老师| 一区二区三区中文免费| 欧美影视一区二区三区| 五月综合激情日本mⅴ| 日韩欧美一级二级| 国产精品综合二区| 中文字幕一区在线观看视频| 91精品办公室少妇高潮对白| 日韩中文字幕一区二区三区| 日韩欧美在线综合网| 国产一二精品视频| 久久久国产精品不卡| 99久久综合狠狠综合久久| 亚洲男人的天堂在线aⅴ视频| 欧美艳星brazzers| 免费在线观看成人| 国产精品人成在线观看免费 | 亚洲福利视频三区| 欧美另类一区二区三区| 国产在线视视频有精品| ㊣最新国产の精品bt伙计久久| 99久久婷婷国产综合精品电影 | 成人国产精品免费| 亚洲自拍偷拍九九九| 日韩欧美高清在线| 一本色道亚洲精品aⅴ| 日本亚洲三级在线| 日韩一区欧美小说| 日韩欧美国产午夜精品| 成人ar影院免费观看视频| 午夜欧美一区二区三区在线播放| 久久这里都是精品| 欧美视频一区二区三区四区| 国产精品一区二区男女羞羞无遮挡 | 欧美少妇性性性| 久久se精品一区精品二区| 亚洲老司机在线| 久久久久久久久久久久久女国产乱 | 91免费小视频| 国产一区二区免费看| 日韩专区欧美专区| 日韩一区在线播放| 久久久精品国产免大香伊| 欧美精品色综合| 色综合咪咪久久| 国产91精品一区二区麻豆亚洲| 肉肉av福利一精品导航| 一区二区三区欧美日| 国产精品久久久久久久岛一牛影视| 欧美一级片在线看| 欧美日韩在线播放| 色综合久久久网| 99re这里只有精品视频首页| 国产一区二区三区免费看| 免费观看91视频大全| 亚洲成人在线免费| 亚洲欧美视频在线观看视频| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 免费成人性网站| 亚洲电影中文字幕在线观看| 亚洲黄色录像片| 亚洲日本在线看| 自拍偷自拍亚洲精品播放| 国产欧美在线观看一区| 国产午夜亚洲精品羞羞网站| 久久久综合激的五月天| 久久蜜桃香蕉精品一区二区三区| 久久综合网色—综合色88| 日韩免费观看高清完整版| 日韩一区二区在线观看视频播放| 欧美高清激情brazzers| 欧美日韩国产一级二级| 欧美色图激情小说| 欧美区视频在线观看| 欧美日韩三级一区| 欧美日韩一区久久| 欧美片网站yy| 欧美mv和日韩mv国产网站| 日韩欧美高清一区| 久久久亚洲精品石原莉奈| 国产婷婷色一区二区三区四区| 国产午夜精品美女毛片视频| 综合在线观看色| 亚洲欧美成人一区二区三区| 亚洲综合免费观看高清在线观看| 亚洲成人www| 激情另类小说区图片区视频区| 成人高清视频在线观看| 成人免费看的视频| 欧美在线你懂得| 亚洲精品一区二区三区福利| 国产精品初高中害羞小美女文| 亚洲最色的网站| 日韩精品国产精品| 国产福利精品一区二区| 91官网在线观看| 日韩视频免费直播| 国产精品乱码一区二三区小蝌蚪| 亚洲午夜影视影院在线观看| 免费看日韩a级影片| 国产成人精品免费| 欧美日韩在线播放三区四区| 久久午夜羞羞影院免费观看| 亚洲色欲色欲www在线观看| 丝袜诱惑亚洲看片| 国产激情一区二区三区四区| 欧美自拍丝袜亚洲| 日韩欧美123| 亚洲小少妇裸体bbw| 国产精品18久久久久| 欧美三级在线播放| 国产精品久久影院| 奇米精品一区二区三区在线观看| av不卡一区二区三区| 日韩欧美在线1卡|