X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fzeroplus-logic-cube%2Fanalyzer.h;h=f6e9587573de9d6fbe648be53d4c71aacdc5a11f;hb=61c39f54bbcae7bdde86ddb11b2fd0ff308d319b;hp=27722af72a7af4a23f0d54129a5be6c1c9496efd;hpb=0f8522bf74af8abfe8601e978b2e0d0e40b1a124;p=libsigrok.git diff --git a/hardware/zeroplus-logic-cube/analyzer.h b/hardware/zeroplus-logic-cube/analyzer.h index 27722af7..f6e95875 100644 --- a/hardware/zeroplus-logic-cube/analyzer.h +++ b/hardware/zeroplus-logic-cube/analyzer.h @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the libsigrok project. * * Copyright (C) 2010 Sven Peter * Copyright (C) 2010 Haxx Enterprises @@ -33,7 +33,7 @@ #define LIBSIGROK_HARDWARE_ZEROPLUS_LOGIC_CUBE_ANALYZER_H #include -#include "sigrok.h" +#include "libsigrok.h" #define STATUS_FLAG_NONE 0x00 #define STATUS_FLAG_RESET 0x01 @@ -43,10 +43,16 @@ #define STATUS_FLAG_READ 0x10 #define STATUS_FLAG_20 0x20 +/* In bytes */ #define MEMORY_SIZE_8K 0x00 #define MEMORY_SIZE_64K 0x01 #define MEMORY_SIZE_128K 0x02 +#define MEMORY_SIZE_256K 0x03 #define MEMORY_SIZE_512K 0x04 +#define MEMORY_SIZE_1M 0x05 +#define MEMORY_SIZE_2M 0x06 +#define MEMORY_SIZE_4M 0x07 +#define MEMORY_SIZE_8M 0x08 #define STATUS_BUSY 0x01 /* WTF / ??? */ #define STATUS_READY 0x02 @@ -85,6 +91,7 @@ SR_PRIV void analyzer_add_trigger(int channel, int type); SR_PRIV void analyzer_set_trigger_count(int count); SR_PRIV void analyzer_add_filter(int channel, int type); +SR_PRIV unsigned int analyzer_read_status(libusb_device_handle *devh); SR_PRIV unsigned int analyzer_read_id(libusb_device_handle *devh); SR_PRIV unsigned int analyzer_get_stop_address(libusb_device_handle *devh); SR_PRIV unsigned int analyzer_get_now_address(libusb_device_handle *devh);