Searched refs:LUT_VREF_LOW (Results 1 – 3 of 3) sorted by relevance
67 #define LUT_VREF_LOW 1000 macro240 int x1dist = vref - LUT_VREF_LOW; //(x - x1) 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()
69 #define LUT_VREF_LOW 1000 macro246 int x1dist = vref - LUT_VREF_LOW; //(x - x1) 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()
70 #define LUT_VREF_LOW 1000 macro419 int x1dist = vref - LUT_VREF_LOW; //(x - x1) 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()