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.
Usage
Include library as a dependency in your Cargo.toml
[]
= "*"
And use embedded-hal implementations for I2C to connect
// create config with address pin low I2C address
let ltc = LTC6904new;
// configure output to use positive and negative edge
ltc.set_output_conf;
// set a frequency
ltc.set_frequency.ok.unwrap;
// write the current configuration
ltc.write_out.unwrap;