pub struct Sdmmc<'d> { /* private fields */ }Expand description
Sdmmc device
Implementations§
Source§impl<'d> Sdmmc<'d>
impl<'d> Sdmmc<'d>
Sourcepub fn new_1bit<T: Instance>(
sdmmc: Peri<'d, T>,
_irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd,
dma: Peri<'d, impl SdmmcDma<T>>,
clk: Peri<'d, impl CkPin<T>>,
cmd: Peri<'d, impl CmdPin<T>>,
d0: Peri<'d, impl D0Pin<T>>,
config: Config,
) -> Self
pub fn new_1bit<T: Instance>( sdmmc: Peri<'d, T>, _irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd, dma: Peri<'d, impl SdmmcDma<T>>, clk: Peri<'d, impl CkPin<T>>, cmd: Peri<'d, impl CmdPin<T>>, d0: Peri<'d, impl D0Pin<T>>, config: Config, ) -> Self
Create a new SDMMC driver, with 1 data lane.
Sourcepub fn new_4bit<T: Instance>(
sdmmc: Peri<'d, T>,
_irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd,
dma: Peri<'d, impl SdmmcDma<T>>,
clk: Peri<'d, impl CkPin<T>>,
cmd: Peri<'d, impl CmdPin<T>>,
d0: Peri<'d, impl D0Pin<T>>,
d1: Peri<'d, impl D1Pin<T>>,
d2: Peri<'d, impl D2Pin<T>>,
d3: Peri<'d, impl D3Pin<T>>,
config: Config,
) -> Self
pub fn new_4bit<T: Instance>( sdmmc: Peri<'d, T>, _irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd, dma: Peri<'d, impl SdmmcDma<T>>, clk: Peri<'d, impl CkPin<T>>, cmd: Peri<'d, impl CmdPin<T>>, d0: Peri<'d, impl D0Pin<T>>, d1: Peri<'d, impl D1Pin<T>>, d2: Peri<'d, impl D2Pin<T>>, d3: Peri<'d, impl D3Pin<T>>, config: Config, ) -> Self
Create a new SDMMC driver, with 4 data lanes.
Source§impl<'d> Sdmmc<'d>
impl<'d> Sdmmc<'d>
Sourcepub fn new_8bit<T: Instance>(
sdmmc: Peri<'d, T>,
_irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd,
dma: Peri<'d, impl SdmmcDma<T>>,
clk: Peri<'d, impl CkPin<T>>,
cmd: Peri<'d, impl CmdPin<T>>,
d0: Peri<'d, impl D0Pin<T>>,
d1: Peri<'d, impl D1Pin<T>>,
d2: Peri<'d, impl D2Pin<T>>,
d3: Peri<'d, impl D3Pin<T>>,
d4: Peri<'d, impl D4Pin<T>>,
d5: Peri<'d, impl D5Pin<T>>,
d6: Peri<'d, impl D6Pin<T>>,
d7: Peri<'d, impl D7Pin<T>>,
config: Config,
) -> Self
pub fn new_8bit<T: Instance>( sdmmc: Peri<'d, T>, _irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd, dma: Peri<'d, impl SdmmcDma<T>>, clk: Peri<'d, impl CkPin<T>>, cmd: Peri<'d, impl CmdPin<T>>, d0: Peri<'d, impl D0Pin<T>>, d1: Peri<'d, impl D1Pin<T>>, d2: Peri<'d, impl D2Pin<T>>, d3: Peri<'d, impl D3Pin<T>>, d4: Peri<'d, impl D4Pin<T>>, d5: Peri<'d, impl D5Pin<T>>, d6: Peri<'d, impl D6Pin<T>>, d7: Peri<'d, impl D7Pin<T>>, config: Config, ) -> Self
Create a new SDMMC driver, with 8 data lanes.
Trait Implementations§
Auto Trait Implementations§
impl<'d> Freeze for Sdmmc<'d>
impl<'d> !RefUnwindSafe for Sdmmc<'d>
impl<'d> Send for Sdmmc<'d>
impl<'d> Sync for Sdmmc<'d>
impl<'d> Unpin for Sdmmc<'d>
impl<'d> !UnwindSafe for Sdmmc<'d>
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