]> sigrok.org Git - libsigrok.git/commitdiff
support for frame begin/end packets
authorBert Vermeulen <redacted>
Mon, 30 Apr 2012 17:55:06 +0000 (19:55 +0200)
committerBert Vermeulen <redacted>
Wed, 30 May 2012 21:56:12 +0000 (23:56 +0200)
session.c
sigrok.h.in

index 4bf96b8ccfe20f21f0ce486670e1aa5f0c1a625e..5e1d54a1e86f5d2b8f9dac4129700bab08c823c2 100644 (file)
--- a/session.c
+++ b/session.c
@@ -428,6 +428,12 @@ static void datafeed_dump(struct sr_datafeed_packet *packet)
        case SR_DF_END:
                sr_dbg("bus: received SR_DF_END");
                break;
+       case SR_DF_FRAME_BEGIN:
+               sr_dbg("bus: received SR_DF_FRAME_BEGIN");
+               break;
+       case SR_DF_FRAME_END:
+               sr_dbg("bus: received SR_DF_FRAME_END");
+               break;
        default:
                sr_dbg("bus: received unknown packet type %d", packet->type);
                break;
index 442136ec72d3cc50826db8f675d32b5d937d7d0c..2b57bcfceeccc7574847d997582983f8d88022d9 100644 (file)
@@ -153,6 +153,8 @@ enum {
        SR_DF_META_LOGIC,
        SR_DF_ANALOG,
        SR_DF_META_ANALOG,
+       SR_DF_FRAME_BEGIN,
+       SR_DF_FRAME_END,
 };
 
 struct sr_datafeed_packet {
@@ -321,6 +323,12 @@ enum {
         */
        SR_HWCAP_LIMIT_SAMPLES,
 
+       /**
+        * The device supports setting a frame limit, i.e. how many
+        * frames should be acquired.
+        */
+       SR_HWCAP_LIMIT_FRAMES,
+
        /**
         * The device supports continuous sampling, i.e. neither a time limit
         * nor a sample number limit has to be supplied, it will just acquire