Driver for a Linear Technology LTC6904 digital oscillator.
All correct at time of writing, but as always, manufacturers love to move things around on their website.
This code has been tested using a Gravitech I2C-OSC module:
This was wired to a CoreProto and plugged into a SenseCore:
And finally installed on a SolderCore:
|LTC6904_I2C_ADDR_ADR0||8-bit I2C address with ADR=0|
|LTC6904_I2C_ADDR_ADR1||8-bit I2C address with ADR=1|
|LTC6904_MODE_CLK_OFF_nCLK_ON||CLK off, nCLK on mode|
|LTC6904_MODE_CLK_ON_nCLK_OFF||CLK on, nCLK off mode|
|LTC6904_MODE_CLK_ON_nCLK_ON||CLK and nCLK on mode|
|LTC6904_MODE_POWER_DOWN||Powered down mode|
|ltc6904_init_i2c||Initialize device on I2C bus|
|ltc6904_set_frequency||Set oscillator output frequency|
|ltc6904_set_mode||Set output mode|
|ltc6904_get_selected_frequency||Get selected oscillator frequency|