Struct stm32_metapac::spi::regs::Cfg2
#[repr(transparent)]pub struct Cfg2(pub u32);
Expand description
configuration register 2
Tuple Fields§
§0: u32
Implementations§
§impl Cfg2
impl Cfg2
pub fn set_master(&mut self, val: Master)
pub fn set_master(&mut self, val: Master)
SPI Master
pub fn set_lsbfirst(&mut self, val: Lsbfirst)
pub fn set_lsbfirst(&mut self, val: Lsbfirst)
Data frame format
pub fn set_afcntr(&mut self, val: bool)
pub fn set_afcntr(&mut self, val: bool)
Alternate function always control GPIOs
Trait Implementations§
impl Copy for Cfg2
impl Eq for Cfg2
impl StructuralPartialEq for Cfg2
Auto Trait Implementations§
impl Freeze for Cfg2
impl RefUnwindSafe for Cfg2
impl Send for Cfg2
impl Sync for Cfg2
impl Unpin for Cfg2
impl UnwindSafe for Cfg2
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
)