Struct stm32_metapac::spi::regs::Cfg1
#[repr(transparent)]pub struct Cfg1(pub u32);
Expand description
configuration register 1
Tuple Fields§
§0: u32
Implementations§
§impl Cfg1
impl Cfg1
pub fn set_udrcfg(&mut self, val: Udrcfg)
pub fn set_udrcfg(&mut self, val: Udrcfg)
Behavior of slave transmitter at underrun condition
pub fn set_udrdet(&mut self, val: Udrdet)
pub fn set_udrdet(&mut self, val: Udrdet)
Detection of underrun condition at slave transmitter
pub fn set_rxdmaen(&mut self, val: bool)
pub fn set_rxdmaen(&mut self, val: bool)
Rx DMA stream enable
pub fn set_txdmaen(&mut self, val: bool)
pub fn set_txdmaen(&mut self, val: bool)
Tx DMA stream enable
pub fn set_crcsize(&mut self, val: u8)
pub fn set_crcsize(&mut self, val: u8)
Length of CRC frame to be transacted and compared
Trait Implementations§
impl Copy for Cfg1
impl Eq for Cfg1
impl StructuralPartialEq for Cfg1
Auto Trait Implementations§
impl Freeze for Cfg1
impl RefUnwindSafe for Cfg1
impl Send for Cfg1
impl Sync for Cfg1
impl Unpin for Cfg1
impl UnwindSafe for Cfg1
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
)