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.
http://www.linear.com/product/LTC6904
http://cds.linear.com/docs/Datasheet/69034fe.pdf
This code has been tested using a Gravitech I2C-OSC module:
http://www.gravitech.us/i2c1kto68pro.html
This was wired to a CoreProto and plugged into a SenseCore:
http://soldercore.com/products/sensecore/
And finally installed on a SolderCore:
http://soldercore.com/products/soldercore/
Constants | |
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 |
Types | |
LTC6904_OSCILLATOR_t | LTC6904 state |
Initialization | |
ltc6904_init_i2c | Initialize device on I2C bus |
Control | |
ltc6904_set_frequency | Set oscillator output frequency |
ltc6904_set_mode | Set output mode |
Status | |
ltc6904_get_selected_frequency | Get selected oscillator frequency |