Crates.io | tea5767 |
lib.rs | tea5767 |
version | 0.1.0 |
source | src |
created_at | 2021-03-16 14:35:41.855386 |
updated_at | 2021-03-16 14:35:41.855386 |
description | Rust platform agnostic driver for the TEA5767, electronically tuned FM stereo radio |
homepage | |
repository | https://github.com/Nekspire/tea5767 |
max_upload_size | |
id | 369714 |
size | 260,098 |
Rust platform agnostic driver for the TEA5767, electronically tuned FM stereo radio.
An additional description can be found in the device datasheet.
The datasheet is placed in doc
folder of this repository.
The driver is based on embedded-hal
traits and I2C.
General initialization code, which create new instance of TEA5767 with default configuration.
Here you can specify radio channel frequency, band limit, and sound mode. To change this default
behaviour and to control the device use methods defined in defs module. Additional information
about this methods can be obtained from examples
folder.
use tea5767::defs::*;
let radio_tuner = TEA5767::new(
i2c,
107.0,
BandLimits::EuropeUS,
SoundMode::Stereo
).unwrap();
For questions, issues, feature requests, and other changes, please file an issue in the github project.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.