#[repr(transparent)]pub struct Ctrl(pub u32);Expand description
Control.
Tuple Fields§
§0: u32Implementations§
Source§impl Ctrl
impl Ctrl
Sourcepub const fn set_flsh_rx(&mut self, val: FlshRx)
pub const fn set_flsh_rx(&mut self, val: FlshRx)
Flush Receiver.
Sourcepub const fn set_flsh_tx(&mut self, val: FlshTx)
pub const fn set_flsh_tx(&mut self, val: FlshTx)
Flush Transmitter.
Sourcepub const fn set_sw_rst(&mut self, val: SwRst)
pub const fn set_sw_rst(&mut self, val: SwRst)
Software Reset.
Sourcepub const fn kill_clocks(&self) -> KillClocks
pub const fn kill_clocks(&self) -> KillClocks
Kill Internal Clocks.
Sourcepub const fn set_kill_clocks(&mut self, val: KillClocks)
pub const fn set_kill_clocks(&mut self, val: KillClocks)
Kill Internal Clocks.
Sourcepub const fn set_doze_en(&mut self, val: DozeEn)
pub const fn set_doze_en(&mut self, val: DozeEn)
Doze Enable.
Sourcepub const fn set_stop_en(&mut self, val: StopEn)
pub const fn set_stop_en(&mut self, val: StopEn)
STOP Enable.
Sourcepub const fn set_rcv_en(&mut self, val: bool)
pub const fn set_rcv_en(&mut self, val: bool)
Receiver Enable.
Sourcepub const fn set_xmt_en(&mut self, val: bool)
pub const fn set_xmt_en(&mut self, val: bool)
Transmitter Enable.
Sourcepub const fn set_rcvr_11(&mut self, val: Rcvr11)
pub const fn set_rcvr_11(&mut self, val: Rcvr11)
Receiver 11 ETU Mode Enable.
Sourcepub const fn set_rx_dma_en(&mut self, val: bool)
pub const fn set_rx_dma_en(&mut self, val: bool)
Receive DMA Enable.
Sourcepub const fn set_tx_dma_en(&mut self, val: bool)
pub const fn set_tx_dma_en(&mut self, val: bool)
Transmit DMA Enable.
Sourcepub const fn inv_crc_val(&self) -> bool
pub const fn inv_crc_val(&self) -> bool
Invert CRC Output Value Bits.
Sourcepub const fn set_inv_crc_val(&mut self, val: bool)
pub const fn set_inv_crc_val(&mut self, val: bool)
Invert CRC Output Value Bits.
Sourcepub const fn crc_out_flip(&self) -> bool
pub const fn crc_out_flip(&self) -> bool
CRC Output Value Bit Reversal Or Flip Control.
Sourcepub const fn set_crc_out_flip(&mut self, val: bool)
pub const fn set_crc_out_flip(&mut self, val: bool)
CRC Output Value Bit Reversal Or Flip Control.
Sourcepub const fn crc_in_flip(&self) -> bool
pub const fn crc_in_flip(&self) -> bool
CRC Input Byte’s Bit Reversal Or Flip Control.
Sourcepub const fn set_crc_in_flip(&mut self, val: bool)
pub const fn set_crc_in_flip(&mut self, val: bool)
CRC Input Byte’s Bit Reversal Or Flip Control.
Sourcepub const fn set_cwt_en(&mut self, val: bool)
pub const fn set_cwt_en(&mut self, val: bool)
CWT Counter Enable.
Sourcepub const fn set_lrc_en(&mut self, val: bool)
pub const fn set_lrc_en(&mut self, val: bool)
LRC Enable.
Sourcepub const fn set_crc_en(&mut self, val: bool)
pub const fn set_crc_en(&mut self, val: bool)
CRC Enable.
Sourcepub const fn xmt_crc_lrc(&self) -> bool
pub const fn xmt_crc_lrc(&self) -> bool
Transmit CRC or LRC Enable.
Sourcepub const fn set_xmt_crc_lrc(&mut self, val: bool)
pub const fn set_xmt_crc_lrc(&mut self, val: bool)
Transmit CRC or LRC Enable.
Sourcepub const fn set_bwt_en(&mut self, val: bool)
pub const fn set_bwt_en(&mut self, val: bool)
Block Wait Time Counter Enable.
Trait Implementations§
impl Copy for Ctrl
impl Eq for Ctrl
impl StructuralPartialEq for Ctrl
Auto Trait Implementations§
impl Freeze for Ctrl
impl RefUnwindSafe for Ctrl
impl Send for Ctrl
impl Sync for Ctrl
impl Unpin for Ctrl
impl UnwindSafe for Ctrl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more