diff options
Diffstat (limited to 'trunk/src/emu/dirtc.h')
-rw-r--r-- | trunk/src/emu/dirtc.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/trunk/src/emu/dirtc.h b/trunk/src/emu/dirtc.h new file mode 100644 index 00000000000..ba1b238eecf --- /dev/null +++ b/trunk/src/emu/dirtc.h @@ -0,0 +1,41 @@ +/*************************************************************************** + + dirtc.h + + Device Real Time Clock interfaces. + +***************************************************************************/ + +#pragma once + +#ifndef __EMU_H__ +#error Dont include this file directly; include emu.h instead. +#endif + +#ifndef __DIRTC_H__ +#define __DIRTC_H__ + + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + + +// ======================> device_rtc_interface + +// class representing interface-specific live rtc +class device_rtc_interface : public device_interface +{ +public: + // construction/destruction + device_rtc_interface(const machine_config &mconfig, device_t &device); + virtual ~device_rtc_interface(); + +protected: + // derived class overrides + virtual void rtc_set_time(int year, int month, int day, int day_of_week, int hour, int minute, int second) = 0; + virtual bool rtc_is_year_2000_compliant() = 0; +}; + + +#endif /* __DIRTC_H__ */ |