X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Frigol-ds%2Fprotocol.h;h=86669b40de0ebbb6e5727d86340e136b4ad35604;hb=a90ffc373005b8ee506e5b69bcb9451233295d1b;hp=840b1b274e2b17a0f917cf772bd6d4abfbd41e46;hpb=6bcc81ac3aae2ab805f9c856c211c56c07afc8e2;p=libsigrok.git diff --git a/src/hardware/rigol-ds/protocol.h b/src/hardware/rigol-ds/protocol.h index 840b1b27..86669b40 100644 --- a/src/hardware/rigol-ds/protocol.h +++ b/src/hardware/rigol-ds/protocol.h @@ -74,6 +74,16 @@ struct rigol_ds_series { int buffer_samples; }; +enum cmds { + CMD_GET_HORIZ_TRIGGERPOS, + CMD_SET_HORIZ_TRIGGERPOS, +}; + +struct rigol_ds_command { + int cmd; + const char *str; +}; + struct rigol_ds_model { const struct rigol_ds_series *series; const char *name; @@ -82,6 +92,7 @@ struct rigol_ds_model { bool has_digital; const char **trigger_sources; unsigned int num_trigger_sources; + const struct rigol_ds_command *cmds; }; enum wait_events { @@ -120,7 +131,9 @@ struct dev_context { float attenuation[MAX_ANALOG_CHANNELS]; float vdiv[MAX_ANALOG_CHANNELS]; int vert_reference[MAX_ANALOG_CHANNELS]; + float vert_origin[MAX_ANALOG_CHANNELS]; float vert_offset[MAX_ANALOG_CHANNELS]; + float vert_inc[MAX_ANALOG_CHANNELS]; char *trigger_source; float horiz_triggerpos; char *trigger_slope;