struct analog_probe {
uint8_t att;
- uint8_t res;
- uint64_t val;
+ uint8_t res; /* Needs to be a power of 2, FIXME */
+ uint16_t val; /* Max hardware ADC width is 16bits */
};
struct analog_sample {
- uint16_t num_probes;
+ uint8_t num_probes; /* Max hardware probes is 256 */
struct analog_probe probes[];
};
struct device_plugin *plugin;
/* A plugin may handle multiple devices of the same type */
int plugin_index;
+ uint8_t probe_type;
/* List of struct probe* */
GSList *probes;
/* Data acquired by this device, if any */
struct probe {
int index;
- int type;
gboolean enabled;
char *name;
char *trigger;
DI_CUR_SAMPLERATE,
/* Supported pattern generator modes */
DI_PATTERNMODES,
+ /* Probes type, DF_ANALOG needs this to be PROBE_TYPE_ANALOG */
+ DI_PROBE_TYPE,
};
/*