Trait stm32_i2s_v12x::WsPin

source ·
pub trait WsPin {
    // Required methods
    fn is_low(&self) -> bool;
    fn is_high(&self) -> bool;
}
Expand description

A pin carrying the WS (word select) signal from/to an i2s peripheral.

Implementing this trait means implementing read operation on a pin physically configured in alternate mode.

Required Methods§

source

fn is_low(&self) -> bool

Return true if the level at WS pin is low.

source

fn is_high(&self) -> bool

Return true if the level at WS pin is high.

Implementors§