pub enum Pins {
    Controller {
        mck: Option<Pin<Output<PushPull>>>,
        sck: Pin<Output<PushPull>>,
        lrck: Pin<Output<PushPull>>,
        sdin: Option<Pin<Input<Floating>>>,
        sdout: Option<Pin<Output<PushPull>>>,
    },
    Peripheral {
        mck: Option<Pin<Input<Floating>>>,
        sck: Pin<Input<Floating>>,
        lrck: Pin<Input<Floating>>,
        sdin: Option<Pin<Input<Floating>>>,
        sdout: Option<Pin<Output<PushPull>>>,
    },
}
Expand description

Pins used by the I2S

Variants

Controller

Fields

mck: Option<Pin<Output<PushPull>>>

MCK pin

sck: Pin<Output<PushPull>>

SCK pin

lrck: Pin<Output<PushPull>>

LRCK pin

sdin: Option<Pin<Input<Floating>>>

SDIN pin

sdout: Option<Pin<Output<PushPull>>>

SDOUT pin

Pins used by the I2S controller

Peripheral

Fields

mck: Option<Pin<Input<Floating>>>

MCK pin

sck: Pin<Input<Floating>>

SCK pin

lrck: Pin<Input<Floating>>

LRCK pin

sdin: Option<Pin<Input<Floating>>>

SDIN pin

sdout: Option<Pin<Output<PushPull>>>

SDOUT pin

Pins used by the I2S peripheral

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Casts the value.

Casts the value.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Casts the value.

OverflowingCasts the value.

Should always be Self

Casts the value.

Casts the value.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Casts the value.

UnwrappedCasts the value.

Casts the value.

WrappingCasts the value.