Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
mxser.h File Reference

Go to the source code of this file.

Macros

#define MOXA   0x400
 
#define MOXA_GETDATACOUNT   (MOXA + 23)
 
#define MOXA_DIAGNOSE   (MOXA + 50)
 
#define MOXA_CHKPORTENABLE   (MOXA + 60)
 
#define MOXA_HighSpeedOn   (MOXA + 61)
 
#define MOXA_GET_MAJOR   (MOXA + 63)
 
#define MOXA_GETMSTATUS   (MOXA + 65)
 
#define MOXA_SET_OP_MODE   (MOXA + 66)
 
#define MOXA_GET_OP_MODE   (MOXA + 67)
 
#define RS232_MODE   0
 
#define RS485_2WIRE_MODE   1
 
#define RS422_MODE   2
 
#define RS485_4WIRE_MODE   3
 
#define OP_MODE_MASK   3
 
#define MOXA_SDS_RSTICOUNTER   (MOXA + 69)
 
#define MOXA_ASPP_OQUEUE   (MOXA + 70)
 
#define MOXA_ASPP_MON   (MOXA + 73)
 
#define MOXA_ASPP_LSTATUS   (MOXA + 74)
 
#define MOXA_ASPP_MON_EXT   (MOXA + 75)
 
#define MOXA_SET_BAUD_METHOD   (MOXA + 76)
 
#define NPPI_NOTIFY_PARITY   0x01
 
#define NPPI_NOTIFY_FRAMING   0x02
 
#define NPPI_NOTIFY_HW_OVERRUN   0x04
 
#define NPPI_NOTIFY_SW_OVERRUN   0x08
 
#define NPPI_NOTIFY_BREAK   0x10
 
#define NPPI_NOTIFY_CTSHOLD   0x01 /* Tx hold by CTS low */
 
#define NPPI_NOTIFY_DSRHOLD   0x02 /* Tx hold by DSR low */
 
#define NPPI_NOTIFY_XOFFHOLD   0x08 /* Tx hold by Xoff received */
 
#define NPPI_NOTIFY_XOFFXENT   0x10 /* Xoff Sent */
 
#define MOXA_MUST_ENTER_ENCHANCE   0xBF
 
#define MOXA_MUST_GDL_REGISTER   0x07
 
#define MOXA_MUST_GDL_MASK   0x7F
 
#define MOXA_MUST_GDL_HAS_BAD_DATA   0x80
 
#define MOXA_MUST_LSR_RERR   0x80 /* error in receive FIFO */
 
#define MOXA_MUST_EFR_REGISTER   0x02
 
#define MOXA_MUST_EFR_EFRB_ENABLE   0x10
 
#define MOXA_MUST_EFR_BANK0   0x00
 
#define MOXA_MUST_EFR_BANK1   0x40
 
#define MOXA_MUST_EFR_BANK2   0x80
 
#define MOXA_MUST_EFR_BANK3   0xC0
 
#define MOXA_MUST_EFR_BANK_MASK   0xC0
 
#define MOXA_MUST_XON1_REGISTER   0x04
 
#define MOXA_MUST_XON2_REGISTER   0x05
 
#define MOXA_MUST_XOFF1_REGISTER   0x06
 
#define MOXA_MUST_XOFF2_REGISTER   0x07
 
#define MOXA_MUST_RBRTL_REGISTER   0x04
 
#define MOXA_MUST_RBRTH_REGISTER   0x05
 
#define MOXA_MUST_RBRTI_REGISTER   0x06
 
#define MOXA_MUST_THRTL_REGISTER   0x07
 
#define MOXA_MUST_ENUM_REGISTER   0x04
 
#define MOXA_MUST_HWID_REGISTER   0x05
 
#define MOXA_MUST_ECR_REGISTER   0x06
 
#define MOXA_MUST_CSR_REGISTER   0x07
 
#define MOXA_MUST_FCR_GDA_MODE_ENABLE   0x20
 
#define MOXA_MUST_FCR_GDA_ONLY_ENABLE   0x10
 
#define MOXA_MUST_IER_ECTSI   0x80
 
#define MOXA_MUST_IER_ERTSI   0x40
 
#define MOXA_MUST_IER_XINT   0x20
 
#define MOXA_MUST_IER_EGDAI   0x10
 
#define MOXA_MUST_RECV_ISR   (UART_IER_RDI | MOXA_MUST_IER_EGDAI)
 
#define MOXA_MUST_IIR_GDA   0x1C
 
#define MOXA_MUST_IIR_RDA   0x04
 
#define MOXA_MUST_IIR_RTO   0x0C
 
#define MOXA_MUST_IIR_LSR   0x06
 
#define MOXA_MUST_IIR_XSC   0x10
 
#define MOXA_MUST_IIR_RTSCTS   0x20
 
#define MOXA_MUST_IIR_MASK   0x3E
 
#define MOXA_MUST_MCR_XON_FLAG   0x40
 
#define MOXA_MUST_MCR_XON_ANY   0x80
 
#define MOXA_MUST_MCR_TX_XON   0x08
 
#define MOXA_MUST_EFR_SF_MASK   0x0F
 
#define MOXA_MUST_EFR_SF_TX1   0x08
 
#define MOXA_MUST_EFR_SF_TX2   0x04
 
#define MOXA_MUST_EFR_SF_TX12   0x0C
 
#define MOXA_MUST_EFR_SF_TX_NO   0x00
 
#define MOXA_MUST_EFR_SF_TX_MASK   0x0C
 
#define MOXA_MUST_EFR_SF_RX_NO   0x00
 
#define MOXA_MUST_EFR_SF_RX1   0x02
 
#define MOXA_MUST_EFR_SF_RX2   0x01
 
#define MOXA_MUST_EFR_SF_RX12   0x03
 
#define MOXA_MUST_EFR_SF_RX_MASK   0x03
 

Macro Definition Documentation

#define MOXA   0x400

Definition at line 12 of file mxser.h.

#define MOXA_ASPP_LSTATUS   (MOXA + 74)

Definition at line 31 of file mxser.h.

#define MOXA_ASPP_MON   (MOXA + 73)

Definition at line 30 of file mxser.h.

#define MOXA_ASPP_MON_EXT   (MOXA + 75)

Definition at line 32 of file mxser.h.

#define MOXA_ASPP_OQUEUE   (MOXA + 70)

Definition at line 29 of file mxser.h.

#define MOXA_CHKPORTENABLE   (MOXA + 60)

Definition at line 15 of file mxser.h.

#define MOXA_DIAGNOSE   (MOXA + 50)

Definition at line 14 of file mxser.h.

#define MOXA_GET_MAJOR   (MOXA + 63)

Definition at line 17 of file mxser.h.

#define MOXA_GET_OP_MODE   (MOXA + 67)

Definition at line 20 of file mxser.h.

#define MOXA_GETDATACOUNT   (MOXA + 23)

Definition at line 13 of file mxser.h.

#define MOXA_GETMSTATUS   (MOXA + 65)

Definition at line 18 of file mxser.h.

#define MOXA_HighSpeedOn   (MOXA + 61)

Definition at line 16 of file mxser.h.

#define MOXA_MUST_CSR_REGISTER   0x07

Definition at line 92 of file mxser.h.

#define MOXA_MUST_ECR_REGISTER   0x06

Definition at line 91 of file mxser.h.

#define MOXA_MUST_EFR_BANK0   0x00

Definition at line 67 of file mxser.h.

#define MOXA_MUST_EFR_BANK1   0x40

Definition at line 68 of file mxser.h.

#define MOXA_MUST_EFR_BANK2   0x80

Definition at line 69 of file mxser.h.

#define MOXA_MUST_EFR_BANK3   0xC0

Definition at line 70 of file mxser.h.

#define MOXA_MUST_EFR_BANK_MASK   0xC0

Definition at line 71 of file mxser.h.

#define MOXA_MUST_EFR_EFRB_ENABLE   0x10

Definition at line 65 of file mxser.h.

#define MOXA_MUST_EFR_REGISTER   0x02

Definition at line 63 of file mxser.h.

#define MOXA_MUST_EFR_SF_MASK   0x0F

Definition at line 128 of file mxser.h.

#define MOXA_MUST_EFR_SF_RX1   0x02

Definition at line 142 of file mxser.h.

#define MOXA_MUST_EFR_SF_RX12   0x03

Definition at line 146 of file mxser.h.

#define MOXA_MUST_EFR_SF_RX2   0x01

Definition at line 144 of file mxser.h.

#define MOXA_MUST_EFR_SF_RX_MASK   0x03

Definition at line 148 of file mxser.h.

#define MOXA_MUST_EFR_SF_RX_NO   0x00

Definition at line 140 of file mxser.h.

#define MOXA_MUST_EFR_SF_TX1   0x08

Definition at line 130 of file mxser.h.

#define MOXA_MUST_EFR_SF_TX12   0x0C

Definition at line 134 of file mxser.h.

#define MOXA_MUST_EFR_SF_TX2   0x04

Definition at line 132 of file mxser.h.

#define MOXA_MUST_EFR_SF_TX_MASK   0x0C

Definition at line 138 of file mxser.h.

#define MOXA_MUST_EFR_SF_TX_NO   0x00

Definition at line 136 of file mxser.h.

#define MOXA_MUST_ENTER_ENCHANCE   0xBF

Definition at line 53 of file mxser.h.

#define MOXA_MUST_ENUM_REGISTER   0x04

Definition at line 89 of file mxser.h.

#define MOXA_MUST_FCR_GDA_MODE_ENABLE   0x20

Definition at line 95 of file mxser.h.

#define MOXA_MUST_FCR_GDA_ONLY_ENABLE   0x10

Definition at line 97 of file mxser.h.

#define MOXA_MUST_GDL_HAS_BAD_DATA   0x80

Definition at line 58 of file mxser.h.

#define MOXA_MUST_GDL_MASK   0x7F

Definition at line 57 of file mxser.h.

#define MOXA_MUST_GDL_REGISTER   0x07

Definition at line 56 of file mxser.h.

#define MOXA_MUST_HWID_REGISTER   0x05

Definition at line 90 of file mxser.h.

#define MOXA_MUST_IER_ECTSI   0x80

Definition at line 100 of file mxser.h.

#define MOXA_MUST_IER_EGDAI   0x10

Definition at line 106 of file mxser.h.

#define MOXA_MUST_IER_ERTSI   0x40

Definition at line 102 of file mxser.h.

#define MOXA_MUST_IER_XINT   0x20

Definition at line 104 of file mxser.h.

#define MOXA_MUST_IIR_GDA   0x1C

Definition at line 111 of file mxser.h.

#define MOXA_MUST_IIR_LSR   0x06

Definition at line 114 of file mxser.h.

#define MOXA_MUST_IIR_MASK   0x3E

Definition at line 121 of file mxser.h.

#define MOXA_MUST_IIR_RDA   0x04

Definition at line 112 of file mxser.h.

#define MOXA_MUST_IIR_RTO   0x0C

Definition at line 113 of file mxser.h.

#define MOXA_MUST_IIR_RTSCTS   0x20

Definition at line 120 of file mxser.h.

#define MOXA_MUST_IIR_XSC   0x10

Definition at line 117 of file mxser.h.

#define MOXA_MUST_LSR_RERR   0x80 /* error in receive FIFO */

Definition at line 60 of file mxser.h.

#define MOXA_MUST_MCR_TX_XON   0x08

Definition at line 125 of file mxser.h.

#define MOXA_MUST_MCR_XON_ANY   0x80

Definition at line 124 of file mxser.h.

#define MOXA_MUST_MCR_XON_FLAG   0x40

Definition at line 123 of file mxser.h.

#define MOXA_MUST_RBRTH_REGISTER   0x05

Definition at line 86 of file mxser.h.

#define MOXA_MUST_RBRTI_REGISTER   0x06

Definition at line 87 of file mxser.h.

#define MOXA_MUST_RBRTL_REGISTER   0x04

Definition at line 85 of file mxser.h.

#define MOXA_MUST_RECV_ISR   (UART_IER_RDI | MOXA_MUST_IER_EGDAI)

Definition at line 108 of file mxser.h.

#define MOXA_MUST_THRTL_REGISTER   0x07

Definition at line 88 of file mxser.h.

#define MOXA_MUST_XOFF1_REGISTER   0x06

Definition at line 80 of file mxser.h.

#define MOXA_MUST_XOFF2_REGISTER   0x07

Definition at line 83 of file mxser.h.

#define MOXA_MUST_XON1_REGISTER   0x04

Definition at line 74 of file mxser.h.

#define MOXA_MUST_XON2_REGISTER   0x05

Definition at line 77 of file mxser.h.

#define MOXA_SDS_RSTICOUNTER   (MOXA + 69)

Definition at line 28 of file mxser.h.

#define MOXA_SET_BAUD_METHOD   (MOXA + 76)

Definition at line 33 of file mxser.h.

#define MOXA_SET_OP_MODE   (MOXA + 66)

Definition at line 19 of file mxser.h.

#define NPPI_NOTIFY_BREAK   0x10

Definition at line 41 of file mxser.h.

#define NPPI_NOTIFY_CTSHOLD   0x01 /* Tx hold by CTS low */

Definition at line 43 of file mxser.h.

#define NPPI_NOTIFY_DSRHOLD   0x02 /* Tx hold by DSR low */

Definition at line 44 of file mxser.h.

#define NPPI_NOTIFY_FRAMING   0x02

Definition at line 38 of file mxser.h.

#define NPPI_NOTIFY_HW_OVERRUN   0x04

Definition at line 39 of file mxser.h.

#define NPPI_NOTIFY_PARITY   0x01

Definition at line 37 of file mxser.h.

#define NPPI_NOTIFY_SW_OVERRUN   0x08

Definition at line 40 of file mxser.h.

#define NPPI_NOTIFY_XOFFHOLD   0x08 /* Tx hold by Xoff received */

Definition at line 45 of file mxser.h.

#define NPPI_NOTIFY_XOFFXENT   0x10 /* Xoff Sent */

Definition at line 46 of file mxser.h.

#define OP_MODE_MASK   3

Definition at line 26 of file mxser.h.

#define RS232_MODE   0

Definition at line 22 of file mxser.h.

#define RS422_MODE   2

Definition at line 24 of file mxser.h.

#define RS485_2WIRE_MODE   1

Definition at line 23 of file mxser.h.

#define RS485_4WIRE_MODE   3

Definition at line 25 of file mxser.h.