* THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <config.h>
#include <assert.h>
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
#include "libsigrok-internal.h"
#include "analyzer.h"
#include "gl_usb.h"
{ 1, FREQ_SCALE_KHZ, 64, 5, 5 },
{ 500, FREQ_SCALE_HZ, 64, 10, 5 },
{ 100, FREQ_SCALE_HZ, 68, 5, 8 },
- { 0, 0, 0, 0, 0 }
+ ALL_ZERO
};
int i;
}
SR_PRIV int analyzer_read_data(libusb_device_handle *devh, void *buffer,
- unsigned int size)
+ unsigned int size)
{
return gl_read_bulk(devh, buffer, size);
}
switch (match->match) {
case SR_TRIGGER_ZERO:
g_trigger_status[channel / 4] |= 2 << (channel % 4 * 2);
+ break;
case SR_TRIGGER_ONE:
g_trigger_status[channel / 4] |= 1 << (channel % 4 * 2);
break;
}
g_filter_status[i] |=
- 1 << ((2 * channel) + (type == FILTER_LOW ? 1 : 0));
+ 1 << ((2 * channel) + (type == FILTER_LOW ? 1 : 0));
g_filter_enable = 1;
}