Struct lpc177x_8x::uart1::mcr::R [−][src]
pub struct R { /* fields omitted */ }
Value read from the register
Methods
impl R
[src]
impl R
pub fn bits(&self) -> u32
[src]
pub fn bits(&self) -> u32
Value of the register as raw bits
pub fn dtrctrl(&self) -> DTRCTRLR
[src]
pub fn dtrctrl(&self) -> DTRCTRLR
Bit 0 - DTR Control. Source for modem output pin, DTR. This bit reads as 0 when modem loopback mode is active.
pub fn rtsctrl(&self) -> RTSCTRLR
[src]
pub fn rtsctrl(&self) -> RTSCTRLR
Bit 1 - RTS Control. Source for modem output pin RTS. This bit reads as 0 when modem loopback mode is active.
pub fn lms(&self) -> LMSR
[src]
pub fn lms(&self) -> LMSR
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.
pub fn rtsen(&self) -> RTSENR
[src]
pub fn rtsen(&self) -> RTSENR
Bit 6 - RTS enable.
pub fn ctsen(&self) -> CTSENR
[src]
pub fn ctsen(&self) -> CTSENR
Bit 7 - CTS enable.