#[repr(transparent)]pub struct Gi2cctl(pub u32);
Expand description
I2C access register
Tuple Fields§
§0: u32
Implementations§
Source§impl Gi2cctl
impl Gi2cctl
Sourcepub fn set_rwdata(&mut self, val: u8)
pub fn set_rwdata(&mut self, val: u8)
I2C Read/Write Data
Sourcepub fn set_regaddr(&mut self, val: u8)
pub fn set_regaddr(&mut self, val: u8)
I2C Register Address
Sourcepub fn set_i2cdevadr(&mut self, val: u8)
pub fn set_i2cdevadr(&mut self, val: u8)
I2C Device Address
Sourcepub fn set_i2cdatse0(&mut self, val: bool)
pub fn set_i2cdatse0(&mut self, val: bool)
I2C DatSe0 USB mode
Sourcepub 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