Struct zinc_hal_lpc11xx::ioregs::UART_ter_Get [] [src]

pub struct UART_ter_Get {
    // some fields omitted
}

TER: Transmit Enable Register. Turns off UART transmitter for use with software flow control.

Methods

impl UART_ter_Get

fn new(reg: &UART_ter) -> UART_ter_Get

Create a getter reflecting the current value of the given register.

fn raw(&self) -> u32

Get the raw value of the register.

fn txen(&self) -> bool

Get value of TXEN field: When this bit is 1, as it is after a Reset, data written to the THR is output on the TXD pin as soon as any preceding data has been sent. If this bit cleared to 0 while a character is being sent, the transmission of that character is completed, but no further characters are sent until this bit is set again. In other words, a 0 in this bit blocks the transfer of characters from the THR or TX FIFO into the transmit shift register. Software can clear this bit when it detects that the a hardware-handshaking TX-permit signal (CTS) has gone false, or with software handshaking, when it receives an XOFF character (DC3). Software can set this bit again when it detects that the TX-permit signal has gone true, or when it receives an XON (DC1) character.

Trait Implementations

impl Copy for UART_ter_Get

Derived Implementations

impl Clone for UART_ter_Get

fn clone(&self) -> UART_ter_Get

fn clone_from(&mut self, source: &Self)