Skip to content

Rust driver crate for the LTC690x serial programmable oscillator

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

fnafnio/ltc690x

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LTC6903/6904 embedded-hal I2C driver crate

Rust HAL implementation (using I2C traits from embedded-hal) for Linear Technologies LTC6903/6904 programmable 1kHz to 68MHz oscillator.

Datasheet

Usage

Include library as a dependency in your Cargo.toml

[dependencies.ltc690x]
version = "*"

And use embedded-hal implementations for I2C to connect

        // create config with address pin low I2C address
        let ltc = ltc690x::LTC6904::new(i2c, Address::AddressLow);
        // configure output to use positive and negative edge
        ltc.set_output_conf(OutputSettings::ClkBoth);
        // set a frequency
        ltc.set_frequency(1_000_000).ok().unwrap();
        // write the current configuration
        ltc.write_out().unwrap();

About

Rust driver crate for the LTC690x serial programmable oscillator

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages