pub struct Control { /* private fields */ }Expand description
Control register.
Implementations§
Source§impl Control
impl Control
Sourcepub const ZERO: Self
pub const ZERO: Self
Creates a new instance with a raw value of 0. Equivalent to [Self::new_with_raw_value(0)].
Sourcepub const fn new() -> Self
👎Deprecated: Use Control::Default (or Control::DEFAULT in const context) instead
pub const fn new() -> Self
Creates a new instance of this struct using the default value
Sourcepub const fn new_with_raw_value(value: u32) -> Control
pub const fn new_with_raw_value(value: u32) -> Control
Creates a new instance of this bitfield with the given raw value.
No checks are performed on the value, so it is possible to set bits that don’t have any accessors specified.
Sourcepub const fn builder() -> PartialControl<0>
pub const fn builder() -> PartialControl<0>
Creates a builder for this bitfield which ensures that all writable fields are initialized
Sourcepub const fn with_enable_interrupt(&self, field_value: bool) -> Self
pub const fn with_enable_interrupt(&self, field_value: bool) -> Self
Enable interrupt bit.
Sourcepub fn set_enable_interrupt(&mut self, field_value: bool)
pub fn set_enable_interrupt(&mut self, field_value: bool)
Enable interrupt bit.
Sourcepub const fn with_reset_rx_fifo(&self, field_value: bool) -> Self
pub const fn with_reset_rx_fifo(&self, field_value: bool) -> Self
Reset RX FIFO.
Sourcepub fn set_reset_rx_fifo(&mut self, field_value: bool)
pub fn set_reset_rx_fifo(&mut self, field_value: bool)
Reset RX FIFO.
Sourcepub const fn with_reset_tx_fifo(&self, field_value: bool) -> Self
pub const fn with_reset_tx_fifo(&self, field_value: bool) -> Self
Reset TX FIFO.
Sourcepub fn set_reset_tx_fifo(&mut self, field_value: bool)
pub fn set_reset_tx_fifo(&mut self, field_value: bool)
Reset TX FIFO.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnwindSafe for Control
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