Barrelfish
Data Structures | Functions
rtc.h File Reference

Real Time Clock Header File. More...

Data Structures

struct  rtc_time
 Time structure. This structure is used to get the current RTC time. More...
 

Functions

void rtc_print (struct rtc_time *t)
 Print current time. This function prints the given time. More...
 
void rtc_write_cmos (int addr, uint8_t b)
 This function reads the hardware clock. This function reads the hardware real time clock and fills the passed struct with the read values. More...
 

Detailed Description

Real Time Clock Header File.

This file contains the defines, the struct and the procedure signatures used to access the real time clock (the hardware clock).

Function Documentation

void rtc_print ( struct rtc_time t)

Print current time. This function prints the given time.

Parameters
tpointer to a rtc_time struct
void rtc_write_cmos ( int  addr,
uint8_t  b 
)

This function reads the hardware clock. This function reads the hardware real time clock and fills the passed struct with the read values.

Parameters
tpointer to a rtc_time struct