Struct Autocr
#[repr(transparent)]pub struct Autocr(pub u32);Expand description
Autonomous mode control register (only on STM32U3, U5, WBA)
Tuple Fields§
§0: u32Implementations§
§impl Autocr
impl Autocr
pub const fn set_tcdmaen(&mut self, val: bool)
pub const fn set_tcdmaen(&mut self, val: bool)
DMA request enable on Transfer Complete event
pub const fn set_tcrdmaen(&mut self, val: bool)
pub const fn set_tcrdmaen(&mut self, val: bool)
DMA request enable on Transfer Complete Reload event
pub const fn trigsel(&self) -> u8
pub const fn trigsel(&self) -> u8
Trigger selection (i2c_trgN, see the I2C interconnection table). Can be written only when PE = 0.
pub const fn set_trigsel(&mut self, val: u8)
pub const fn set_trigsel(&mut self, val: u8)
Trigger selection (i2c_trgN, see the I2C interconnection table). Can be written only when PE = 0.
pub const fn set_trigpol(&mut self, val: Trigpol)
pub const fn set_trigpol(&mut self, val: Trigpol)
Trigger polarity. Can be written only when PE = 0.
pub const fn trigen(&self) -> bool
pub const fn trigen(&self) -> bool
Trigger enable. When a trigger is detected, a START condition is sent and the transfer is launched as defined in CR2.
pub const fn set_trigen(&mut self, val: bool)
pub const fn set_trigen(&mut self, val: bool)
Trigger enable. When a trigger is detected, a START condition is sent and the transfer is launched as defined in CR2.
Trait Implementations§
impl Copy for Autocr
impl Eq for Autocr
impl StructuralPartialEq for Autocr
Auto Trait Implementations§
impl Freeze for Autocr
impl RefUnwindSafe for Autocr
impl Send for Autocr
impl Sync for Autocr
impl Unpin for Autocr
impl UnsafeUnpin for Autocr
impl UnwindSafe for Autocr
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