pub struct I2c<I2C, PINS> { /* private fields */ }Expand description
I2C peripheral operating in master mode
Implementations§
Source§impl<SCL, SDA> I2c<I2C1, (SCL, SDA)>
impl<SCL, SDA> I2c<I2C1, (SCL, SDA)>
Source§impl<SCL, SDA> I2c<I2C2, (SCL, SDA)>
impl<SCL, SDA> I2c<I2C2, (SCL, SDA)>
Source§impl<SCL, SDA> I2c<I2C3, (SCL, SDA)>
impl<SCL, SDA> I2c<I2C3, (SCL, SDA)>
Source§impl<SCL, SDA, I2C> I2c<I2C, (SCL, SDA)>where
I2C: Deref<Target = RegisterBlock>,
impl<SCL, SDA, I2C> I2c<I2C, (SCL, SDA)>where
I2C: Deref<Target = RegisterBlock>,
Sourcepub fn free(self) -> (I2C, (SCL, SDA))
pub fn free(self) -> (I2C, (SCL, SDA))
Releases the I2C peripheral and associated pins
Trait Implementations§
Auto Trait Implementations§
impl<I2C, PINS> Freeze for I2c<I2C, PINS>
impl<I2C, PINS> RefUnwindSafe for I2c<I2C, PINS>where
I2C: RefUnwindSafe,
PINS: RefUnwindSafe,
impl<I2C, PINS> Send for I2c<I2C, PINS>
impl<I2C, PINS> Sync for I2c<I2C, PINS>
impl<I2C, PINS> Unpin for I2c<I2C, PINS>
impl<I2C, PINS> UnwindSafe for I2c<I2C, PINS>where
I2C: UnwindSafe,
PINS: UnwindSafe,
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