]> sigrok.org Git - libsigrok.git/commitdiff
zeroplus: Add getters for memory configuration
authorRuss Dill <redacted>
Mon, 30 Dec 2013 15:04:42 +0000 (07:04 -0800)
committerBert Vermeulen <redacted>
Fri, 3 Jan 2014 14:09:10 +0000 (15:09 +0100)
This is needed at capture readback time to determine how many samples to read
in.

Signed-off-by: Russ Dill <redacted>
hardware/zeroplus-logic-cube/analyzer.c
hardware/zeroplus-logic-cube/analyzer.h

index 1bf1f65b2abdb29593642b8147784a7fb713b2ef..63116fc1fa85c91e8741ef7adf52132c6aec9f33 100644 (file)
@@ -564,11 +564,21 @@ SR_PRIV void analyzer_set_ramsize_trigger_address(unsigned int address)
        g_ramsize_triggerbar_addr = address;
 }
 
+SR_PRIV unsigned int analyzer_get_ramsize_trigger_address(void)
+{
+       return g_ramsize_triggerbar_addr;
+}
+
 SR_PRIV void analyzer_set_triggerbar_address(unsigned int address)
 {
        g_triggerbar_addr = address;
 }
 
+SR_PRIV unsigned int analyzer_get_triggerbar_address(void)
+{
+       return g_triggerbar_addr;
+}
+
 SR_PRIV unsigned int analyzer_read_status(libusb_device_handle *devh)
 {
        return gl_reg_read(devh, DEV_STATUS);
index f6e9587573de9d6fbe648be53d4c71aacdc5a11f..94d1cc1a3c0baae5d396ec31a414a092d155f141 100644 (file)
@@ -85,6 +85,8 @@ enum {
 SR_PRIV void analyzer_set_freq(int freq, int scale);
 SR_PRIV void analyzer_set_ramsize_trigger_address(unsigned int address);
 SR_PRIV void analyzer_set_triggerbar_address(unsigned int address);
+SR_PRIV unsigned int  analyzer_get_ramsize_trigger_address(void );
+SR_PRIV unsigned int analyzer_get_triggerbar_address(void);
 SR_PRIV void analyzer_set_compression(unsigned int type);
 SR_PRIV void analyzer_set_memory_size(unsigned int size);
 SR_PRIV void analyzer_add_trigger(int channel, int type);