pub struct I2C0 { /* private fields */ }Available on crate feature
i2c only.Expand description
Peripheral-specific I2C driver.
Implementations§
Source§impl I2C0
impl I2C0
Sourcepub fn new<SDA: PeripheralInput<'static> + PeripheralOutput<'static>, SCL: PeripheralInput<'static> + PeripheralOutput<'static>>(
sda_pin: impl IntoPeripheral<'static, SDA>,
scl_pin: impl IntoPeripheral<'static, SCL>,
config: Config,
) -> I2c
pub fn new<SDA: PeripheralInput<'static> + PeripheralOutput<'static>, SCL: PeripheralInput<'static> + PeripheralOutput<'static>>( sda_pin: impl IntoPeripheral<'static, SDA>, scl_pin: impl IntoPeripheral<'static, SCL>, config: Config, ) -> I2c
Returns a driver implementing embedded_hal_async::i2c::I2c for this
I2C peripheral.
Trait Implementations§
Auto Trait Implementations§
impl !UnwindSafe for I2C0
impl Freeze for I2C0
impl RefUnwindSafe for I2C0
impl Send for I2C0
impl Sync for I2C0
impl Unpin for I2C0
impl UnsafeUnpin for I2C0
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