[][src]Struct wio_terminal::SDCard

pub struct SDCard {
    pub cs: Pc19<Input<Floating>>,
    pub mosi: Pc16<Input<Floating>>,
    pub sck: Pc17<Input<Floating>>,
    pub miso: Pc18<Input<Floating>>,
    pub det: Pd21<Input<Floating>>,
}

SD Card pins (uses SERCOM6)

Fields

cs: Pc19<Input<Floating>>

SD Card chip select pin

mosi: Pc16<Input<Floating>>

SD Card mosi pin

sck: Pc17<Input<Floating>>

SD Card sck pin

miso: Pc18<Input<Floating>>

SD Card miso pin

det: Pd21<Input<Floating>>

SD Card detect pin

Implementations

impl SDCard[src]

pub fn init<TS: TimeSource>(
    self,
    clocks: &mut GenericClockController,
    sercom6: SERCOM6,
    mclk: &mut MCLK,
    port: &mut Port,
    ts: TS
) -> Result<(SDCardController<TS>, Pd21<Input<Floating>>), ()>
[src]

Initialize the controller and its corresponding SPI bus peripheral.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.