Searched refs:LUT_VREF_HIGH (Results 1 – 3 of 3) sorted by relevance
68 #define LUT_VREF_HIGH 1200 macro239 int x2dist = LUT_VREF_HIGH - vref; //(x2 - x) in calculate_voltage_lut()253 voltage += ((LUT_VREF_HIGH - LUT_VREF_LOW) * LUT_ADC_STEP_SIZE) / 2; //Integer division rounding in calculate_voltage_lut()254 … voltage /= ((LUT_VREF_HIGH - LUT_VREF_LOW) * LUT_ADC_STEP_SIZE); //Divide by ((x2-x1)*(y2-y1)) in calculate_voltage_lut()
70 #define LUT_VREF_HIGH 1200 macro245 int x2dist = LUT_VREF_HIGH - vref; //(x2 - x) in calculate_voltage_lut()259 voltage += ((LUT_VREF_HIGH - LUT_VREF_LOW) * LUT_ADC_STEP_SIZE) / 2; //Integer division rounding in calculate_voltage_lut()260 … voltage /= ((LUT_VREF_HIGH - LUT_VREF_LOW) * LUT_ADC_STEP_SIZE); //Divide by ((x2-x1)*(y2-y1)) in calculate_voltage_lut()
71 #define LUT_VREF_HIGH 1200 macro418 int x2dist = LUT_VREF_HIGH - vref; //(x2 - x) in calculate_voltage_lut()432 voltage += ((LUT_VREF_HIGH - LUT_VREF_LOW) * LUT_ADC_STEP_SIZE) / 2; //Integer division rounding in calculate_voltage_lut()433 … voltage /= ((LUT_VREF_HIGH - LUT_VREF_LOW) * LUT_ADC_STEP_SIZE); //Divide by ((x2-x1)*(y2-y1)) in calculate_voltage_lut()