STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
gui.Reader Class Reference
Inheritance diagram for gui.Reader:
[legend]
Collaboration diagram for gui.Reader:
[legend]

Public Member Functions

 __init__ (self, str port, int baud)
 stop (self)
 run (self)

Public Attributes

 port = port
 baud = baud
 buf = bytearray()
 ser = None
int packets_received = 0
int total_samples = 0

Static Public Attributes

 samples_ready
 status = QtCore.pyqtSignal(str)
 raw_bytes = QtCore.pyqtSignal(bytes)

Protected Member Functions

 _find_and_parse_packets (self)

Protected Attributes

bool _stop = False

Detailed Description

Definition at line 59 of file gui.py.

Constructor & Destructor Documentation

◆ __init__()

gui.Reader.__init__ ( self,
str port,
int baud )

Definition at line 66 of file gui.py.

References __init__().

Referenced by __init__().

Member Function Documentation

◆ _find_and_parse_packets()

gui.Reader._find_and_parse_packets ( self)
protected
Find magic bytes and parse complete packets

Definition at line 84 of file gui.py.

References buf, find(), packets_received, and total_samples.

Referenced by run().

◆ run()

gui.Reader.run ( self)

Definition at line 131 of file gui.py.

References _find_and_parse_packets(), _stop, baud, buf, emit(), port, raw_bytes, read(), samples_ready, ser, and status.

◆ stop()

gui.Reader.stop ( self)

Definition at line 76 of file gui.py.

References _stop, and ser.

Member Data Documentation

◆ _stop

◆ baud

gui.Reader.baud = baud

Definition at line 69 of file gui.py.

Referenced by run().

◆ buf

gui.Reader.buf = bytearray()

◆ packets_received

int gui.Reader.packets_received = 0

Definition at line 73 of file gui.py.

Referenced by gui.App._connect(), _find_and_parse_packets(), and gui.App._on_samples().

◆ port

◆ raw_bytes

gui.Reader.raw_bytes = QtCore.pyqtSignal(bytes)
static

Definition at line 64 of file gui.py.

Referenced by run().

◆ samples_ready

gui.Reader.samples_ready
static
Initial value:
= QtCore.pyqtSignal(
list
)

Definition at line 60 of file gui.py.

Referenced by run().

◆ ser

gui.Reader.ser = None

Definition at line 72 of file gui.py.

Referenced by run(), and stop().

◆ status

gui.Reader.status = QtCore.pyqtSignal(str)
static

Definition at line 63 of file gui.py.

Referenced by run(), and backend.routers.layerx.Job.view().

◆ total_samples

int gui.Reader.total_samples = 0

Definition at line 74 of file gui.py.

Referenced by _find_and_parse_packets().


The documentation for this class was generated from the following file:
  • firmware/ADC_Testing/Simple_Test_Adnan/gui.py