20 #ifndef PULSEVIEW_PV_DATA_ANALOGSEGMENT_HPP 21 #define PULSEVIEW_PV_DATA_ANALOGSEGMENT_HPP 30 using std::enable_shared_from_this;
70 static const unsigned int ScaleStepCount = 10;
81 void append_interleaved_samples(
const float *
data,
82 size_t sample_count,
size_t stride);
84 float get_sample(int64_t sample_num)
const;
85 void get_samples(int64_t start_sample, int64_t end_sample,
float* dest)
const;
87 const pair<float, float> get_min_max()
const;
92 uint64_t start, uint64_t end,
float min_length)
const;
97 void append_payload_to_envelope_levels();
106 friend struct AnalogSegmentTest::Basic;
112 #endif // PULSEVIEW_PV_DATA_ANALOGSEGMENT_HPP
static const uint64_t EnvelopeDataUnit
static const int EnvelopeScalePower
static const int EnvelopeScaleFactor
static const float LogEnvelopeScaleFactor