pyecsca.sca.target.serial module¶
Provides an abstract serial target, that communicates by writing and reading a stream of bytes.
- class SerialTarget[source]¶
Bases:
Target
Serial target.
- abstract write(data)[source]¶
Write the
data
bytes to the target’s serial input.- Parameters:
data¶ (
bytes
) – The data to write.- Return type:
None
- abstract read(num=0, timeout=0)[source]¶
Read upto
num
bytes or untiltimeout
milliseconds from the target’s serial output.
- abstract connect()¶
Connect to the target device.
- abstract disconnect()¶
Disconnect from the target device.