I2sOutput

Struct I2sOutput 

Source
pub struct I2sOutput<Role, Data, SPI, SD, CK, WS> { /* private fields */ }
Expand description

I2S peripheral

Implementations§

Source§

impl<'s, Role, S: I2sData + Sized + 's, SD, CK, WS> I2sOutput<Role, S, SPI1, SD, CK, WS>

Source

pub fn into_i2s(self) -> I2s<SPI1, SD, CK, WS>

Disable and return I2s

Source

pub fn write(&mut self, data: S)

Write data word

Source§

impl<'s, Role, S: I2sData + Sized + 's, SD, CK, WS> I2sOutput<Role, S, SPI2, SD, CK, WS>

Source

pub fn into_i2s(self) -> I2s<SPI2, SD, CK, WS>

Disable and return I2s

Source

pub fn write(&mut self, data: S)

Write data word

Source§

impl<'s, Role, S: I2sData + Sized + 's, SD, CK, WS> I2sOutput<Role, S, SPI3, SD, CK, WS>

Source

pub fn into_i2s(self) -> I2s<SPI3, SD, CK, WS>

Disable and return I2s

Source

pub fn write(&mut self, data: S)

Write data word

Auto Trait Implementations§

§

impl<Role, Data, SPI, SD, CK, WS> Freeze for I2sOutput<Role, Data, SPI, SD, CK, WS>
where SPI: Freeze, SD: Freeze, CK: Freeze, WS: Freeze,

§

impl<Role, Data, SPI, SD, CK, WS> RefUnwindSafe for I2sOutput<Role, Data, SPI, SD, CK, WS>

§

impl<Role, Data, SPI, SD, CK, WS> Send for I2sOutput<Role, Data, SPI, SD, CK, WS>
where SPI: Send, SD: Send, CK: Send, WS: Send, Role: Send, Data: Send,

§

impl<Role, Data, SPI, SD, CK, WS> Sync for I2sOutput<Role, Data, SPI, SD, CK, WS>
where SPI: Sync, SD: Sync, CK: Sync, WS: Sync, Role: Sync, Data: Sync,

§

impl<Role, Data, SPI, SD, CK, WS> Unpin for I2sOutput<Role, Data, SPI, SD, CK, WS>
where SPI: Unpin, SD: Unpin, CK: Unpin, WS: Unpin, Role: Unpin, Data: Unpin,

§

impl<Role, Data, SPI, SD, CK, WS> UnwindSafe for I2sOutput<Role, Data, SPI, SD, CK, WS>
where SPI: UnwindSafe, SD: UnwindSafe, CK: UnwindSafe, WS: UnwindSafe, Role: UnwindSafe, Data: UnwindSafe,

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> Same for T

Source§

type Output = T

Should always be Self
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.