Build and Release Firmware / firmware (ak4490) (push) Successful in 50s
Build and Release Firmware / firmware (cs4398) (push) Successful in 44s
Build and Release Firmware / firmware (evk) (push) Successful in 43s
Build and Release Firmware / cli (aarch64-unknown-linux-musl) (push) Successful in 1m8s
Build and Release Firmware / cli (x86_64-pc-windows-gnu) (push) Successful in 1m32s
Build and Release Firmware / cli (x86_64-unknown-linux-musl) (push) Successful in 1m6s
Build and Release Firmware / release (push) Successful in 7s
14 lines
387 B
Rust
14 lines
387 B
Rust
use crate::CodecPins;
|
|
pub trait Dac<T> {
|
|
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);
|
|
}
|