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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? com8250.h

?? RS485設(shè)備驅(qū)動源代碼
?? H
字號:
//---------------------------------------------------------------------------
//
// COM8250.H
//
// Author:  Anthony A. Kempka
//          Device Drivers International, LLC
//
//          Tel: 218-587-3120
//          Tel: 513-984-4491
//          Web: www.ddiusa.com
//
// 
// For:     Integrity Instruments (a division of Cogito Software, Inc.)
//
//          Tel: 800-450-2001
//          Web: www.integrityusa.com
//
//
// Last Modified:       
//      A. A. Kempka    08/20/97        Original.
//  
//---------------------------------------------------------------------------

#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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产系列| 一区二区三区四区精品在线视频| 视频一区视频二区中文字幕| 欧美伊人久久久久久久久影院| 亚洲视频小说图片| 99久久综合色| 一区二区视频在线看| 日本精品免费观看高清观看| 亚洲五码中文字幕| 日韩一级免费观看| 国产成人亚洲综合a∨猫咪 | 欧美日韩国产影片| 美美哒免费高清在线观看视频一区二区 | 亚洲国产美女搞黄色| 欧美日韩高清影院| 激情久久五月天| 中文字幕在线不卡一区二区三区| 91农村精品一区二区在线| 婷婷丁香激情综合| 久久综合九色综合欧美就去吻| www.亚洲色图| 秋霞影院一区二区| 亚洲素人一区二区| 欧美一卡2卡3卡4卡| 成人免费毛片高清视频| 午夜在线成人av| 欧美国产日韩一二三区| 欧美三级一区二区| 国产成人在线视频网址| 亚洲成av人片在线| 国产女主播视频一区二区| 欧美日韩免费观看一区三区| 国产精品77777| 爽好多水快深点欧美视频| 亚洲国产经典视频| 欧美电视剧在线观看完整版| 色激情天天射综合网| 国产精品18久久久久久久久久久久| 一区二区在线观看不卡| 日本一区二区在线不卡| 日韩一级在线观看| 欧美日韩黄色影视| 91免费小视频| 成人中文字幕合集| 精品一区二区久久久| 亚洲一区二区三区中文字幕 | 国产精品视频一二三区| 欧美肥妇free| 色哟哟国产精品| 成人性视频免费网站| 精品在线播放免费| 五月婷婷欧美视频| 亚洲一区二区综合| 亚洲人被黑人高潮完整版| 国产欧美一区二区精品性色| 精品美女在线观看| 日韩一区二区三区视频在线观看| 日本国产一区二区| 色综合久久久久| 白白色 亚洲乱淫| 粉嫩在线一区二区三区视频| 久久99精品久久久久| 午夜精品免费在线| 亚洲午夜久久久久久久久久久 | 亚洲高清一区二区三区| 亚洲精品水蜜桃| 亚洲色大成网站www久久九九| 中文字幕第一区| 国产人妖乱国产精品人妖| 久久精品欧美日韩| 久久久美女毛片 | 国产精品亲子伦对白| 国产欧美综合在线| 国产欧美1区2区3区| 欧美国产精品专区| 国产精品嫩草99a| 亚洲欧美一区二区视频| 亚洲特级片在线| 亚洲国产一区二区视频| 亚洲国产一区二区视频| 天天操天天色综合| 免费观看久久久4p| 激情文学综合网| 国产成人在线视频网站| 成人一区在线观看| 色婷婷久久久久swag精品| 在线亚洲人成电影网站色www| 在线免费亚洲电影| 4438亚洲最大| 亚洲精品在线一区二区| 中文一区二区完整视频在线观看| 国产精品乱子久久久久| 一区二区视频免费在线观看| 亚洲一区二区欧美日韩 | 国模少妇一区二区三区| 国产成人午夜电影网| 99精品在线免费| 欧美日韩免费高清一区色橹橹| 欧美理论在线播放| 久久日一线二线三线suv| 国产精品色哟哟| 亚洲国产精品久久艾草纯爱 | 久久久久久97三级| 国产精品久久久久久妇女6080| 一区二区三区在线免费观看| 日韩高清一级片| 高清不卡在线观看av| 91成人在线精品| 日韩精品自拍偷拍| 亚洲欧美韩国综合色| 日韩电影在线一区二区| 国产精品夜夜嗨| 在线国产电影不卡| 精品国产一区二区三区久久影院| 最新欧美精品一区二区三区| 日韩和欧美一区二区三区| 国产91在线|亚洲| 欧美日韩一区二区三区四区 | 95精品视频在线| 日韩一区二区在线看片| 亚洲欧洲成人自拍| 精品一区二区三区香蕉蜜桃| 91网站黄www| 久久在线观看免费| 成人免费av资源| 韩国三级在线一区| 国产精品主播直播| 欧美极品aⅴ影院| 奇米影视一区二区三区小说| 欧美一区二区精品久久911| 欧美成人video| 亚洲综合激情另类小说区| 久久av老司机精品网站导航| 91丨porny丨户外露出| 精品黑人一区二区三区久久| 亚洲精品美腿丝袜| 成人小视频在线| 欧美精品一区二区三区蜜桃 | 日韩精品一区二| 亚洲一区二区三区中文字幕| 成人av免费在线播放| 日韩欧美国产精品| 丝瓜av网站精品一区二区| 色综合欧美在线| 国产精品久久久久四虎| 国产一区 二区 三区一级| 91精品国产综合久久香蕉的特点| 亚洲女与黑人做爰| av高清不卡在线| 国产精品麻豆欧美日韩ww| 国产精品一区专区| 精品对白一区国产伦| 蜜桃传媒麻豆第一区在线观看| 欧美在线影院一区二区| 樱花草国产18久久久久| 91丨porny丨国产入口| 中文字幕av在线一区二区三区| 国产一区二区0| 国产婷婷色一区二区三区在线| 久久电影国产免费久久电影| 欧美一级夜夜爽| 美女视频一区二区三区| 91精品午夜视频| 欧美aa在线视频| 欧美成人bangbros| 国产呦萝稀缺另类资源| 久久精品综合网| 国产福利精品一区二区| 久久久精品影视| 国产成都精品91一区二区三| 国产欧美中文在线| 成人h版在线观看| 亚洲欧美一区二区三区国产精品| 波多野结衣欧美| 亚洲精品美国一| 91麻豆精品国产91久久久更新时间| 日韩中文字幕av电影| 日韩欧美国产系列| 国产福利一区二区三区视频| 国产精品麻豆一区二区| 在线观看91视频| 蜜臀av国产精品久久久久| www国产成人免费观看视频 深夜成人网| 国产真实乱偷精品视频免| 欧美国产欧美综合| 欧美午夜电影在线播放| 免费成人小视频| 国产精品欧美久久久久无广告| 色综合视频一区二区三区高清| 亚洲国产综合视频在线观看| 欧美一区二区三区小说| 国产精品综合久久| 亚洲摸摸操操av| 欧美一级免费大片| 成人亚洲一区二区一| 午夜在线电影亚洲一区| 久久久久国产免费免费| 91电影在线观看| 国产精品伊人色| 亚洲国产精品一区二区www在线 |