* ASIX SIGMA Logic Analyzer Driver
*/
-#include "config.h"
#include <glib.h>
#include <glib/gstdio.h>
#include <ftdi.h>
tosend = MIN(2048, n - sent);
packet.type = SR_DF_LOGIC;
- /* TODO: fill in timeoffset and duration */
- packet.timeoffset = 0;
- packet.duration = 0;
packet.payload = &logic;
logic.length = tosend * sizeof(uint16_t);
logic.unitsize = 2;
if (tosend > 0) {
packet.type = SR_DF_LOGIC;
- /* TODO: fill in timeoffset and duration */
- packet.timeoffset = 0;
- packet.duration = 0;
packet.payload = &logic;
logic.length = tosend * sizeof(uint16_t);
logic.unitsize = 2;
/* Only send trigger if explicitly enabled. */
if (sigma->use_triggers) {
packet.type = SR_DF_TRIGGER;
- /* TODO: fill in timeoffset only */
- packet.timeoffset = 0;
- packet.duration = 0;
sr_session_bus(sigma->session_id, &packet);
}
}
if (tosend > 0) {
packet.type = SR_DF_LOGIC;
- /* TODO: fill in timeoffset and duration */
- packet.timeoffset = 0;
- packet.duration = 0;
packet.payload = &logic;
logic.length = tosend * sizeof(uint16_t);
logic.unitsize = 2;
sigma->state.state = SIGMA_DOWNLOAD;
}
-struct sr_device_plugin asix_sigma_plugin_info = {
+SR_PRIV struct sr_device_plugin asix_sigma_plugin_info = {
.name = "asix-sigma",
.longname = "ASIX SIGMA",
.api_version = 1,