The Data32bitPacket is used to send 32bit data instructions to the uC all availible instructions are defined in the Data32bitHeader
More...
The Data32bitPacket is used to send 32bit data instructions to the uC all availible instructions are defined in the Data32bitHeader
Definition at line 125 of file packet.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
header, |
|
|
|
value = 0 , |
|
|
|
time = 0 |
|
) |
| |
constructor for the Data32bitPacket
- Parameters
-
header | (Data32bitHeader) the header of the packet |
value | (uint_32) the value to be sent (optional, default = 0) |
time | (uint_32) the time of execution of the packet (optional, default = 0) |
Reimplemented from Packet.
Definition at line 130 of file packet.py.
◆ __str__()
◆ from_bytearray()
def from_bytearray |
( |
|
self, |
|
|
|
byte_array |
|
) |
| |
◆ set_header()
def set_header |
( |
|
self, |
|
|
|
header |
|
) |
| |
setter method for the header attribute
- Parameters
-
header | (byte/uint_8) the header of the packet |
Reimplemented from Packet.
Definition at line 147 of file packet.py.
◆ set_value()
def set_value |
( |
|
self, |
|
|
|
value |
|
) |
| |
◆ to_bytearray()
placeholder for converting the package to a bytearray
- Returns
- : the packet as a bytearray
Reimplemented from Packet.
Definition at line 159 of file packet.py.
◆ value()
getter method for the value attribute
- Returns
- : the value of the packet
Definition at line 141 of file packet.py.
The documentation for this class was generated from the following file: