OSDN Git Service

hw/MC3630.h
authorPawel Jewstafjew <Pawel.Jewstafjew@gmail.com>
Tue, 25 Jul 2017 21:05:18 +0000 (22:05 +0100)
committerPawel Jewstafjew <Pawel.Jewstafjew@gmail.com>
Tue, 25 Jul 2017 21:05:18 +0000 (22:05 +0100)
hw/MC3630.h [new file with mode: 0644]

diff --git a/hw/MC3630.h b/hw/MC3630.h
new file mode 100644 (file)
index 0000000..fb2f31f
--- /dev/null
@@ -0,0 +1,28 @@
+// MC3630
+
+enum {
+   // first byte, flags
+   MC3630_READ     = 1<<7, // register Read access
+   MC3630_WRITE    = 0<<7, // register Write access
+   MC3630_ONE_BYTE = 1<<6, // "1-Byte Address" format
+
+   // first byte, register address
+   MC3630_EXT_STAT_1 = 0x00, // Extended Status 1
+   MC3630_EXT_STAT_2 = 0x01, // Extended Status 2
+
+   MC3630_STATUS_1   = 0x08, // Status 1
+   MC3630_STATUS_2   = 0x09, // Status 2
+
+   MC3630_FREG_1     = 0x0D, // Feature 1
+   MC3630_FREG_2     = 0x0E, // Feature 2
+   MC3630_INIT_1     = 0x0F, // Initialization 1
+
+   MC3630_CHIP_ID    = 0x18, // Chip ID Register
+   MC3630_INIT_3     = 0x1A, // Initialization 3
+
+   MC3630_DMX        = 0x20, // Drive Motion X
+   MC3630_DMY        = 0x21, // Drive Motion Y
+   MC3630_DMZ        = 0x22, // Drive Motion Z
+
+   MC3630_INIT_2     = 0x28, // Initialization 2
+};