pub struct Device {
pub product_name: &'static str,
pub sources: &'static [Source],
pub inputs: &'static [Input],
pub outputs: &'static [Output],
pub fir_max_taps: u16,
pub internal_sampling_rate: u32,
pub dialect: Dialect,
pub symbols: &'static [(&'static str, u16)],
}
Expand description
Defines how the high level api should interact with the device based on its memory layout
Fields§
§product_name: &'static str
The name identifying the product, e.g. “2x4HD”
sources: &'static [Source]
The name of the input sources
inputs: &'static [Input]
The definitions for all input channels
outputs: &'static [Output]
The definitions for all output channels
fir_max_taps: u16
Maximum total number of FIR taps
internal_sampling_rate: u32
Internal sampling rate in Hz
dialect: Dialect
Dialect spoken by this device
symbols: &'static [(&'static str, u16)]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more