#[repr(transparent)]pub struct Ctrl(pub u32);Expand description
Control.
Tuple Fields§
§0: u32Implementations§
Source§impl Ctrl
impl Ctrl
Sourcepub const fn pt(&self) -> bool
pub const fn pt(&self) -> bool
Parity Type. Raw bit values: false (0) = Even: Even parity.; true (1) = Odd: Odd parity.
Sourcepub const fn set_pt(&mut self, val: bool)
pub const fn set_pt(&mut self, val: bool)
Parity Type. Raw bit values: false (0) = Even: Even parity.; true (1) = Odd: Odd parity.
Sourcepub const fn ilt(&self) -> bool
pub const fn ilt(&self) -> bool
Idle Line Type Select. Raw bit values: false (0) = FromStart: After the start bit.; true (1) = FromStop: After the stop bit.
Sourcepub const fn set_ilt(&mut self, val: bool)
pub const fn set_ilt(&mut self, val: bool)
Idle Line Type Select. Raw bit values: false (0) = FromStart: After the start bit.; true (1) = FromStop: After the stop bit.
Sourcepub const fn wake(&self) -> bool
pub const fn wake(&self) -> bool
Receiver Wake-Up Method Select. Raw bit values: false (0) = Idle: Idle.; true (1) = Mark: Mark.
Sourcepub const fn set_wake(&mut self, val: bool)
pub const fn set_wake(&mut self, val: bool)
Receiver Wake-Up Method Select. Raw bit values: false (0) = Idle: Idle.; true (1) = Mark: Mark.
Sourcepub const fn m(&self) -> bool
pub const fn m(&self) -> bool
9-Bit Or 8-Bit Mode Select. Raw bit values: false (0) = Data8: 8-bit.; true (1) = Data9: 9-bit.
Sourcepub const fn set_m(&mut self, val: bool)
pub const fn set_m(&mut self, val: bool)
9-Bit Or 8-Bit Mode Select. Raw bit values: false (0) = Data8: 8-bit.; true (1) = Data9: 9-bit.
Sourcepub const fn rsrc(&self) -> bool
pub const fn rsrc(&self) -> bool
Receiver Source Select. Raw bit values: false (0) = NoEffect: Internal Loopback mode.; true (1) = Onewire: Single-wire mode.
Sourcepub const fn set_rsrc(&mut self, val: bool)
pub const fn set_rsrc(&mut self, val: bool)
Receiver Source Select. Raw bit values: false (0) = NoEffect: Internal Loopback mode.; true (1) = Onewire: Single-wire mode.
Sourcepub const fn loops(&self) -> bool
pub const fn loops(&self) -> bool
Loop Mode Select. Raw bit values: false (0) = Noffect: Normal operation: RXD and TXD use separate pins.; true (1) = Loopback: Loop mode or Single-Wire mode.
Sourcepub const fn set_loops(&mut self, val: bool)
pub const fn set_loops(&mut self, val: bool)
Loop Mode Select. Raw bit values: false (0) = Noffect: Normal operation: RXD and TXD use separate pins.; true (1) = Loopback: Loop mode or Single-Wire mode.
Sourcepub const fn set_idlecfg(&mut self, val: Idlecfg)
pub const fn set_idlecfg(&mut self, val: Idlecfg)
Idle Configuration.
Sourcepub const fn m7(&self) -> bool
pub const fn m7(&self) -> bool
7-Bit Mode Select. Raw bit values: false (0) = NoEffect: 8-bit to 10-bit.; true (1) = Data7: 7-bit.
Sourcepub const fn set_m7(&mut self, val: bool)
pub const fn set_m7(&mut self, val: bool)
7-Bit Mode Select. Raw bit values: false (0) = NoEffect: 8-bit to 10-bit.; true (1) = Data7: 7-bit.
Sourcepub const fn sbk(&self) -> bool
pub const fn sbk(&self) -> bool
Send Break. Raw bit values: false (0) = NoEffect: Normal transmitter operation.; true (1) = TxBreak: Queue break character(s) to be sent.
Sourcepub const fn set_sbk(&mut self, val: bool)
pub const fn set_sbk(&mut self, val: bool)
Send Break. Raw bit values: false (0) = NoEffect: Normal transmitter operation.; true (1) = TxBreak: Queue break character(s) to be sent.
Sourcepub const fn rwu(&self) -> bool
pub const fn rwu(&self) -> bool
Receiver Wake-Up Control. Raw bit values: false (0) = NoEffect: Normal receiver operation.; true (1) = RxWakeup: LPUART receiver in standby, waiting for a wake-up condition.
Sourcepub const fn set_rwu(&mut self, val: bool)
pub const fn set_rwu(&mut self, val: bool)
Receiver Wake-Up Control. Raw bit values: false (0) = NoEffect: Normal receiver operation.; true (1) = RxWakeup: LPUART receiver in standby, waiting for a wake-up condition.
Sourcepub const fn txdir(&self) -> bool
pub const fn txdir(&self) -> bool
TXD Pin Direction in Single-Wire Mode. Raw bit values: false (0) = TxInput: Input.; true (1) = TxOutput: Output.