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 const fn rdiom(&self) -> Rdiom
pub const fn rdiom(&self) -> Rdiom
RDY signal input/output management Note: When DSIZE at the CFG1 register is configured shorter than 8-bit, the RDIOM bit has to be kept at zero.
pub fn set_rdiom(&mut self, val: Rdiom)
pub fn set_rdiom(&mut self, val: Rdiom)
RDY signal input/output management Note: When DSIZE at the CFG1 register is configured shorter than 8-bit, the RDIOM bit has to be kept at zero.
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 StructuralEq for Cfg2
impl StructuralPartialEq for Cfg2
Auto Trait Implementationsยง
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