AC_ARG_ENABLE(zeroplus-logic-cube,
AC_HELP_STRING([--enable-zeroplus-logic-cube],
- [enable Zeroplus Logic Cube support [default=yes]]),
+ [enable ZEROPLUS Logic Cube support [default=yes]]),
[LA_ZEROPLUS_LOGIC_CUBE="$enableval"],
[LA_ZEROPLUS_LOGIC_CUBE=yes])
AM_CONDITIONAL(LA_ZEROPLUS_LOGIC_CUBE, test x$LA_ZEROPLUS_LOGIC_CUBE = xyes)
if test "x$LA_ZEROPLUS_LOGIC_CUBE" = "xyes"; then
- AC_DEFINE(HAVE_LA_ZEROPLUS_LOGIC_CUBE, 1, [Zeroplus Logic Cube support])
+ AC_DEFINE(HAVE_LA_ZEROPLUS_LOGIC_CUBE, 1, [ZEROPLUS Logic Cube support])
fi
# Checks for libraries.
echo " - fx2lafw (for FX2 LAs)........... $LA_FX2LAFW"
echo " - Link MSO-19..................... $LA_LINK_MSO19"
echo " - Openbench Logic Sniffer......... $LA_OLS"
-echo " - Zeroplus Logic Cube............. $LA_ZEROPLUS_LOGIC_CUBE"
+echo " - ZEROPLUS Logic Cube............. $LA_ZEROPLUS_LOGIC_CUBE"
echo
#include "analyzer.h"
#define USB_VENDOR 0x0c12
-#define USB_VENDOR_NAME "Zeroplus"
-#define USB_MODEL_NAME "Logic Cube"
-#define USB_MODEL_VERSION ""
+
+#define VENDOR_NAME "ZEROPLUS"
+#define MODEL_NAME "Logic Cube LAP-C"
+#define MODEL_VERSION NULL
#define NUM_PROBES 16
#define USB_INTERFACE 0
if (!(des->idProduct == zeroplus_models[i].pid))
continue;
- sr_info("zp: Found ZeroPlus device 0x%04x (%s)",
+ sr_info("zp: Found ZEROPLUS device 0x%04x (%s)",
des->idProduct, zeroplus_models[i].model_name);
ctx->num_channels = zeroplus_models[i].channels;
ctx->memory_size = zeroplus_models[i].sample_depth * 1024;
}
if (ctx->num_channels == 0) {
- sr_err("zp: Unknown ZeroPlus device 0x%04x",
+ sr_err("zp: Unknown ZEROPLUS device 0x%04x",
des->idProduct);
return -2;
}
return 0;
}
- /* Find all ZeroPlus analyzers and add them to device list. */
+ /* Find all ZEROPLUS analyzers and add them to device list. */
devcnt = 0;
libusb_get_device_list(usb_context, &devlist); /* TODO: Errors. */
if (des.idVendor == USB_VENDOR) {
/*
- * Definitely a Zeroplus.
+ * Definitely a ZEROPLUS.
* TODO: Any way to detect specific model/version in
- * the zeroplus range?
+ * the ZEROPLUS range?
*/
/* Register the device with libsigrok. */
if (!(sdi = sr_dev_inst_new(devcnt,
- SR_ST_INACTIVE, USB_VENDOR_NAME,
- USB_MODEL_NAME, USB_MODEL_VERSION))) {
+ SR_ST_INACTIVE, VENDOR_NAME,
+ MODEL_NAME, MODEL_VERSION))) {
sr_err("zp: %s: sr_dev_inst_new failed",
__func__);
return 0;
SR_PRIV struct sr_dev_driver zeroplus_logic_cube_driver_info = {
.name = "zeroplus-logic-cube",
- .longname = "Zeroplus Logic Cube LAP-C series",
+ .longname = "ZEROPLUS Logic Cube LAP-C series",
.api_version = 1,
.init = hw_init,
.cleanup = hw_cleanup,