#include "command.h"
static struct fx2lafw_profile supported_fx2[] = {
- /* USBee AX */
+ /* CWAV USBee AX
+ * EE Electronics ESLA201A
+ */
{ 0x08a9, 0x0014, "CWAV", "USBee AX", NULL, 8 },
{ 0, 0, 0, 0, 0, 0 }
};
break;
intf_dsc = &(conf_dsc->interface[0].altsetting[0]);
- if (intf_dsc->bNumEndpoints != 3)
- /* Need exactly 3 end points. */
+ if (intf_dsc->bNumEndpoints != 2)
+ /* Need exactly 2 end points. */
break;
if ((intf_dsc->endpoint[0].bEndpointAddress & 0x8f) !=
- (1 | LIBUSB_ENDPOINT_OUT))
- /* The first endpoint should be 1 (outbound). */
- break;
-
- if ((intf_dsc->endpoint[1].bEndpointAddress & 0x8f) !=
- (2 | LIBUSB_ENDPOINT_IN))
- /* The second endpoint should be 2 (inbound). */
+ (2 | LIBUSB_ENDPOINT_IN)) // 0x82
+ /* The first endpoint should be 2 (inbound). */
break;
/* TODO: Check the debug channel... */
return SR_ERR_MALLOC;
}
- if ((err = command_start_acquisition (ctx->usb->devhdl)) != SR_OK) {
- return err;
- }
-
/* Start with 2K transfer, subsequently increased to 4K. */
size = 2048;
for (i = 0; i < NUM_SIMUL_TRANSFERS; i++) {
g_free(header);
g_free(packet);
+ if ((err = command_start_acquisition (ctx->usb->devhdl,
+ ctx->cur_samplerate)) != SR_OK) {
+ return err;
+ }
+
return SR_OK;
}