MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / get_samples

Method get_samples

DSView/pv/data/dsosnapshot.cpp:282–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282const uint8_t *DsoSnapshot::get_samples(int64_t start_sample, int64_t end_sample, uint16_t ch_index)
283{
284 std::lock_guard<std::mutex> lock(_mutex);
285
286 assert(start_sample >= 0);
287 assert(start_sample < (int64_t)_sample_count);
288 assert(end_sample >= 0);
289 assert(end_sample < (int64_t)_sample_count);
290 assert(start_sample <= end_sample);
291
292 int order = get_ch_order(ch_index);
293
294 if (order == -1){
295 dsv_err("The channel index is not exist:%d", ch_index);
296 assert(false);
297 }
298
299 return (uint8_t*)_ch_data[order] + start_sample;
300}
301
302void DsoSnapshot::get_envelope_section(EnvelopeSection &s,
303 uint64_t start, uint64_t end, float min_length, int probe_index)

Callers 12

save_dsoMethod · 0.45
export_execMethod · 0.45
calc_fftMethod · 0.45
decode_dataMethod · 0.45
calc_mathMethod · 0.45
paint_prepareMethod · 0.45
paint_traceMethod · 0.45
get_pointMethod · 0.45
get_voltageMethod · 0.45
get_pointMethod · 0.45
paint_traceMethod · 0.45
paint_midMethod · 0.45

Calls

no outgoing calls

Tested by 1

calc_fftMethod · 0.36