#[repr(transparent)]pub struct Hdcr(pub u32);Expand description
Half Duplex Control.
Tuple Fields§
§0: u32Implementations§
Source§impl Hdcr
impl Hdcr
Sourcepub const fn txstall(&self) -> bool
pub const fn txstall(&self) -> bool
Prevent transmitter from becoming busy or asserting RTS_B while the receiver is active. Raw bit values: false (0) = Disabled: No effect.; true (1) = Enabled: Does not become busy.
Sourcepub const fn set_txstall(&mut self, val: bool)
pub const fn set_txstall(&mut self, val: bool)
Prevent transmitter from becoming busy or asserting RTS_B while the receiver is active. Raw bit values: false (0) = Disabled: No effect.; true (1) = Enabled: Does not become busy.
Sourcepub const fn rxsel(&self) -> bool
pub const fn rxsel(&self) -> bool
Receive data source. Zero selects RXD; one selects TXD. Raw bit values: false (0) = PinRxd: RXD.; true (1) = PinTxd: TXD.
Sourcepub const fn set_rxsel(&mut self, val: bool)
pub const fn set_rxsel(&mut self, val: bool)
Receive data source. Zero selects RXD; one selects TXD. Raw bit values: false (0) = PinRxd: RXD.; true (1) = PinTxd: TXD.
Sourcepub const fn rxwrmsk(&self) -> bool
pub const fn rxwrmsk(&self) -> bool
Allow transmitter RTS_B to mask receive FIFO writes, without affecting the idle flag. Raw bit values: false (0) = NotMasked: Do not mask.; true (1) = Masked: Mask.
Sourcepub const fn set_rxwrmsk(&mut self, val: bool)
pub const fn set_rxwrmsk(&mut self, val: bool)
Allow transmitter RTS_B to mask receive FIFO writes, without affecting the idle flag. Raw bit values: false (0) = NotMasked: Do not mask.; true (1) = Masked: Mask.
Sourcepub const fn rxmsk(&self) -> bool
pub const fn rxmsk(&self) -> bool
Allow transmitter RTS_B to mask the receive data pin. Raw bit values: false (0) = NotMasked: Do not mask.; true (1) = Masked: Mask.
Sourcepub const fn set_rxmsk(&mut self, val: bool)
pub const fn set_rxmsk(&mut self, val: bool)
Allow transmitter RTS_B to mask the receive data pin. Raw bit values: false (0) = NotMasked: Do not mask.; true (1) = Masked: Mask.
Sourcepub const fn rtsext(&self) -> u8
pub const fn rtsext(&self) -> u8
RTS_B remains asserted for RTSEXT+1 bit times after the last stop bit, including internally when transmitter RTS output is disabled.
Sourcepub const fn set_rtsext(&mut self, val: u8)
pub const fn set_rtsext(&mut self, val: u8)
RTS_B remains asserted for RTSEXT+1 bit times after the last stop bit, including internally when transmitter RTS output is disabled.