};
struct channel_s {
- /* TODO */
+ int bwlimit_enabled;
+ char coupling[32];
+ int displayed;
+ int inverted;
+ double offset;
+ double probe;
+ double scale;
+ int filter_enabled;
+ int memory_depth;
+ char vernier[32];
};
struct scope {
struct {
- struct usb_dev_handle *dev;
+ struct libusb_device_handle *dev;
int ep_bulk_out;
int ep_bulk_in;
unsigned int wMaxPacketSize_in;
} timebase;
struct {
+ char mode[32];
+
/* TODO */
} trigger;
} la;
struct {
- /* TODO */
+ int displayed;
} math;
+
+ struct {
+ int displayed;
+ } fft;
} status;
+
char idn[128];
};
double scope_get_double(struct scope *sc, char*cmd);
void update_scope_measurements(struct scope *sc);
int update_scope_status(struct scope *sc);
+char *scope_get_data(struct scope *sc, char *source, int *len);