tea5767

Crates.iotea5767
lib.rstea5767
version0.1.0
sourcesrc
created_at2021-03-16 14:35:41.855386
updated_at2021-03-16 14:35:41.855386
descriptionRust platform agnostic driver for the TEA5767, electronically tuned FM stereo radio
homepage
repositoryhttps://github.com/Nekspire/tea5767
max_upload_size
id369714
size260,098
(Nekspire)

documentation

https://docs.rs/tea5767

README

crates.io docs.rs No Std downloads

TEA5767

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.

Usage

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();

Support

For questions, issues, feature requests, and other changes, please file an issue in the github project.

License

Licensed under either of

at your option.

Contributing

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.

Commit count: 23

cargo fmt