Struct stm32_metapac::i2c::regs::Cr2
#[repr(transparent)]pub struct Cr2(pub u32);
Expand description
Control register 2
Tuple Fieldsยง
ยง0: u32
Implementationsยง
ยงimpl Cr2
impl Cr2
pub const fn head10r(&self) -> Headr
pub const fn head10r(&self) -> Headr
10-bit address header only read direction (master receiver mode)
pub fn set_head10r(&mut self, val: Headr)
pub fn set_head10r(&mut self, val: Headr)
10-bit address header only read direction (master receiver mode)
pub fn set_nbytes(&mut self, val: u8)
pub fn set_nbytes(&mut self, val: u8)
Number of bytes
pub fn set_reload(&mut self, val: Reload)
pub fn set_reload(&mut self, val: Reload)
NBYTES reload mode
pub fn set_autoend(&mut self, val: Autoend)
pub fn set_autoend(&mut self, val: Autoend)
Automatic end mode (master mode)
pub fn set_pecbyte(&mut self, val: bool)
pub fn set_pecbyte(&mut self, val: bool)
Packet error checking byte
Trait Implementationsยง
impl Copy for Cr2
impl Eq for Cr2
impl StructuralEq for Cr2
impl StructuralPartialEq for Cr2
Auto Trait Implementationsยง
impl RefUnwindSafe for Cr2
impl Send for Cr2
impl Sync for Cr2
impl Unpin for Cr2
impl UnwindSafe for Cr2
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