Set DSLogic in logic analyzer mode.
It was being initialized in DSO mode. Signed-off-by: Diego F. Asanza <f.asanza@gmail.com>
This commit is contained in:
parent
3f0ff41284
commit
62974b235a
|
@ -117,7 +117,7 @@ SR_PRIV int dslogic_start_acquisition(const struct sr_dev_inst *sdi)
|
|||
int ret;
|
||||
|
||||
devc = sdi->priv;
|
||||
mode.flags = 0;
|
||||
mode.flags = DS_START_FLAGS_MODE_LA;
|
||||
mode.sample_delay_h = mode.sample_delay_l = 0;
|
||||
if (devc->sample_wide)
|
||||
mode.flags |= DS_START_FLAGS_SAMPLE_WIDE;
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#define DS_START_FLAGS_STOP (1 << 7)
|
||||
#define DS_START_FLAGS_CLK_48MHZ (1 << 6)
|
||||
#define DS_START_FLAGS_SAMPLE_WIDE (1 << 5)
|
||||
#define DS_START_FLAGS_MODE_LA (1 << 4)
|
||||
|
||||
enum dslogic_operation_modes {
|
||||
DS_OP_NORMAL,
|
||||
|
|
Loading…
Reference in New Issue