use crate::CodecPins; pub trait Dac { fn new(i2c: T, pins: CodecPins) -> Self; fn name(&self) -> &'static str; /// The DAC should start muted fn init(&mut self); fn change_rate(&mut self, new_rate: u32); #[allow(unused_variables)] #[allow(dead_code)] fn set_volume(&mut self, left: u8, right: u8) {} fn mute(&mut self); fn unmute(&mut self); }