Files
guac-rs/firmware/src/traits.rs
T
ktims e255636f3a
Build and Release Firmware / build-and-release (push) Failing after 48s
some refactoring and clippies
2026-11-05 12:26:48 -07:00

13 lines
351 B
Rust

use crate::CodecPins;
pub trait Dac<T> {
fn new(i2c: T, pins: CodecPins) -> Self;
/// 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);
}