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:
parent
aad031928e
commit
a864a05b25
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue