]> sigrok.org Git - libsigrok.git/commitdiff
update plugins and cli to use new DF_HEADER
authorDaniel Ribeiro <redacted>
Mon, 10 Jan 2011 17:12:38 +0000 (15:12 -0200)
committerDaniel Ribeiro <redacted>
Mon, 10 Jan 2011 17:12:38 +0000 (15:12 -0200)
hardware/asix-sigma/asix-sigma.c
hardware/demo/demo.c
hardware/openbench-logic-sniffer/ols.c
hardware/saleae-logic/saleae-logic.c
hardware/zeroplus-logic-cube/zeroplus.c
input/input_binary.c

index 09c8799301f8a9c58cd013993b46271c2b8dd808..d4d9fddfdaf6a765ffc50c52d134c832b8008549 100644 (file)
@@ -1219,7 +1219,8 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
        gettimeofday(&header.starttime, NULL);
        header.samplerate = cur_samplerate;
        header.protocol_id = PROTO_RAW;
-       header.num_probes = num_probes;
+       header.num_logic_probes = num_probes;
+       header.num_analog_probes = 0;
        session_bus(session_device_id, &packet);
 
        /* Add capture source. */
index cb627ef56a8947f3ca12cde7445e38922334db64..f3f71fa5728ec49a59f74400b3e39c9d29743266 100644 (file)
@@ -318,7 +318,8 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
        gettimeofday(&header->starttime, NULL);
        header->samplerate = cur_samplerate;
        header->protocol_id = PROTO_RAW;
-       header->num_probes = NUM_PROBES;
+       header->num_logic_probes = NUM_PROBES;
+       header->num_analog_probes = 0;
        session_bus(session_device_id, packet);
        free(header);
        free(packet);
index 0e7914570527d8056f17338617e77cb8a4ba620b..7f44788e4a012d2a2742aaaaee894dffdc0f13c6 100644 (file)
@@ -760,7 +760,8 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
        gettimeofday(&header->starttime, NULL);
        header->samplerate = cur_samplerate;
        header->protocol_id = PROTO_RAW;
-       header->num_probes = NUM_PROBES;
+       header->num_logic_probes = NUM_PROBES;
+       header->num_analog_probes = 0;
        session_bus(session_device_id, packet);
        g_free(header);
        g_free(packet);
index b80808db35dc49045cb52a74195fb1afa84b632b..f89d3ee2c29b96f27024246e7740bb6e07ad22e9 100644 (file)
@@ -713,7 +713,8 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
        gettimeofday(&header->starttime, NULL);
        header->samplerate = cur_samplerate;
        header->protocol_id = PROTO_RAW;
-       header->num_probes = NUM_PROBES;
+       header->num_logic_probes = NUM_PROBES;
+       header->num_analog_probes = 0;
        session_bus(session_device_id, packet);
        g_free(header);
        g_free(packet);
index eef93cbfe265e592f187c578105484886f5873c9..e034dfcc24f588f0b4bcd0441287a93c2b22928a 100644 (file)
@@ -512,7 +512,8 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
        gettimeofday(&header.starttime, NULL);
        header.samplerate = cur_samplerate;
        header.protocol_id = PROTO_RAW;
-       header.num_probes = num_channels;
+       header.num_logic_probes = num_channels;
+       header.num_analog_probes = 0;
        session_bus(session_device_id, &packet);
 
        buf = g_malloc(PACKET_SIZE);
index 7c9f96ba9f3d9a99bfa4b42a8344260f879b4b7e..2f1462d07dc5f9424e34bd308d35224c9466ef31 100644 (file)
@@ -48,7 +48,8 @@ static int in_loadfile(const char *filename)
        device = device_new(NULL, 0, num_probes);
 
        header.feed_version = 1;
-       header.num_probes = num_probes;
+       header.num_logic_probes = num_probes;
+       header.num_analog_probes = 0; /* FIXME */
        header.protocol_id = PROTO_RAW;
        header.samplerate = 0;
        gettimeofday(&header.starttime, NULL);