API Reference: Libraries

Top

# rtc146818

#### NAME

> rtc146818 - driver for the MC146818 real time clock

#### ROUTINES

> vxbMc146818RtcDrvRegister( ) - registers the driver for MC146818 RTC

#### DESCRIPTION

> This is the vxBus compliant driver which implements the functionality
> specific to the the MC146818 real time clock Timer. It doesn't implement
> functionality of standard MC146818 timer driver but adds RTC time functions

> User application is able to use VxBus custom methods defined for this driver:

>         METHOD_DECL(vxbRtcGet)
>         METHOD_DECL(vxbRtcSet)

> and the methods should be called as

>         struct tm t;

>         vxbDevMethodRun(DEVMETHOD_CALL(vxbRtcGet), &t);
>         vxbDevMethodRun(DEVMETHOD_CALL(vxbRtcSet), &t);

#### INCLUDE FILES

> none

API Reference: Routines

Top

# vxbMc146818RtcDrvRegister( )

#### NAME

> vxbMc146818RtcDrvRegister( ) - registers the driver for MC146818 RTC

#### SYNOPSIS

>     void vxbMc146818RtcKontronDrvRegister(void)

#### DESCRIPTION

> This routine registers the driver for MC146818 Real Time Clock with the vxBus subsystem.

#### RETURNS

> N/A

#### ERRNO

#### SEE ALSO

> rtc146818