This fixes parts of bug #259.
self._probes = {}
probe_list = self.struct.probes
while (probe_list):
- probe_ptr = void_ptr_to_sr_probe_ptr(probe_list.data)
+ probe_ptr = void_ptr_to_sr_channel_ptr(probe_list.data)
self._probes[probe_ptr.name] = Probe(self, probe_ptr)
probe_list = probe_list.next
return self._probes
self._channels = []
channel_list = self.struct.channels
while (channel_list):
- channel_ptr = void_ptr_to_sr_probe_ptr(channel_list.data)
+ channel_ptr = void_ptr_to_sr_channel_ptr(channel_list.data)
self._channels.append(Probe(self, probe_ptr))
channel_list = channel_list.next
return self._channels
%pointer_cast(gpointer, struct sr_dev_inst *, gpointer_to_sr_dev_inst_ptr);
%pointer_cast(void *, struct sr_datafeed_logic *, void_ptr_to_sr_datafeed_logic_ptr)
%pointer_cast(void *, struct sr_datafeed_analog *, void_ptr_to_sr_datafeed_analog_ptr)
-%pointer_cast(void *, struct sr_probe *, void_ptr_to_sr_probe_ptr)
+%pointer_cast(void *, struct sr_channel *, void_ptr_to_sr_channel_ptr)
%pointer_cast(void *, struct sr_channel_group *, void_ptr_to_sr_channel_group_ptr)
%extend sr_input_format {
*/
/** @private
- * Allocate and initialize new struct sr_probe
- * @param[in] index @copydoc sr_probe::index
- * @param[in] type @copydoc sr_probe::type
- * @param[in] enabled @copydoc sr_probe::enabled
- * @param[in] name @copydoc sr_probe::name
+ * Allocate and initialize new struct sr_channel
+ * @param[in] index @copydoc sr_channel::index
+ * @param[in] type @copydoc sr_channel::type
+ * @param[in] enabled @copydoc sr_channel::enabled
+ * @param[in] name @copydoc sr_channel::name
*
- * @return NULL (failure) or new struct sr_probe*.
+ * @return NULL (failure) or new struct sr_channel*.
*/
-SR_PRIV struct sr_probe *sr_probe_new(int index, int type,
+SR_PRIV struct sr_channel *sr_probe_new(int index, int type,
gboolean enabled, const char *name)
{
- struct sr_probe *probe;
+ struct sr_channel *probe;
- if (!(probe = g_try_malloc0(sizeof(struct sr_probe)))) {
+ if (!(probe = g_try_malloc0(sizeof(struct sr_channel)))) {
sr_err("Probe malloc failed.");
return NULL;
}
int probenum, const char *name)
{
GSList *l;
- struct sr_probe *probe;
+ struct sr_channel *probe;
int ret;
if (!sdi) {
gboolean state)
{
GSList *l;
- struct sr_probe *probe;
+ struct sr_channel *probe;
int ret;
gboolean was_enabled;
const char *trigger)
{
GSList *l;
- struct sr_probe *probe;
+ struct sr_channel *probe;
char *old_trigger;
int ret;
*/
SR_PRIV void sr_dev_inst_free(struct sr_dev_inst *sdi)
{
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *l;
for (l = sdi->probes; l; l = l->next) {
struct drv_context *drvc;
struct dev_context *devc;
struct sr_config *src;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_serial_dev_inst *serial;
GSList *l, *devices;
int len, i;
struct drv_context *drvc = NULL;
struct sr_dev_inst *sdi = NULL;
struct dev_context *devc = NULL;
- struct sr_probe *probe;
+ struct sr_channel *probe;
int ret;
unsigned int i, offset, channels, minrate, maxrate, rate;
uint64_t hwrates[ARRAY_SIZE(rates)];
struct dev_context *devc;
struct sr_serial_dev_inst *serial;
struct sr_dev_inst *sdi;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_config *src;
GSList *devices, *l;
const char *conn, *serialcomm;
struct dev_context *devc;
struct sr_datafeed_packet packet;
struct sr_datafeed_analog analog;
- struct sr_probe *probe;
+ struct sr_channel *probe;
float values[APPA_55II_NUM_PROBES], *val_ptr;
int i;
struct dev_context *devc;
struct sr_datafeed_packet packet;
struct sr_datafeed_analog analog;
- struct sr_probe *probe;
+ struct sr_channel *probe;
float values[APPA_55II_NUM_PROBES], *val_ptr;
const uint8_t *buf;
int16_t temp;
static GSList *scan(GSList *options)
{
struct sr_dev_inst *sdi;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct drv_context *drvc;
struct dev_context *devc;
GSList *devices;
static int configure_probes(const struct sr_dev_inst *sdi)
{
struct dev_context *devc = sdi->priv;
- const struct sr_probe *probe;
+ const struct sr_channel *probe;
const GSList *l;
int trigger_set = 0;
int probebit;
memset(&devc->trigger, 0, sizeof(struct sigma_trigger));
for (l = sdi->probes; l; l = l->next) {
- probe = (struct sr_probe *)l->data;
+ probe = (struct sr_channel *)l->data;
probebit = 1 << (probe->index);
if (!probe->enabled || !probe->trigger)
struct drv_context *drvc;
struct dev_context *devc;
struct sr_config *src;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_channel_group *cg;
struct sr_serial_dev_inst *serial;
GSList *l, *devices;
const struct sr_channel_group *cg)
{
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
int channel, ret;
if (!sdi)
const struct sr_channel_group *cg)
{
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
gdouble dval;
int channel, ret, ival;
const char *sval;
const struct sr_channel_group *cg)
{
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GVariant *gvar;
GVariantBuilder gvb;
int channel, ret, i;
struct sr_dev_inst *sdi;
struct sr_usb_dev_inst *usb;
struct sr_config *src;
- struct sr_probe *probe;
+ struct sr_channel *probe;
const char *conn;
drvc = di->priv;
struct sr_dev_inst *sdi;
struct dev_context *devc;
struct drv_context *drvc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_serial_dev_inst *serial;
GSList *devices;
int ret;
struct sr_config *src;
struct sr_serial_dev_inst *serial;
struct sr_dev_inst *sdi;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *l, *devices;
gint64 start;
const char *conn;
struct sr_dev_inst *sdi;
struct drv_context *drvc;
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_serial_dev_inst *serial;
GSList *devices;
static GSList *scan(GSList *options)
{
struct sr_dev_inst *sdi;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct drv_context *drvc;
struct dev_context *devc;
GSList *devices;
SR_PRIV int configure_probes(const struct sr_dev_inst *sdi)
{
struct dev_context *devc;
- const struct sr_probe *probe;
+ const struct sr_channel *probe;
const GSList *l;
uint8_t probe_bit;
char *tc;
devc->trigger_mask = 0; /* Default to "don't care" for all probes. */
for (l = sdi->probes; l; l = l->next) {
- probe = (struct sr_probe *)l->data;
+ probe = (struct sr_channel *)l->data;
if (!probe) {
sr_err("%s: probe was NULL.", __func__);
struct dev_context *devc;
struct sr_dev_inst *sdi;
struct sr_config *src;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *devices, *l;
const char *conn, *serialcomm;
struct sr_dev_inst *sdi;
struct drv_context *drvc;
struct sr_config *src;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_serial_dev_inst *serial;
GSList *l, *devices;
const char *conn, *serialcomm;
struct drv_context *drvc;
struct dev_context *devc;
struct sr_dev_inst *sdi;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_channel_group *cg;
struct sr_config *src;
struct analog_gen *ag;
const struct sr_channel_group *cg)
{
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct analog_gen *ag;
int pattern;
{
struct dev_context *devc;
struct analog_gen *ag;
- struct sr_probe *probe;
+ struct sr_channel *probe;
int pattern, ret;
unsigned int i;
const char *stropt;
static int config_list(int key, GVariant **data, const struct sr_dev_inst *sdi,
const struct sr_channel_group *cg)
{
- struct sr_probe *probe;
+ struct sr_channel *probe;
GVariant *gvar;
GVariantBuilder gvb;
struct sr_dev_inst *sdi;
struct drv_context *drvc;
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_serial_dev_inst *serial;
GSList *devices;
int retry, len, i, s;
struct dev_context *devc;
struct sr_dev_inst *sdi;
struct sr_usb_dev_inst *usb;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_config *src;
const struct fx2lafw_profile *prof;
GSList *l, *devices, *conn_devices;
SR_PRIV int fx2lafw_configure_probes(const struct sr_dev_inst *sdi)
{
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *l;
int probe_bit, stage, i;
char *tc;
stage = -1;
for (l = sdi->probes; l; l = l->next) {
- probe = (struct sr_probe *)l->data;
+ probe = (struct sr_channel *)l->data;
if (probe->enabled == FALSE)
continue;
struct drv_context *drvc;
struct dev_context *devc;
struct sr_config *src;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_serial_dev_inst *serial;
GSList *l, *devices;
const char *conn, *serialcomm;
struct drv_context *drvc;
struct dev_context *devc;
struct sr_config *src;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_serial_dev_inst *serial;
GSList *l, *devices;
const char *conn, *serialcomm;
SR_PRIV int hmo_request_data(const struct sr_dev_inst *sdi)
{
char command[MAX_COMMAND_SIZE];
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct dev_context *devc;
struct scope_config *model;
static int hmo_check_probes(GSList *probes)
{
GSList *l;
- struct sr_probe *probe;
+ struct sr_channel *probe;
gboolean enabled_pod1, enabled_pod2, enabled_chan3, enabled_chan4;
enabled_pod1 = enabled_pod2 = enabled_chan3 = enabled_chan4 = FALSE;
char command[MAX_COMMAND_SIZE];
struct scope_state *state;
struct scope_config *model;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct dev_context *devc;
struct sr_scpi_dev_inst *scpi;
{
GSList *l;
gboolean digital_added;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct dev_context *devc;
struct sr_scpi_dev_inst *scpi;
char tmp[25];
int model_index;
unsigned int i, j;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct dev_context *devc;
devc = sdi->priv;
SR_PRIV int hmo_receive_data(int fd, int revents, void *cb_data)
{
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_dev_inst *sdi;
struct dev_context *devc;
struct sr_datafeed_packet packet;
static struct sr_dev_inst *dso_dev_new(int index, const struct dso_profile *prof)
{
struct sr_dev_inst *sdi;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct drv_context *drvc;
struct dev_context *devc;
int i;
static int configure_probes(const struct sr_dev_inst *sdi)
{
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
const GSList *l;
int p;
GSList *usb_devices, *devices, *l;
struct drv_context *drvc;
struct sr_dev_inst *sdi;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct dev_context *devc;
struct sr_usb_dev_inst *usb;
struct device_info dev_info;
SR_PRIV void sl2_configure_trigger(const struct sr_dev_inst *sdi)
{
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
uint8_t trigger_type;
int probe_index, num_triggers_anyedge;
char *trigger;
void *cb_data;
/* Array to provide an index based access to all probes. */
- const struct sr_probe *probes[NUM_PROBES];
+ const struct sr_channel *probes[NUM_PROBES];
struct libusb_transfer *xfer_in, *xfer_out;
static GSList *scan(GSList *options)
{
struct sr_dev_inst *sdi;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct drv_context *drvc;
struct dev_context *devc;
GSList *devices;
struct drv_context *drvc;
struct dev_context *devc;
struct sr_dev_inst *sdi;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *usb_devices, *devices, *l;
char *model;
struct dev_context *devc;
const struct elusb_profile *profile;
struct sr_dev_inst *sdi;
- struct sr_probe *probe;
+ struct sr_channel *probe;
int modelid, i;
char firmware[5];
struct dev_context *devc;
struct sr_datafeed_packet packet;
struct sr_datafeed_analog analog;
- struct sr_probe *probe;
+ struct sr_channel *probe;
float *temp, *rh;
uint16_t s;
int samples, samples_left, i, j;
sdi->priv = devc;
for (i = 0; i < NUM_PROBES; i++) {
- struct sr_probe *probe;
+ struct sr_channel *probe;
ptype = (i == 0) ? SR_PROBE_ANALOG : SR_PROBE_LOGIC;
if (!(probe = sr_probe_new(i, ptype, TRUE,
mso19_probe_names[i])))
SR_PRIV int mso_configure_probes(const struct sr_dev_inst *sdi)
{
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *l;
char *tc;
devc->use_trigger = FALSE;
for (l = sdi->probes; l; l = l->next) {
- probe = (struct sr_probe *)l->data;
+ probe = (struct sr_channel *)l->data;
if (probe->enabled == FALSE)
continue;
struct sr_dev_inst *sdi;
struct drv_context *drvc;
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_serial_dev_inst *serial;
GSList *devices;
struct drv_context *drvc;
struct dev_context *devc;
struct sr_config *src;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_serial_dev_inst *serial;
GSList *l, *devices;
int len, cnt;
struct sr_dev_inst *sdi;
struct drv_context *drvc;
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_serial_dev_inst *serial;
GPollFD probefd;
GSList *l, *devices;
SR_PRIV int ols_configure_probes(const struct sr_dev_inst *sdi)
{
struct dev_context *devc;
- const struct sr_probe *probe;
+ const struct sr_channel *probe;
const GSList *l;
int probe_bit, stage, i;
char *tc;
devc->num_stages = 0;
for (l = sdi->probes; l; l = l->next) {
- probe = (const struct sr_probe *)l->data;
+ probe = (const struct sr_channel *)l->data;
if (!probe->enabled)
continue;
{
struct sr_dev_inst *sdi;
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
uint32_t tmp_int, ui;
uint8_t key, type, token;
GString *tmp_str, *devname, *version;
struct dev_context *devc;
struct sr_dev_inst *sdi;
struct sr_scpi_hw_info *hw_info;
- struct sr_probe *probe;
+ struct sr_channel *probe;
long n[3];
unsigned int i;
const struct rigol_ds_model *model = NULL;
static int analog_frame_size(const struct sr_dev_inst *sdi)
{
struct dev_context *devc = sdi->priv;
- struct sr_probe *probe;
+ struct sr_channel *probe;
int analog_probes = 0;
GSList *l;
const struct sr_channel_group *cg)
{
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
const char *tmp_str;
uint64_t samplerate;
int analog_channel = -1;
{
struct sr_scpi_dev_inst *scpi;
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_datafeed_packet packet;
GSList *l;
static int rigol_ds_check_stop(const struct sr_dev_inst *sdi)
{
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
int tmp;
if (!(devc = sdi->priv))
SR_PRIV int rigol_ds_channel_start(const struct sr_dev_inst *sdi)
{
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
if (!(devc = sdi->priv))
return SR_ERR;
struct sr_datafeed_logic logic;
double vdiv, offset;
int len, i, vref;
- struct sr_probe *probe;
+ struct sr_channel *probe;
gsize expected_data_bytes;
(void)fd;
struct dev_context *devc;
struct sr_dev_inst *sdi;
struct sr_usb_dev_inst *usb;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_config *src;
GSList *l, *devices, *conn_devices;
struct libusb_device_descriptor des;
static int configure_probes(const struct sr_dev_inst *sdi)
{
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *l;
uint16_t probe_bit;
devc->cur_channels = 0;
devc->num_channels = 0;
for (l = sdi->probes; l; l = l->next) {
- probe = (struct sr_probe *)l->data;
+ probe = (struct sr_channel *)l->data;
if (probe->enabled == FALSE)
continue;
struct sr_dev_inst *sdi;
struct drv_context *drvc;
struct dev_context *devc;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_serial_dev_inst *serial;
GSList *devices;
int dropped, ret;
static GSList *gen_probe_list(int num_probes)
{
GSList *list;
- struct sr_probe *probe;
+ struct sr_channel *probe;
int i;
char name[8];
}
static int config_probe_set(const struct sr_dev_inst *sdi,
- struct sr_probe *probe, unsigned int changes)
+ struct sr_channel *probe, unsigned int changes)
{
uint64_t probe_bit;
uint64_t trigger_mask;
struct dev_context *devc;
struct sr_serial_dev_inst *serial;
struct sr_dev_inst *sdi;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *devices = NULL, *l;
const char *conn = NULL, *serialcomm = NULL;
uint8_t buf[292];
static gint teleinfo_probe_compare(gconstpointer a, gconstpointer b)
{
- const struct sr_probe *probe = a;
+ const struct sr_channel *probe = a;
const char *name = b;
return strcmp(probe->name, name);
}
-static struct sr_probe *teleinfo_find_probe(struct sr_dev_inst *sdi,
+static struct sr_channel *teleinfo_find_probe(struct sr_dev_inst *sdi,
const char *name)
{
GSList *elem = g_slist_find_custom(sdi->probes, name,
struct dev_context *devc;
struct sr_datafeed_packet packet;
struct sr_datafeed_analog analog;
- struct sr_probe *probe;
+ struct sr_channel *probe;
devc = sdi->priv;
probe = teleinfo_find_probe(sdi, probe_name);
struct dev_context *devc;
struct sr_dev_inst *sdi;
struct sr_config *src;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *devices, *l;
const char *conn, *serialcomm;
struct sr_serial_dev_inst *serial;
struct drv_context *drvc;
struct sr_usb_dev_inst *usb;
struct sr_config *src;
- struct sr_probe *probe;
+ struct sr_channel *probe;
const char *conn;
drvc = udmms[dmm].di->priv;
struct drv_context *drvc;
struct dev_context *devc;
struct sr_dev_inst *sdi;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct sr_config *src;
GSList *usb_devices, *devices, *l;
int i;
struct drv_context *drvc;
struct dev_context *devc;
struct sr_dev_inst *sdi;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct libusb_device_descriptor des;
libusb_device **devlist;
GSList *devices;
static int configure_probes(const struct sr_dev_inst *sdi)
{
struct dev_context *devc;
- const struct sr_probe *probe;
+ const struct sr_channel *probe;
const GSList *l;
int probe_bit, stage, i;
char *tc;
stage = -1;
for (l = sdi->probes; l; l = l->next) {
- probe = (struct sr_probe *)l->data;
+ probe = (struct sr_channel *)l->data;
if (probe->enabled == FALSE)
continue;
probe_bit = 1 << (probe->index);
{
struct dev_context *devc;
const GSList *l;
- const struct sr_probe *probe;
+ const struct sr_channel *probe;
char *tc;
int type;
devc = sdi->priv;
for (l = sdi->probes; l; l = l->next) {
- probe = (struct sr_probe *)l->data;
+ probe = (struct sr_channel *)l->data;
if (probe->enabled == FALSE)
continue;
static GSList *scan(GSList *options)
{
struct sr_dev_inst *sdi;
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct drv_context *drvc;
struct dev_context *devc;
const struct zp_model *prof;
static int init(struct sr_input *in, const char *filename)
{
- struct sr_probe *probe;
+ struct sr_channel *probe;
int num_probes, i;
char name[SR_MAX_PROBENAME_LEN + 1];
char *param;
static int init(struct sr_input *in, const char *filename)
{
- struct sr_probe *probe;
+ struct sr_channel *probe;
int num_probes, i;
char name[SR_MAX_PROBENAME_LEN + 1];
char *param;
GIOStatus status;
gsize i, term_pos;
char probe_name[SR_MAX_PROBENAME_LEN + 1];
- struct sr_probe *probe;
+ struct sr_channel *probe;
char **columns;
gsize num_columns;
char *ptr;
static int init(struct sr_input *in, const char *filename)
{
- struct sr_probe *probe;
+ struct sr_channel *probe;
int num_probes, i;
char name[SR_MAX_PROBENAME_LEN + 1];
char *param;
static int init(struct sr_input *in, const char *filename)
{
- struct sr_probe *probe;
+ struct sr_channel *probe;
struct context *ctx;
char buf[40], probename[8];
int i;
SR_PROBE_SET_TRIGGER = 1 << 1,
};
-SR_PRIV struct sr_probe *sr_probe_new(int index, int type,
+SR_PRIV struct sr_channel *sr_probe_new(int index, int type,
gboolean enabled, const char *name);
/* Generic device instances */
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;
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;
/** 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);
static int init(struct sr_output *o)
{
struct context *ctx;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *l;
sr_spew("Initializing output module.");
const struct sr_datafeed_packet *packet, GString **out)
{
const struct sr_datafeed_analog *analog;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *l;
const float *fdata;
int i, p;
static int init(struct sr_output *o)
{
struct context *ctx;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *l;
GVariant *gvar;
static int init(struct sr_output *o)
{
struct context *ctx;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *l;
GVariant *gvar;
int num_probes;
static int init(struct sr_output *o)
{
struct context *ctx;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *l;
GVariant *gvar;
uint64_t samplerate;
static GString *gen_header(const struct sr_dev_inst *sdi, struct context *ctx)
{
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *l;
GString *s;
GVariant *gvar;
SR_PRIV int init(struct sr_output *o, int default_spl, enum outputmode mode)
{
struct context *ctx;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *l;
GVariant *gvar;
uint64_t samplerate;
static int init(struct sr_output *o)
{
struct context *ctx;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *l;
GVariant *gvar;
int num_probes, i;
struct zip_file *zf;
struct zip_stat zs;
struct sr_dev_inst *sdi;
- struct sr_probe *probe;
+ struct sr_channel *probe;
int ret, probenum, devcnt, i, j;
uint64_t tmp_u64, total_probes, enabled_probes, p;
char **sections, **keys, *metafile, *val;
SR_API int sr_session_save(const char *filename, const struct sr_dev_inst *sdi,
unsigned char *buf, int unitsize, int units)
{
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *l;
GVariant *gvar;
uint64_t samplerate;
{
GSList *l;
GVariant *gvar;
- struct sr_probe *probe;
+ struct sr_channel *probe;
int max_probes, probenum, i;
char **tokens, **triggerlist, *trigger, *tc;
const char *trigger_types;
for (i = 0; tokens[i]; i++) {
probenum = -1;
for (l = sdi->probes; l; l = l->next) {
- probe = (struct sr_probe *)l->data;
+ probe = (struct sr_channel *)l->data;
if (probe->enabled
&& !strncmp(probe->name, tokens[i],
strlen(probe->name))) {
GArray *srtest_get_enabled_logic_probes(const struct sr_dev_inst *sdi)
{
- struct sr_probe *probe;
+ struct sr_channel *probe;
GArray *probes;
GSList *l;