[maemo-developers] Re: Charger connected State

From: unknown matan at svgalib.org
Date: Tue Sep 16 19:57:50 EEST 2008
If you want to read it directly from the hardware, ADC #3 of retu chip gives this information.

It gives value of 0 when no charger is connected, and values like 0xff or higher when a charger is connected.

This value can be read like this:

f=open("/dev/retu", O_RDWR);
adc3= ioctl(f,RETU_IOCH_ADC_READ, 3);

-- 
Matan Ziv-Av.

More information about the maemo-developers mailing list