Struct gd32f1x0_hal::i2c::I2c
source · [−]pub struct I2c<I2C, SCLPIN, SDAPIN> { /* private fields */ }
Expand description
I2C peripheral operating in master mode
Implementations
sourceimpl<I2C, SCLPIN, SDAPIN> I2c<I2C, SCLPIN, SDAPIN> where
I2C: Deref<Target = I2cRegisterBlock>,
impl<I2C, SCLPIN, SDAPIN> I2c<I2C, SCLPIN, SDAPIN> where
I2C: Deref<Target = I2cRegisterBlock>,
sourcepub fn free(self) -> (I2C, SCLPIN, SDAPIN)
pub fn free(self) -> (I2C, SCLPIN, SDAPIN)
Releases the I2C peripheral and associated pins
Auto Trait Implementations
impl<I2C, SCLPIN, SDAPIN> RefUnwindSafe for I2c<I2C, SCLPIN, SDAPIN> where
I2C: RefUnwindSafe,
SCLPIN: RefUnwindSafe,
SDAPIN: RefUnwindSafe,
impl<I2C, SCLPIN, SDAPIN> Send for I2c<I2C, SCLPIN, SDAPIN> where
I2C: Send,
SCLPIN: Send,
SDAPIN: Send,
impl<I2C, SCLPIN, SDAPIN> Sync for I2c<I2C, SCLPIN, SDAPIN> where
I2C: Sync,
SCLPIN: Sync,
SDAPIN: Sync,
impl<I2C, SCLPIN, SDAPIN> Unpin for I2c<I2C, SCLPIN, SDAPIN> where
I2C: Unpin,
SCLPIN: Unpin,
SDAPIN: Unpin,
impl<I2C, SCLPIN, SDAPIN> UnwindSafe for I2c<I2C, SCLPIN, SDAPIN> where
I2C: UnwindSafe,
SCLPIN: UnwindSafe,
SDAPIN: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more