embassy-stm32

Crates

git

Versions

stm32l496ae

Flavors

Addressable

Trait Addressable 

Source
pub trait Addressable: Sized + Clone
where CardStatus<Self::Ext>: From<u32>,
{ type Ext; // Required methods fn get_address(&self) -> u16; fn get_capacity(&self) -> CardCapacity; fn size(&self) -> u64; fn supports_cmd23(&self) -> bool; }
Expand description

Represents either an SD or EMMC card

Required Associated Types§

Source

type Ext

Associated type

Required Methods§

Source

fn get_address(&self) -> u16

Get this peripheral’s address on the SDMMC bus

Source

fn get_capacity(&self) -> CardCapacity

Is this a standard or high capacity peripheral?

Source

fn size(&self) -> u64

Size in bytes

Source

fn supports_cmd23(&self) -> bool

Whether the device supports CMD23 (SET_BLOCK_COUNT).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§