#radio #fm #embedded-hal-driver #no-std

no-std tea5767

Rust platform agnostic driver for the TEA5767, electronically tuned FM stereo radio

1 unstable release

0.1.0 Mar 16, 2021

#1464 in Embedded development

MIT/Apache

190KB
581 lines

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.

Dependencies

~320KB