Skip to main content

Cmd19

Struct Cmd19 

Source
pub struct Cmd19<'b> {
    pub addr: u32,
    pub buf: &'b mut Aligned<A4, [u8; 64]>,
}
Expand description

CMD19 — SEND_TUNING_BLOCK

Fields§

§addr: u32§buf: &'b mut Aligned<A4, [u8; 64]>

Trait Implementations§

Source§

impl<'a> BlockCommand for Cmd19<'a>

Source§

fn block_count(&self) -> u32

Number of blocks to transfer.
Source§

fn block_size(&self) -> BlockSize

Size of each block in bytes (usually 512 for SD/MMC).
Source§

impl<'a> BlockReadCommand for Cmd19<'a>

Source§

fn buf(&mut self) -> &mut Aligned<A4, [u8]>

Mutable buffer for block-mode reads. The length of this buffer must be block_size() * block_count()
Source§

impl<'b> Command for Cmd19<'b>

Source§

const INDEX: u8 = 19

The fixed command index (e.g., 17 for CMD17).
Source§

type Resp<'a> = R1 where Self: 'a

The associated response type for this command.
Source§

fn arg(&self) -> u32

Compute the 32-bit argument for this command.
Source§

fn index(&self) -> u8

The fixed command index (e.g., 17 for CMD17).
Source§

impl<'a> TuningOp for Cmd19<'a>

Source§

async fn exec<B: MmcBus>(&mut self, bus: &mut B) -> Result<bool, MmcError>

Execute the operation. If error, abort the operation and return. Read more

Auto Trait Implementations§

§

impl<'b> !UnwindSafe for Cmd19<'b>

§

impl<'b> Freeze for Cmd19<'b>

§

impl<'b> RefUnwindSafe for Cmd19<'b>

§

impl<'b> Send for Cmd19<'b>

§

impl<'b> Sync for Cmd19<'b>

§

impl<'b> Unpin for Cmd19<'b>

§

impl<'b> UnsafeUnpin for Cmd19<'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.