add better interface handling

This commit is contained in:
sigil-03 2025-08-10 17:53:34 -06:00
parent e6114d2c52
commit 714715b4aa
2 changed files with 5 additions and 0 deletions

View file

@ -131,4 +131,8 @@ impl<'a, T: DacInterface> DpcmDac<'a, T> {
false
}
}
pub fn disable_output(&mut self) {
self.output.disable();
}
}

View file

@ -1,4 +1,5 @@
pub trait DacInterface {
// write the amplitude (0->100%)
fn disable(&mut self);
fn write_amplitude(&mut self, amplitude: u8);
}