64 #define LTC6904_ADDRESS 0x17 65 //#define LTC6904_ADDRESS 0x16
90 #define LTC6904_OCT_15 0x0F // 34.05 | 68.03 91 #define LTC6904_OCT_14 0x0E // 17.02 | 34.01 92 #define LTC6904_OCT_13 0x0D // 8.5111 | 17.01 93 #define LTC6904_OCT_12 0x0C // 4.256 | 8.503 94 #define LTC6904_OCT_11 0x0B // 2.128 | 4.252 95 #define LTC6904_OCT_10 0x0A // 1.064 | 2.126 96 #define LTC6904_OCT_9 0x09 // 0.532 | 1.063 97 #define LTC6904_OCT_8 0x08 // 0.266 | 0.5314 98 #define LTC6904_OCT_7 0x07 // 0.133 | 0.2657 99 #define LTC6904_OCT_6 0x06 // 0.0665 | 0.1329 100 #define LTC6904_OCT_5 0x05 // 0.03325 | 0.06643 101 #define LTC6904_OCT_4 0x04 // 0.01662 | 0.03322 102 #define LTC6904_OCT_3 0x03 // 0.008312 | 0.01661 103 #define LTC6904_OCT_2 0x02 // 0.004156 | 0.008304 104 #define LTC6904_OCT_1 0x01 // 0.002078 | 0.004152 105 #define LTC6904_OCT_0 0x00 // 0.001039 | 0.002076 109 #define LTC6904_CLK_ON_CLK_INV_ON 0x00 110 #define LTC6904_CLK_OFF_CLK_INV_ON 0x01
111 #define LTC6904_CLK_ON_CLK_INV_OFF 0x02
112 #define LTC6904_POWER_DOWN 0x03
uint8_t LTC6904_write(uint8_t address, uint16_t code)
Writes 2 bytes.
uint16_t LTC6904_frequency_to_code(float frequency, uint8_t clk)
Calculates the code necessary to create the clock frequency.