SR_MQ_TEMPERATURE,
SR_MQ_FREQUENCY,
SR_MQ_DUTY_CYCLE,
+ SR_MQ_CONTINUITY,
};
/* sr_datafeed_analog.unit values */
/** The device supports setting/changing its samplerate. */
SR_HWCAP_SAMPLERATE,
- /* TODO: Better description? Rename to PROBE_AND_TRIGGER_CONFIG? */
- /** The device supports setting a probe mask. */
- SR_HWCAP_PROBECONFIG,
-
/** The device supports setting a pre/post-trigger capture ratio. */
SR_HWCAP_CAPTURE_RATIO,
/* Device info IDs */
enum {
- /* struct sr_dev_inst for this specific device */
- /* TODO: obsolete */
- SR_DI_INST,
/* A list of options supported by the driver. */
SR_DI_HWOPTS,
/* A list of capabilities supported by the device. */
int (*init) (void);
int (*cleanup) (void);
GSList *(*scan) (GSList *options);
+ GSList *(*dev_list) (void);
+ int (*dev_clear) (void);
/* Device-specific */
int (*dev_open) (struct sr_dev_inst *sdi);
void *cb_data);
/* Dynamic */
- GSList *instances;
+ void *priv;
};
struct sr_session {
/* list of sr_receive_data_callback_t */
GSList *datafeed_callbacks;
GTimeVal starttime;
- gboolean running;
unsigned int num_sources;