X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=hardware%2Fhantek-dso%2Fdso.h;h=a0f5c5a1efdf70968e35c407204dc0d6b7044f88;hp=1a0c69deb4326ee2884b704e13cebbc2b4f528a0;hb=bc79e906a0911b4218b42b63b2f27fb0016c59da;hpb=6e71ef3b6f27c3f3e1c5d5dc4e2f60caf54fc818 diff --git a/hardware/hantek-dso/dso.h b/hardware/hantek-dso/dso.h index 1a0c69de..a0f5c5a1 100644 --- a/hardware/hantek-dso/dso.h +++ b/hardware/hantek-dso/dso.h @@ -34,12 +34,10 @@ #define DEFAULT_VOLTAGE VOLTAGE_2V #define DEFAULT_FRAMESIZE FRAMESIZE_SMALL -#define DEFAULT_TIMEBASE TIME_1ms +#define DEFAULT_TIMEBASE TIME_400us #define DEFAULT_TRIGGER_SOURCE TRIGGER_CH1 #define DEFAULT_COUPLING COUPLING_AC -/* Halfway between min and max = 0V */ -#define DEFAULT_HORIZ_TRIGGERPOS 0x1400 - +#define DEFAULT_HORIZ_TRIGGERPOS 0.5 #define DEFAULT_VERT_OFFSET 0.5 #define DEFAULT_VERT_TRIGGERPOS 0.0 @@ -117,9 +115,7 @@ enum trigger_slopes { enum trigger_sources { TRIGGER_CH2 = 0, TRIGGER_CH1, - TRIGGER_ALT, TRIGGER_EXT, - TRIGGER_EXT10 }; enum capturestates { @@ -193,7 +189,7 @@ struct context { gboolean filter_trigger; int triggerslope; int triggersource; - int triggerposition; + float triggerposition; int triggermode; };