zeroplus: Add getters for memory configuration

This is needed at capture readback time to determine how many samples to read
in.

Signed-off-by: Russ Dill <Russ.Dill@gmail.com>
This commit is contained in:
Russ Dill 2013-12-30 07:04:42 -08:00 committed by Bert Vermeulen
parent aad031928e
commit a864a05b25
2 changed files with 12 additions and 0 deletions

View 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);

View 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);