Struct lpc177x_8x::uart1::mcr::R[][src]

pub struct R { /* fields omitted */ }

Value read from the register

Methods

impl R
[src]

Value of the register as raw bits

Bit 0 - DTR Control. Source for modem output pin, DTR. This bit reads as 0 when modem loopback mode is active.

Bit 1 - RTS Control. Source for modem output pin RTS. This bit reads as 0 when modem loopback mode is active.

Bit 4 - Loopback Mode Select. The modem loopback mode provides a mechanism to perform diagnostic loopback testing. Serial data from the transmitter is connected internally to serial input of the receiver. Input pin, RXD1, has no effect on loopback and output pin, TXD1 is held in marking state. The 4 modem inputs (CTS, DSR, RI and DCD) are disconnected externally. Externally, the modem outputs (RTS, DTR) are set inactive. Internally, the 4 modem outputs are connected to the 4 modem inputs. As a result of these connections, the upper 4 bits of the MSR will be driven by the lower 4 bits of the MCR rather than the 4 modem inputs in normal mode. This permits modem status interrupts to be generated in loopback mode by writing the lower 4 bits of MCR.

Bit 6 - RTS enable.

Bit 7 - CTS enable.

Auto Trait Implementations

impl Send for R

impl Sync for R