Trait Channel

Source
pub trait Channel: ChannelClocks {
Show 13 methods // Required methods fn set_master_tx(&self); fn set_master_rx(&self); fn set_slave_tx(&self); fn set_slave_rx(&self); fn is_slave(&self) -> bool; fn set_clock_gen(&self, sample_freq: Hertz, clocks: &Clocks); fn set_protocol(&self, protocol: Protocol, tx: bool); fn start(&self); fn stop(&self); fn fifo_full(&self) -> bool; fn fifo_empty(&self) -> bool; fn write(&self, word: u32); fn read(&self) -> u32;
}

Required Methods§

Source

fn set_master_tx(&self)

Source

fn set_master_rx(&self)

Source

fn set_slave_tx(&self)

Source

fn set_slave_rx(&self)

Source

fn is_slave(&self) -> bool

Source

fn set_clock_gen(&self, sample_freq: Hertz, clocks: &Clocks)

Source

fn set_protocol(&self, protocol: Protocol, tx: bool)

Source

fn start(&self)

Source

fn stop(&self)

Source

fn fifo_full(&self) -> bool

Source

fn fifo_empty(&self) -> bool

Source

fn write(&self, word: u32)

Source

fn read(&self) -> u32

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Ch> Channel for Ch
where Ch: Deref<Target = CH> + ChannelClocks,