| Crates.io | nau88c22-rs |
| lib.rs | nau88c22-rs |
| version | 0.2.0 |
| created_at | 2025-12-27 00:49:04.167782+00 |
| updated_at | 2025-12-29 07:37:50.834441+00 |
| description | Rust driver for the nau88c22 audio codec. |
| homepage | |
| repository | https://github.com/northernpaws/nau88c22-rs |
| max_upload_size | |
| id | 2006500 |
| size | 109,157 |
A Rust embedded-hal-async based driver for the Nuvoton NAU88C22 24-bit stereo audio codec.
The NAU88C22 audio codec includes drivers for speaker, headphone, differential and stereo line outputs, along with integrated preamps for stereo differential microphones. Along with having a low ADC SNR of 89dB @ 0dB gain and a DAC SNR of 89dB @ 0dB gain, and it's low price of $1CAD per unit makes it a very flexible and cost effective audio codec for stereo audio applications.
use nau88c22_rs::Nau88c22;
async fn main () {
// Set up the I2C device based on your HAL.
let i2c;
// Initialize the codec using the I2C device.
let codec = Nau88c22yg::new(i2c);
// Software reset the codec to known default register values.
codec.reset().await.unwrap();
}
This crate is licensed under the MIT license.