Struct stm32_metapac::spi::regs::Cr1
#[repr(transparent)]pub struct Cr1(pub u32);
Expand description
control register 1
Tuple Fieldsยง
ยง0: u32
Implementationsยง
ยงimpl Cr1
impl Cr1
pub fn set_cstart(&mut self, val: bool)
pub fn set_cstart(&mut self, val: bool)
Master transfer start
pub fn set_crc33_17(&mut self, val: bool)
pub fn set_crc33_17(&mut self, val: bool)
Full size (33-bit or 17-bit) CRC polynomial is used
pub fn set_rcrcini(&mut self, val: Rcrcini)
pub fn set_rcrcini(&mut self, val: Rcrcini)
CRC calculation initialization pattern control for receiver
pub const fn tcrcini(&self) -> Tcrcini
pub const fn tcrcini(&self) -> Tcrcini
CRC calculation initialization pattern control for transmitter
pub fn set_tcrcini(&mut self, val: Tcrcini)
pub fn set_tcrcini(&mut self, val: Tcrcini)
CRC calculation initialization pattern control for transmitter
pub fn set_iolock(&mut self, val: bool)
pub fn set_iolock(&mut self, val: bool)
Locking the AF configuration of associated IOs
Trait Implementationsยง
impl Copy for Cr1
impl Eq for Cr1
impl StructuralEq for Cr1
impl StructuralPartialEq for Cr1
Auto Trait Implementationsยง
impl RefUnwindSafe for Cr1
impl Send for Cr1
impl Sync for Cr1
impl Unpin for Cr1
impl UnwindSafe for Cr1
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