X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=libsigrok.h;fp=libsigrok.h;h=34c6133464ab6a185ffcdab494bca748ef59bec9;hb=91aea754aaed0f0f2a6fc4b2b875f0d0b7c01f8e;hp=382f502b470a3a992c868a10b4730344133f864b;hpb=53b4680fceab9351fc87b8c5b34854733f5fdac0;p=libsigrok.git diff --git a/libsigrok.h b/libsigrok.h index 382f502b..34c61334 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -605,15 +605,15 @@ enum { SR_PROBE_ANALOG, }; -/** Information on single probe. */ -struct sr_probe { - /** Number of probes, starting at 0. */ +/** Information on single channel. */ +struct sr_channel { + /** Number of channels, starting at 0. */ int index; - /** Probe type (SR_PROBE_LOGIC, ...) */ + /** Channel type (SR_PROBE_LOGIC, ...) */ int type; - /** Is this probe enabled? */ + /** Is this channel enabled? */ gboolean enabled; - /** Name of probe. */ + /** Name of channel. */ char *name; /** Trigger string, format like used by sigrok-cli */ char *trigger; @@ -623,7 +623,7 @@ struct sr_probe { struct sr_channel_group { /** Name of the channel group. */ char *name; - /** List of sr_probe structs of the channels belonging to this group. */ + /** List of sr_channel structs of the channels belonging to this group. */ GSList *channels; /** Private data for driver use. */ void *priv; @@ -995,7 +995,7 @@ struct sr_dev_driver { /** Probe status change. * @see sr_dev_probe_enable(), sr_dev_trigger_set(). */ int (*config_probe_set) (const struct sr_dev_inst *sdi, - struct sr_probe *probe, unsigned int changes); + struct sr_channel *probe, unsigned int changes); /** Apply configuration settings to the device hardware. * @see sr_config_commit().*/ int (*config_commit) (const struct sr_dev_inst *sdi);