embassy-stm32

Crates

git

Versions

stm32h747ig-cm7

Flavors

SerialDataInterface

Struct SerialDataInterface 

Source
pub struct SerialDataInterface<'a, 'b> { /* private fields */ }
Expand description

Storage Device

Implementations§

Source§

impl<'a, 'b> SerialDataInterface<'a, 'b>

Card Storage Device

Source

pub async fn new(sdmmc: &'a mut Sdmmc<'b>, freq: Hertz) -> Result<Self, Error>

Create a new SD card

Source

pub fn set_bus_to_high_speed(&mut self, frequency: Hertz) -> Result<(), Error>

Set the bus to the 4-bit high-speed frequency

Source

pub async fn cmd52(&mut self, arg: u32) -> Result<u32, Error>

Run cmd52

Source

pub async fn cmd53_block_read( &mut self, arg: u32, blocks: &mut [DataBlock], ) -> Result<(), Error>

Read in block mode using cmd53

Source

pub async fn cmd53_byte_read( &mut self, arg: u32, buffer: &mut Aligned<A4, [u8]>, ) -> Result<(), Error>

Read in multibyte mode using cmd53

Source

pub async fn cmd53_block_write( &mut self, arg: u32, blocks: &[DataBlock], ) -> Result<(), Error>

Write in block mode using cmd53

Source

pub async fn cmd53_byte_write( &mut self, arg: u32, buffer: &[u32], ) -> Result<(), Error>

Write in multibyte mode using cmd53

Auto Trait Implementations§

§

impl<'a, 'b> Freeze for SerialDataInterface<'a, 'b>

§

impl<'a, 'b> !RefUnwindSafe for SerialDataInterface<'a, 'b>

§

impl<'a, 'b> Send for SerialDataInterface<'a, 'b>

§

impl<'a, 'b> Sync for SerialDataInterface<'a, 'b>

§

impl<'a, 'b> Unpin for SerialDataInterface<'a, 'b>

§

impl<'a, 'b> !UnwindSafe for SerialDataInterface<'a, 'b>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.