Struct tm4c123x_hal::i2c::I2c
source · pub struct I2c<I2C, PINS> { /* private fields */ }
Expand description
I2C peripheral operating in master mode
Implementations
sourceimpl<SCL, SDA> I2c<I2C0, (SCL, SDA)>
impl<SCL, SDA> I2c<I2C0, (SCL, SDA)>
sourcepub fn i2c0<F>(
i2c: I2C0,
pins: (SCL, SDA),
freq: F,
clocks: &Clocks,
pc: &PowerControl
) -> Selfwhere
F: Into<Hertz>,
SCL: SclPin<I2C0>,
SDA: SdaPin<I2C0>,
pub fn i2c0<F>(
i2c: I2C0,
pins: (SCL, SDA),
freq: F,
clocks: &Clocks,
pc: &PowerControl
) -> Selfwhere
F: Into<Hertz>,
SCL: SclPin<I2C0>,
SDA: SdaPin<I2C0>,
Configures the I2C peripheral to work in master mode
sourcepub fn free(self) -> (I2C0, (SCL, SDA))
pub fn free(self) -> (I2C0, (SCL, SDA))
Releases the I2C peripheral and associated pins
sourceimpl<SCL, SDA> I2c<I2C1, (SCL, SDA)>
impl<SCL, SDA> I2c<I2C1, (SCL, SDA)>
sourcepub fn i2c1<F>(
i2c: I2C1,
pins: (SCL, SDA),
freq: F,
clocks: &Clocks,
pc: &PowerControl
) -> Selfwhere
F: Into<Hertz>,
SCL: SclPin<I2C1>,
SDA: SdaPin<I2C1>,
pub fn i2c1<F>(
i2c: I2C1,
pins: (SCL, SDA),
freq: F,
clocks: &Clocks,
pc: &PowerControl
) -> Selfwhere
F: Into<Hertz>,
SCL: SclPin<I2C1>,
SDA: SdaPin<I2C1>,
Configures the I2C peripheral to work in master mode
sourcepub fn free(self) -> (I2C1, (SCL, SDA))
pub fn free(self) -> (I2C1, (SCL, SDA))
Releases the I2C peripheral and associated pins
sourceimpl<SCL, SDA> I2c<I2C2, (SCL, SDA)>
impl<SCL, SDA> I2c<I2C2, (SCL, SDA)>
sourcepub fn i2c2<F>(
i2c: I2C2,
pins: (SCL, SDA),
freq: F,
clocks: &Clocks,
pc: &PowerControl
) -> Selfwhere
F: Into<Hertz>,
SCL: SclPin<I2C2>,
SDA: SdaPin<I2C2>,
pub fn i2c2<F>(
i2c: I2C2,
pins: (SCL, SDA),
freq: F,
clocks: &Clocks,
pc: &PowerControl
) -> Selfwhere
F: Into<Hertz>,
SCL: SclPin<I2C2>,
SDA: SdaPin<I2C2>,
Configures the I2C peripheral to work in master mode
sourcepub fn free(self) -> (I2C2, (SCL, SDA))
pub fn free(self) -> (I2C2, (SCL, SDA))
Releases the I2C peripheral and associated pins
sourceimpl<SCL, SDA> I2c<I2C3, (SCL, SDA)>
impl<SCL, SDA> I2c<I2C3, (SCL, SDA)>
sourcepub fn i2c3<F>(
i2c: I2C3,
pins: (SCL, SDA),
freq: F,
clocks: &Clocks,
pc: &PowerControl
) -> Selfwhere
F: Into<Hertz>,
SCL: SclPin<I2C3>,
SDA: SdaPin<I2C3>,
pub fn i2c3<F>(
i2c: I2C3,
pins: (SCL, SDA),
freq: F,
clocks: &Clocks,
pc: &PowerControl
) -> Selfwhere
F: Into<Hertz>,
SCL: SclPin<I2C3>,
SDA: SdaPin<I2C3>,
Configures the I2C peripheral to work in master mode
sourcepub fn free(self) -> (I2C3, (SCL, SDA))
pub fn free(self) -> (I2C3, (SCL, SDA))
Releases the I2C peripheral and associated pins
Trait Implementations
Auto Trait Implementations
impl<I2C, PINS> RefUnwindSafe for I2c<I2C, PINS>where
I2C: RefUnwindSafe,
PINS: RefUnwindSafe,
impl<I2C, PINS> Send for I2c<I2C, PINS>where
I2C: Send,
PINS: Send,
impl<I2C, PINS> Sync for I2c<I2C, PINS>where
I2C: Sync,
PINS: Sync,
impl<I2C, PINS> Unpin for I2c<I2C, PINS>where
I2C: Unpin,
PINS: Unpin,
impl<I2C, PINS> UnwindSafe for I2c<I2C, PINS>where
I2C: UnwindSafe,
PINS: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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