Lines Matching refs:battery
81 * Empirical range of battery values.
227 int battery, state;
239 battery = psh3pwr_get_battery();
240 if (battery < PSH3PWR_BATTERY_CRITICAL)
242 else if (battery < PSH3PWR_BATTERY_LOW)
250 battery = psh3pwr_get_battery();
251 if (battery > PSH3PWR_BATTERY_FULL)
254 state = 100 * (battery - PSH3PWR_BATTERY_MIN) /
267 int battery;
271 battery = adc_sample_channel(ADC_CHANNEL_BATTERY);
274 return battery;