Struct stm32_metapac::spi::regs::Autocr
#[repr(transparent)]pub struct Autocr(pub u32);
Tuple Fields§
§0: u32
Implementations§
§impl Autocr
impl Autocr
pub const fn trigsel(&self) -> u8
pub const fn trigsel(&self) -> u8
trigger selection (refer ). … Note: these bits can be written only when SPE = 0.
pub fn set_trigsel(&mut self, val: u8)
pub fn set_trigsel(&mut self, val: u8)
trigger selection (refer ). … Note: these bits can be written only when SPE = 0.
pub const fn trigpol(&self) -> Trigpol
pub const fn trigpol(&self) -> Trigpol
trigger polarity Note: This bit can be written only when SPE = 0.
pub fn set_trigpol(&mut self, val: Trigpol)
pub fn set_trigpol(&mut self, val: Trigpol)
trigger polarity Note: This bit can be written only when SPE = 0.
pub const fn trigen(&self) -> bool
pub const fn trigen(&self) -> bool
trigger of CSTART control enable Note: if user can’t prevent trigger event during write, the TRIGEN has to be changed when SPI is disabled
pub fn set_trigen(&mut self, val: bool)
pub fn set_trigen(&mut self, val: bool)
trigger of CSTART control enable Note: if user can’t prevent trigger event during write, the TRIGEN has to be changed when SPI is disabled
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)