]> sigrok.org Git - libsigrok.git/blobdiff - bindings/cxx/classes.cpp
input/csv: Send larger datafeed chunks, to speedup import
[libsigrok.git] / bindings / cxx / classes.cpp
index 5c0ae3d0a0fc7ccbdc3756f49aaa511cdfa6d45c..03b81edb3cc0da0b0256ea751199e976cc5aa631 100644 (file)
@@ -768,7 +768,7 @@ vector<shared_ptr<Channel>> ChannelGroup::channels()
        return result;
 }
 
-Trigger::Trigger(shared_ptr<Context> context, string name) : 
+Trigger::Trigger(shared_ptr<Context> context, string name) :
        _structure(sr_trigger_new(name.c_str())),
        _context(move(context))
 {
@@ -812,7 +812,7 @@ TriggerStage::TriggerStage(struct sr_trigger_stage *structure) :
 TriggerStage::~TriggerStage()
 {
 }
-       
+
 int TriggerStage::number() const
 {
        return _structure->stage;
@@ -1212,6 +1212,11 @@ void *Analog::data_pointer()
        return _structure->data;
 }
 
+void Analog::get_data_as_float(float *dest)
+{
+       check(sr_analog_to_float(_structure, dest));
+}
+
 unsigned int Analog::num_samples() const
 {
        return _structure->num_samples;