pyecsca.sca.trace_set.inspector module

class pyecsca.sca.trace_set.inspector.SampleCoding[source]

Bases: enum.IntEnum

An enumeration.

Float16 = 18
Float32 = 20
Float8 = 17
Int16 = 2
Int32 = 4
Int8 = 1
dtype()[source]
class pyecsca.sca.trace_set.inspector.Parsers[source]

Bases: object

static read_bool(bytes)[source]
static read_float(bytes)[source]
static read_int(bytes)[source]
static read_str(bytes)[source]
static write_bool(b, length=1)[source]
static write_float(f, length=None)[source]
static write_int(i, length=1)[source]
static write_str(s, length=None)[source]
class pyecsca.sca.trace_set.inspector.InspectorTraceSet(input=None, keep_raw_traces=True)[source]

Bases: pyecsca.sca.trace_set.base.TraceSet

Riscure Inspector trace set format (.trs).

data_space = 0
description = None
external_clock = False
external_clock_frequencty = 0
external_clock_multiplier = 0
external_clock_phase_shift = 0
external_clock_resampler_enabled = False
external_clock_resampler_mask = 0
external_clock_threshold = 0
external_clock_time_base = 0
filter_frequency = 0
filter_range = 0
filter_type = 0
global_title = 'title'
log_scale = 0
raw

The raw (unscaled) traces, as read from the trace set file.

Return type:Optional[List[Trace]]
sampling_frequency

The sampling frequency of the trace set.

Return type:int
save(output)[source]

Save this trace set into a file.

Parameters:output (Union[Path, str, Binaryio]) – An output path or file-like object.
scope_coupling = 0
scope_id = None
scope_impedance = 0
scope_offset = 0
scope_range = 0
title_space = 0
trace_offset = 0
x_label = None
x_offset = 0
x_scale = 1
y_label = None
y_scale = 1