X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Flink-mso19%2Fprotocol.h;h=474fba1497b9f8ec748ecb8975279f71e4c94324;hb=087a9161fffa0cabe8aa37cf3358d88bcd72fb21;hp=38514404f98405be40f85da9b3bc0efe3f01e995;hpb=5a24e89ca463ba7acb465f4bc9953e2da9c09e45;p=libsigrok.git diff --git a/hardware/link-mso19/protocol.h b/hardware/link-mso19/protocol.h index 38514404..474fba14 100644 --- a/hardware/link-mso19/protocol.h +++ b/hardware/link-mso19/protocol.h @@ -40,7 +40,7 @@ #define NUM_PROBES 8 #define NUM_TRIGGER_STAGES 4 -#define TRIGGER_TYPES "01" +#define TRIGGER_TYPES "01" //the first r/f is used for the whole group #define SERIALCOMM "460800/8n1/flow=2" #define SERIALCONN "/dev/ttyUSB0" #define CLOCK_RATE SR_MHZ(100) @@ -54,6 +54,11 @@ #define MSO_TRIGGER_FIRED '5' #define MSO_TRIGGER_DATAREADY '6' +enum trigger_slopes { + SLOPE_POSITIVE = 0, + SLOPE_NEGATIVE, +}; + /* Structure for the pattern generator state */ struct mso_patgen { /* Pattern generator clock config */ @@ -102,10 +107,12 @@ struct dev_context { uint8_t la_threshold; uint64_t cur_rate; uint8_t dso_probe_attn; + int8_t use_trigger; uint8_t trigger_chan; uint8_t trigger_slope; uint8_t trigger_outsrc; uint8_t trigger_state; + uint8_t trigger_holdoff[2]; uint8_t la_trigger; uint8_t la_trigger_mask; double dso_trigger_voltage;