support for frame begin/end packets
This commit is contained in:
parent
3b533202c8
commit
6ea7669c9d
|
@ -428,6 +428,12 @@ static void datafeed_dump(struct sr_datafeed_packet *packet)
|
||||||
case SR_DF_END:
|
case SR_DF_END:
|
||||||
sr_dbg("bus: received SR_DF_END");
|
sr_dbg("bus: received SR_DF_END");
|
||||||
break;
|
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:
|
default:
|
||||||
sr_dbg("bus: received unknown packet type %d", packet->type);
|
sr_dbg("bus: received unknown packet type %d", packet->type);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -153,6 +153,8 @@ enum {
|
||||||
SR_DF_META_LOGIC,
|
SR_DF_META_LOGIC,
|
||||||
SR_DF_ANALOG,
|
SR_DF_ANALOG,
|
||||||
SR_DF_META_ANALOG,
|
SR_DF_META_ANALOG,
|
||||||
|
SR_DF_FRAME_BEGIN,
|
||||||
|
SR_DF_FRAME_END,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct sr_datafeed_packet {
|
struct sr_datafeed_packet {
|
||||||
|
@ -321,6 +323,12 @@ enum {
|
||||||
*/
|
*/
|
||||||
SR_HWCAP_LIMIT_SAMPLES,
|
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
|
* The device supports continuous sampling, i.e. neither a time limit
|
||||||
* nor a sample number limit has to be supplied, it will just acquire
|
* nor a sample number limit has to be supplied, it will just acquire
|
||||||
|
|
Loading…
Reference in New Issue