Struct stm32_metapac::otg::regs::Gi2cctl
#[repr(transparent)]pub struct Gi2cctl(pub u32);
Expand description
I2C access register
Tuple Fieldsยง
ยง0: u32
Implementationsยง
ยงimpl Gi2cctl
impl Gi2cctl
pub fn set_rwdata(&mut self, val: u8)
pub fn set_rwdata(&mut self, val: u8)
I2C Read/Write Data
pub fn set_regaddr(&mut self, val: u8)
pub fn set_regaddr(&mut self, val: u8)
I2C Register Address
pub fn set_i2cdevadr(&mut self, val: u8)
pub fn set_i2cdevadr(&mut self, val: u8)
I2C Device Address
pub fn set_i2cdatse0(&mut self, val: bool)
pub fn set_i2cdatse0(&mut self, val: bool)
I2C DatSe0 USB mode
pub fn set_bsydne(&mut self, val: bool)
pub fn set_bsydne(&mut self, val: bool)
I2C Busy/Done
Trait Implementationsยง
ยงimpl PartialEq for Gi2cctl
impl PartialEq for Gi2cctl
impl Copy for Gi2cctl
impl Eq for Gi2cctl
impl StructuralEq for Gi2cctl
impl StructuralPartialEq for Gi2cctl
Auto Trait Implementationsยง
impl RefUnwindSafe for Gi2cctl
impl Send for Gi2cctl
impl Sync for Gi2cctl
impl Unpin for Gi2cctl
impl UnwindSafe for Gi2cctl
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