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 Copy for Gi2cctl
impl Eq for Gi2cctl
impl StructuralPartialEq for Gi2cctl
Auto Trait Implementations§
impl Freeze for Gi2cctl
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
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
)