<?xml version="1.0" encoding="US-ASCII" standalone="yes"?>
<!DOCTYPE apidoc SYSTEM "apigen.dtd">
<apidoc book="VxWorks" chapter="VxWorks Driver API Reference">
<librarydoc>
<libhead>rtc146818</libhead>
<libname>
<heading>NAME</heading>
<libshort>
<library>rtc146818</library> &endash; driver for the MC146818 real time clock
</libshort>
</libname>
<rtnlist>
<heading>ROUTINES</heading>
<rtnlines>
<rtnline>
<routine>vxbMc146818RtcDrvRegister(&nbsp;)</routine> &endash; registers the driver for MC146818 RTC<br/>
</rtnline>
</rtnlines>
</rtnlist>
<section>
<heading>DESCRIPTION</heading>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;This&nbsp;is&nbsp;the&nbsp;vxBus&nbsp;compliant&nbsp;driver&nbsp;which&nbsp;implements&nbsp;the&nbsp;functionality<br/>
&nbsp;&nbsp;&nbsp;&nbsp;specific&nbsp;to&nbsp;the&nbsp;the&nbsp;MC146818&nbsp;real&nbsp;time&nbsp;clock&nbsp;Timer.&nbsp;It&nbsp;doesn't&nbsp;implement&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;functionality&nbsp;of&nbsp;standard&nbsp;MC146818&nbsp;timer&nbsp;driver&nbsp;but&nbsp;adds&nbsp;RTC&nbsp;time&nbsp;functions<br/>
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;User&nbsp;application&nbsp;is&nbsp;able&nbsp;to&nbsp;use&nbsp;VxBus&nbsp;custom&nbsp;methods&nbsp;defined&nbsp;for&nbsp;this&nbsp;driver:<br/>
</p>
<code>
    METHOD_DECL(vxbRtcGet)
    METHOD_DECL(vxbRtcSet)
</code>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;and&nbsp;the&nbsp;methods&nbsp;should&nbsp;be&nbsp;called&nbsp;as<br/>
</p>
<code>
    struct tm t;
        
    vxbDevMethodRun(DEVMETHOD_CALL(vxbRtcGet), &amp;t);
    vxbDevMethodRun(DEVMETHOD_CALL(vxbRtcSet), &amp;t);
</code>
</section>
<heading>INCLUDE FILES</heading>
<p>
none
</p>
</includes>
</librarydoc>
<routinedoc>
<rtnhead>vxbMc146818RtcDrvRegister(&nbsp;)</rtnhead>
<rtnname>
<heading>NAME</heading>
<rtnshort>
<routine>vxbMc146818RtcDrvRegister(&nbsp;)</routine> &endash; registers the driver for MC146818 RTC
</rtnshort>
</rtnname>
<synopsis>
<heading>SYNOPSIS</heading>
<code>
void vxbMc146818RtcKontronDrvRegister(void)
</code>
</synopsis>
<section>
<heading>DESCRIPTION</heading>
<p>
This routine registers the driver for MC146818 Real Time Clock with the 
vxBus subsystem.
</p>
</section>
<returns>
<heading>RETURNS</heading>
<p>
N/A
</p>
</returns>
</errno>
<heading>ERRNO</heading>
</errno>
<seealso>
<heading>SEE ALSO</heading>
<p>
<library>rtc146818</library>
</p>
</seealso>
</routinedoc>
</apidoc>
