Trait stm32h7xx_hal::traits::i2s::FullDuplex[][src]

pub trait FullDuplex<Word> {
    type Error;
    fn try_read(&mut self) -> Result<(Word, Word), Self::Error>;
fn try_send(
        &mut self,
        left_word: Word,
        right_word: Word
    ) -> Result<(), Self::Error>; }

Full duplex

Associated Types

type Error[src]

Error type

Loading content...

Required methods

fn try_read(&mut self) -> Result<(Word, Word), Self::Error>[src]

Reads the left word and right word available.

The order is in the result is (left_word, right_word)

fn try_send(
    &mut self,
    left_word: Word,
    right_word: Word
) -> Result<(), Self::Error>
[src]

Sends a left word and a right word to the slave.

Loading content...

Implementors

impl FullDuplex<u32> for Sai<SAI1, I2S>[src]

type Error = I2SError

impl FullDuplex<u32> for Sai<SAI2, I2S>[src]

type Error = I2SError

impl FullDuplex<u32> for Sai<SAI3, I2S>[src]

type Error = I2SError

impl FullDuplex<u32> for Sai<SAI4, I2S>[src]

type Error = I2SError

Loading content...