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§
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
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.