]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/fx2lafw/dslogic.h
fx2lafw/dslogic: Use const buffer instead of memset
[libsigrok.git] / src / hardware / fx2lafw / dslogic.h
index f74367ade59499de7d2811b2f2767a5aec7c6c57..2d13b28f6a0b3a24ea4a041bcb008ee01b4cfd08 100644 (file)
 #define DS_CMD_GET_FW_VERSION          0xb0
 #define DS_CMD_GET_REVID_VERSION       0xb1
 #define DS_CMD_START                   0xb2
-#define DS_CMD_FPGA_FW                 0xb3
-#define DS_CMD_CONFIG                  0xb4
-#define DS_CMD_VTH                     0xb8
+#define DS_CMD_CONFIG                  0xb3
+#define DS_CMD_SETTING                 0xb4
+#define DS_CMD_CONTROL                 0xb5
+#define DS_CMD_STATUS                  0xb6
+#define DS_CMD_STATUS_INFO             0xb7
+#define DS_CMD_WR_REG                  0xb8
+#define DS_CMD_WR_NVM                  0xb9
+#define DS_CMD_RD_NVM                  0xba
+#define DS_CMD_RD_NVM_PRE              0xbb
+#define DS_CMD_GET_HW_INFO             0xbc
 
 #define DS_NUM_TRIGGER_STAGES          16
 #define DS_START_FLAGS_STOP            (1 << 7)
 #define DS_START_FLAGS_SAMPLE_WIDE     (1 << 5)
 #define DS_START_FLAGS_MODE_LA         (1 << 4)
 
+#define DS_ADDR_COMB                   0x68
+#define DS_ADDR_EEWP                   0x70
+#define DS_ADDR_VTH                    0x78
+
 #define DS_MAX_LOGIC_DEPTH             SR_MHZ(16)
 #define DS_MAX_LOGIC_SAMPLERATE                SR_MHZ(100)