66 #define LTC6903_CS QUIKEVAL_CS 92 #define LTC6903_OCT_15 0x0F // 34.05 | 68.03 93 #define LTC6903_OCT_14 0x0E // 17.02 | 34.01 94 #define LTC6903_OCT_13 0x0D // 8.5111 | 17.01 95 #define LTC6903_OCT_12 0x0C // 4.256 | 8.503 96 #define LTC6903_OCT_11 0x0B // 2.128 | 4.252 97 #define LTC6903_OCT_10 0x0A // 1.064 | 2.126 98 #define LTC6903_OCT_9 0x09 // 0.532 | 1.063 99 #define LTC6903_OCT_8 0x08 // 0.266 | 0.5314 100 #define LTC6903_OCT_7 0x07 // 0.133 | 0.2657 101 #define LTC6903_OCT_6 0x06 // 0.0665 | 0.1329 102 #define LTC6903_OCT_5 0x05 // 0.03325 | 0.06643 103 #define LTC6903_OCT_4 0x04 // 0.01662 | 0.03322 104 #define LTC6903_OCT_3 0x03 // 0.008312 | 0.01661 105 #define LTC6903_OCT_2 0x02 // 0.004156 | 0.008304 106 #define LTC6903_OCT_1 0x01 // 0.002078 | 0.004152 107 #define LTC6903_OCT_0 0x00 // 0.001039 | 0.002076 111 #define LTC6903_CLK_ON_CLK_INV_ON 0x00 112 #define LTC6903_CLK_OFF_CLK_INV_ON 0x01
113 #define LTC6903_CLK_ON_CLK_INV_OFF 0x02
114 #define LTC6903_POWER_DOWN 0x03
void LTC6903_write(uint8_t cs, uint16_t code)
Writes 2 bytes.
uint16_t LTC6903_frequency_to_code(float frequency, uint8_t clk)
Calculates the code necessary to create the clock frequency.