embassy-stm32

Crates

git

Versions

stm32h7b0vb

Flavors

Addressable

Trait Addressable 

Source
pub trait Addressable: Sized + Clone {
    type Ext;

    // Required methods
    fn get_address(&self) -> u16;
    fn get_capacity(&self) -> CardCapacity;
    fn size(&self) -> u64;
}
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

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§