pub struct R { /* private fields */ }
Expand description
Value read from the register
Implementations§
source§impl R
impl R
sourcepub fn dtrctrl(&self) -> DTRCTRLR
pub fn dtrctrl(&self) -> DTRCTRLR
Bit 0 - Source for modem output pin DTR. This bit reads as 0 when modem loopback mode is active.
sourcepub fn rtsctrl(&self) -> RTSCTRLR
pub fn rtsctrl(&self) -> RTSCTRLR
Bit 1 - Source for modem output pin RTS. This bit reads as 0 when modem loopback mode is active.
sourcepub fn lms(&self) -> LMSR
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, RXD, has no effect on loopback and output pin, TXD is held in marking state. The DSR, CTS, DCD, and RI pins are ignored. Externally, DTR and RTS are set inactive. Internally, the upper four bits of the MSR are driven by the lower four bits of the MCR. This permits modem status interrupts to be generated in loopback mode by writing the lower four bits of MCR.