pub struct SD<BUS> { /* private fields */ }
Implementations§
Source§impl<E, BUS> SD<BUS>
impl<E, BUS> SD<BUS>
pub fn init(bus: BUS, card: Card) -> Result<Self, Error<E>>
pub fn csd(&self) -> CSD
pub fn bus<R>(&mut self, f: impl Fn(&mut BUS) -> R) -> R
pub fn read<'a, B>(&mut self, address: u32, blocks: B) -> Result<(), Error<E>>
pub fn write<'a, B>(&mut self, address: u32, blocks: B) -> Result<(), Error<E>>
pub fn num_blocks(&self) -> NumBlocks
pub fn block_size_shift(&self) -> u8
Auto Trait Implementations§
impl<BUS> Freeze for SD<BUS>where
BUS: Freeze,
impl<BUS> RefUnwindSafe for SD<BUS>where
BUS: RefUnwindSafe,
impl<BUS> Send for SD<BUS>where
BUS: Send,
impl<BUS> Sync for SD<BUS>where
BUS: Sync,
impl<BUS> Unpin for SD<BUS>where
BUS: Unpin,
impl<BUS> UnwindSafe for SD<BUS>where
BUS: 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