Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

Rtcadds


Data Structures

struct  _RTCDCB
struct  _RTCICB

Typedefs

typedef _RTCDCB RTCDCB
typedef _RTCICB RTCICB

Functions

int RtcInit (NUTDEVICE *dev)
u_char rtcReadByte (u_char address)
void rtcWriteByte (u_char address, u_char data)

Variables

NUTDEVICE devRtcSpi

Detailed Description

Module for managing Real Time Clock hardware. Contain functions to read and write command from/to RTC. This driver uses spi driver to access hardware.

Typedef Documentation

typedef struct _RTCDCB RTCDCB
 

Defines device parameters, required for NUT device driver.

typedef struct _RTCICB RTCICB
 

Defines driver interface parameters, required for NUT device driver.


Function Documentation

int RtcInit NUTDEVICE   dev
 

Init driver. Call it first.

Parameters:
dev  - pointer to driver control structure.
Returns:
0 - on success -1 on failed.

u_char rtcReadByte u_char    address
 

Read byte from rtc device.

Parameters:
address  - byte address in rtc.

void rtcWriteByte u_char    address,
u_char    data
 

Send byte to rtc device.

Parameters:
address  - byte address in rtc.
data  - data to write to rtc.


Variable Documentation

NUTDEVICE devRtcSpi
 

Driver control structure.


Generated on Thu Jan 30 22:30:57 2003 for EduNet by doxygen1.2.18