summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/swim2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/swim2.h')
-rw-r--r--src/devices/machine/swim2.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/devices/machine/swim2.h b/src/devices/machine/swim2.h
index 3045cd710ed..bddcd7b49d1 100644
--- a/src/devices/machine/swim2.h
+++ b/src/devices/machine/swim2.h
@@ -49,7 +49,7 @@ private:
u8 m_param[4];
u8 m_mode, m_setup, m_error, m_param_idx, m_fifo_pos, m_tss_sr, m_tss_output, m_current_bit;
u16 m_fifo[2], m_sr;
- u16 m_crc;
+ u16 m_crc, m_mfm_sync_counter;
u32 m_half_cycles_before_change;
u64 m_last_sync;
@@ -67,6 +67,9 @@ private:
u16 fifo_pop();
void flush_write(u64 when = 0);
void show_mode() const;
+
+ void crc_update(int bit);
+ void crc_clear();
};
DECLARE_DEVICE_TYPE(SWIM2, swim2_device)