Searched refs:vdd_current (Results 1 – 2 of 2) sorted by relevance
227 int timeout, vdd_current; in wait_for_new_voltage() local229 vdd_current = read_voltage(i2caddress); in wait_for_new_voltage()240 abs(vdd - vdd_current) > (IR_VDD_STEP_UP + IR_VDD_STEP_DOWN) && in wait_for_new_voltage()242 vdd_current = read_voltage(i2caddress); in wait_for_new_voltage()257 int timeout, vdd_current, vdd; in wait_for_voltage_stable() local263 vdd_current = read_voltage(i2caddress); in wait_for_voltage_stable()268 abs(vdd - vdd_current) > ADC_MIN_ACCURACY && in wait_for_voltage_stable()270 vdd = vdd_current; in wait_for_voltage_stable()272 vdd_current = read_voltage(i2caddress); in wait_for_voltage_stable()276 return vdd_current; in wait_for_voltage_stable()[all …]
143 int timeout, vdd_current; in wait_for_voltage_change() local145 vdd_current = read_voltage(); in wait_for_voltage_change()147 for (timeout = 0; abs(vdd_last - vdd_current) <= 4 && in wait_for_voltage_change()149 vdd_current = read_voltage(); in wait_for_voltage_change()164 int timeout, vdd_current, vdd_last; in wait_for_voltage_stable() local169 vdd_current = read_voltage(); in wait_for_voltage_stable()170 for (timeout = 0; abs(vdd_last - vdd_current) >= 4 && in wait_for_voltage_stable()172 vdd_last = vdd_current; in wait_for_voltage_stable()174 vdd_current = read_voltage(); in wait_for_voltage_stable()181 return vdd_current; in wait_for_voltage_stable()[all …]