summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/ds2404.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine/ds2404.h')
-rw-r--r--src/emu/machine/ds2404.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/emu/machine/ds2404.h b/src/emu/machine/ds2404.h
index d13759f4bcf..154d818a005 100644
--- a/src/emu/machine/ds2404.h
+++ b/src/emu/machine/ds2404.h
@@ -43,11 +43,11 @@
// ======================> ds2404_device
class ds2404_device : public device_t,
- public device_nvram_interface
+ public device_nvram_interface
{
public:
- // construction/destruction
- ds2404_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ // construction/destruction
+ ds2404_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
// inline configuration helpers
static void static_set_ref_year(device_t &device, UINT32 m_ref_year);
@@ -67,11 +67,11 @@ public:
void ds2404_tick();
protected:
- // device-level overrides
- virtual void device_start();
- virtual void device_reset() { }
- virtual void device_post_load() { }
- virtual void device_clock_changed() { }
+ // device-level overrides
+ virtual void device_start();
+ virtual void device_reset() { }
+ virtual void device_post_load() { }
+ virtual void device_clock_changed() { }
// device_nvram_interface overrides
virtual void nvram_default();
@@ -90,31 +90,31 @@ private:
enum DS2404_STATE
{
- DS2404_STATE_IDLE = 1, /* waiting for ROM command, in 1-wire mode */
- DS2404_STATE_COMMAND, /* waiting for memory command */
- DS2404_STATE_ADDRESS1, /* waiting for address bits 0-7 */
- DS2404_STATE_ADDRESS2, /* waiting for address bits 8-15 */
- DS2404_STATE_OFFSET, /* waiting for ending offset */
+ DS2404_STATE_IDLE = 1, /* waiting for ROM command, in 1-wire mode */
+ DS2404_STATE_COMMAND, /* waiting for memory command */
+ DS2404_STATE_ADDRESS1, /* waiting for address bits 0-7 */
+ DS2404_STATE_ADDRESS2, /* waiting for address bits 8-15 */
+ DS2404_STATE_OFFSET, /* waiting for ending offset */
DS2404_STATE_INIT_COMMAND,
- DS2404_STATE_READ_MEMORY, /* Read Memory command active */
- DS2404_STATE_WRITE_SCRATCHPAD, /* Write Scratchpad command active */
- DS2404_STATE_READ_SCRATCHPAD, /* Read Scratchpad command active */
- DS2404_STATE_COPY_SCRATCHPAD /* Copy Scratchpad command active */
+ DS2404_STATE_READ_MEMORY, /* Read Memory command active */
+ DS2404_STATE_WRITE_SCRATCHPAD, /* Write Scratchpad command active */
+ DS2404_STATE_READ_SCRATCHPAD, /* Read Scratchpad command active */
+ DS2404_STATE_COPY_SCRATCHPAD /* Copy Scratchpad command active */
};
- // configuration state
- UINT32 m_ref_year;
- UINT8 m_ref_month;
- UINT8 m_ref_day;
+ // configuration state
+ UINT32 m_ref_year;
+ UINT8 m_ref_month;
+ UINT8 m_ref_day;
UINT16 m_address;
UINT16 m_offset;
UINT16 m_end_offset;
UINT8 m_a1;
UINT8 m_a2;
- UINT8 m_sram[512]; /* 4096 bits */
- UINT8 m_ram[32]; /* scratchpad ram, 256 bits */
- UINT8 m_rtc[5]; /* 40-bit RTC counter */
+ UINT8 m_sram[512]; /* 4096 bits */
+ UINT8 m_ram[32]; /* scratchpad ram, 256 bits */
+ UINT8 m_rtc[5]; /* 40-bit RTC counter */
DS2404_STATE m_state[8];
int m_state_ptr;
};