Get Real Time Clock (RTC) time/date 
Author Message
 Get Real Time Clock (RTC) time/date

Hello,
    I was looking for a way to read the real time clock (rtc) from an
embedded vc++ 3.0 application. I know how to use the GetSystemTime(), but I
would like to read the real time clock directly (as the System time is
sometimes erroneous). Can this be done after the Windows CE kernel is
booted? The CE version that we are using is 3.0. If anyone knows of any
functions, or ways, to do this, I'd appreciate it.

Thanks,
    Aaron



Mon, 22 Mar 2004 02:59:19 GMT  
 Get Real Time Clock (RTC) time/date
GetSystemTime just goes into the Kernel and ends up calling (after switching
from the calling application into the kernel)OEMGetRealTime in the OAL. This
function goes directly to the hardware. It is totally hardware dependent and
every device may be different.

--
Steve Maillet
Entelechy Software Consulting
"Where Hardware Meets Software"
Home of the Windows CE Embedded FAQ
www.EntelechyConsulting.com
smaillet AT EntelechyConsulting DOT com


Quote:
> Hello,
>     I was looking for a way to read the real time clock (rtc) from an
> embedded vc++ 3.0 application. I know how to use the GetSystemTime(), but
I
> would like to read the real time clock directly (as the System time is
> sometimes erroneous). Can this be done after the Windows CE kernel is
> booted? The CE version that we are using is 3.0. If anyone knows of any
> functions, or ways, to do this, I'd appreciate it.

> Thanks,
>     Aaron



Mon, 22 Mar 2004 07:34:46 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Real Time Clock on Red Hat Linux Hangs on Read (from /dev/rtc)

2. Real Time Clock (RTC) in C/C++

3. Q: update system clock with real time clock

4. RTC(Real Time Communications) app.

5. Using RTC(Real-Time Communication) COM in WindowsCE

6. real time clock

7. Help with real time clock

8. Real time clock function needed

9. Real time clock -- 15 ms??

10. help REAL TIME CLOCK INTERRUPT

11. Y2k and Real Time Clock

12. C time/date to Visual Basic time/date

 

 
Powered by phpBB® Forum Software