// // UART register numbers // Numbers 0-7 are passed to the Edgeport directly. Numbers 8 and // above are used internally to indicate that we must enable access // to them via LCR bit 0x80 or LCR = 0xBF. // The register number sent to the Edgeport is then (x & 0x7). // // Driver must not access registers that affect operation of the // the EdgePort firmware -- that includes THR, RHR, IER, FCR.
#define LCR_PAR_NONE 0x00 // No parity #define LCR_PAR_ODD 0x08 // Odd parity #define LCR_PAR_EVEN 0x18 // Even parity #define LCR_PAR_MARK 0x28 // Force parity bit to 1 #define LCR_PAR_SPACE 0x38 // Force parity bit to 0 #define LCR_PAR_MASK 0x38 // Mask for parity field
#define LCR_SET_BREAK 0x40 // Set Break condition #define LCR_DL_ENABLE 0x80 // Enable access to divisor latch
#define LCR_ACCESS_EFR 0xBF // Load this value to access DLL,DLM, // and also the '654-only registers // EFR, XON1, XON2, XOFF1, XOFF2
#define MCR_DTR 0x01 // Assert DTR #define MCR_RTS 0x02 // Assert RTS #define MCR_OUT1 0x04 // Loopback only: Sets state of RI #define MCR_MASTER_IE 0x08 // Enable interrupt outputs #define MCR_LOOPBACK 0x10 // Set internal (digital) loopback mode #define MCR_XON_ANY 0x20 // Enable any char to exit XOFF mode #define MCR_IR_ENABLE 0x40 // Enable IrDA functions #define MCR_BRG_DIV_4 0x80 // Divide baud rate clk by /4 instead of /1
#define EDGEPORT_MSR_DELTA_CTS 0x01 // CTS changed from last read #define EDGEPORT_MSR_DELTA_DSR 0x02 // DSR changed from last read #define EDGEPORT_MSR_DELTA_RI 0x04 // RI changed from 0 -> 1 #define EDGEPORT_MSR_DELTA_CD 0x08 // CD changed from last read #define EDGEPORT_MSR_CTS 0x10 // Current state of CTS #define EDGEPORT_MSR_DSR 0x20 // Current state of DSR #define EDGEPORT_MSR_RI 0x40 // Current state of RI #define EDGEPORT_MSR_CD 0x80 // Current state of CD
#define EFR_TX_FC_MASK 0x0c // Mask to isolate Rx flow control #define EFR_TX_FC_NONE 0x00 // No Tx Xon/Xoff flow control #define EFR_TX_FC_X1 0x08 // Transmit Xon1/Xoff1 #define EFR_TX_FC_X2 0x04 // Transmit Xon2/Xoff2 #define EFR_TX_FC_X1_2 0x0c // Transmit Xon1&2/Xoff1&2
#define EFR_RX_FC_MASK 0x03 // Mask to isolate Rx flow control #define EFR_RX_FC_NONE 0x00 // No Rx Xon/Xoff flow control #define EFR_RX_FC_X1 0x02 // Receiver compares Xon1/Xoff1 #define EFR_RX_FC_X2 0x01 // Receiver compares Xon2/Xoff2 #define EFR_RX_FC_X1_2 0x03 // Receiver compares Xon1&2/Xoff1&2
#define EFR_SWFC_MASK 0x0F // Mask for software flow control field #define EFR_ENABLE_16654 0x10 // Enable 16C654 features #define EFR_SPEC_DETECT 0x20 // Enable special character detect interrupt #define EFR_AUTO_RTS 0x40 // Use RTS for Rx flow control #define EFR_AUTO_CTS 0x80 // Use CTS for Tx flow control
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.