From: Bert Vermeulen Date: Mon, 30 Apr 2012 17:55:06 +0000 (+0200) Subject: support for frame begin/end packets X-Git-Tag: dsupstream~951 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6ea7669c9dc3dd59ad88869e29f5411114196f34;p=libsigrok.git support for frame begin/end packets --- diff --git a/session.c b/session.c index 4bf96b8c..5e1d54a1 100644 --- 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; diff --git a/sigrok.h.in b/sigrok.h.in index 442136ec..2b57bcfc 100644 --- a/sigrok.h.in +++ b/sigrok.h.in @@ -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