support for frame begin/end packets

This commit is contained in:
Bert Vermeulen 2012-04-30 19:55:06 +02:00
parent 3b533202c8
commit 6ea7669c9d
2 changed files with 14 additions and 0 deletions

View File

@ -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;

View 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