pub struct I2c1Builder {
pub base: I2cBase<I2C1>,
pub scl: I2c1Scl,
pub sda: I2c1Sda,
}Expand description
i2c1 builder
Fields§
§base: I2cBase<I2C1>i2c base
scl: I2c1Sclscl pin
sda: I2c1Sdasda pin
Implementations§
Source§impl I2c1Builder
custom method
impl I2c1Builder
custom method
Sourcepub fn build(self, tx_dma: DMA1_CH6, rx_dma: DMA1_CH7) -> I2c<'static, Async>
pub fn build(self, tx_dma: DMA1_CH6, rx_dma: DMA1_CH7) -> I2c<'static, Async>
Create a new I2C driver, more see I2c::<Async>::new
Sourcepub fn build_sda(
scl: impl Peripheral<P = impl SclPin<I2C1>> + 'static,
sda: I2c1Sda,
base: I2cBase<I2C1>,
tx_dma: DMA1_CH6,
rx_dma: DMA1_CH7,
) -> I2c<'static, Async>
pub fn build_sda( scl: impl Peripheral<P = impl SclPin<I2C1>> + 'static, sda: I2c1Sda, base: I2cBase<I2C1>, tx_dma: DMA1_CH6, rx_dma: DMA1_CH7, ) -> I2c<'static, Async>
build by sda
Sourcepub fn build_blocking(self) -> I2c<'static, Blocking>
pub fn build_blocking(self) -> I2c<'static, Blocking>
Create a new I2C driver, more see I2c::<Blocking>::new_blocking
Sourcepub fn build_blocking_sda(
scl: impl Peripheral<P = impl SclPin<I2C1>> + 'static,
sda: I2c1Sda,
base: I2cBase<I2C1>,
) -> I2c<'static, Blocking>
pub fn build_blocking_sda( scl: impl Peripheral<P = impl SclPin<I2C1>> + 'static, sda: I2c1Sda, base: I2cBase<I2C1>, ) -> I2c<'static, Blocking>
build by sda
Auto Trait Implementations§
impl Freeze for I2c1Builder
impl RefUnwindSafe for I2c1Builder
impl Send for I2c1Builder
impl Sync for I2c1Builder
impl Unpin for I2c1Builder
impl UnwindSafe for I2c1Builder
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