This further simplifies callers, which need not care about flushing
previously queued samples before a trigger packet is sent. The queue
itself handles the order of packet initiation.
return SR_OK;
}
+SR_API int feed_queue_logic_send_trigger(struct feed_queue_logic *q)
+{
+ int ret;
+
+ ret = feed_queue_logic_flush(q);
+ if (ret != SR_OK)
+ return ret;
+
+ ret = std_session_send_df_trigger(q->sdi);
+ if (ret != SR_OK)
+ return ret;
+
+ return SR_OK;
+}
+
SR_API void feed_queue_logic_free(struct feed_queue_logic *q)
{
SR_API int feed_queue_logic_submit(struct feed_queue_logic *q,
const uint8_t *data, size_t count);
SR_API int feed_queue_logic_flush(struct feed_queue_logic *q);
+SR_API int feed_queue_logic_send_trigger(struct feed_queue_logic *q);
SR_API void feed_queue_logic_free(struct feed_queue_logic *q);
SR_API struct feed_queue_analog *feed_queue_analog_alloc(