packet
Packetized data streams.
Packet
Bases: StructLayout
Payload shape for a packetized data stream.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_shape
|
ShapeLike
|
Shape of a data token. |
8
|
semantics
|
Semantics
|
Semantics of the packetized data stream. |
LAST
|
Source code in katsuo/stream/packet.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
Semantics
Bases: Enum
Semantics of the packetized data stream.
Source code in katsuo/stream/packet.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
END = enum.auto()
class-attribute
instance-attribute
Payload has an end field that's asserted during a separate transfer after the last data transfer of a packet.
FIRST = enum.auto()
class-attribute
instance-attribute
Payload has a first field that's asserted during the first data transfer of a packet.
FIRST_LAST = enum.auto()
class-attribute
instance-attribute
Payload has both first and last fields.
LAST = enum.auto()
class-attribute
instance-attribute
Payload has a last field that's asserted during the last data transfer of a packet.
has_end
property
True if the semantics includes an end field.
has_first
property
True if the semantics includes a first field.
has_last
property
True if the semantics includes a last field.