Bases: spinnman.messages.eieio.abstract_messages.abstract_eieio_message.AbstractEIEIOMessage
An EIEIO Data message
Parameters: |
|
---|
Attributes
eieio_header | |
is_next_element | Determine if there is another element to be read |
max_n_elements | The maximum number of elements that can fit in the packet |
n_elements | The number of elements in the packet |
next_element | The next element to be read, or None if no more elements. |
size | The size of the packet with the current contents |
Methods
add_element(element) | Add an element to the message. |
min_packet_length(eieio_type[, is_prefix, ...]) | The minimum length of a message with the given header, in bytes |
write_eieio_message(byte_writer) |
Detailed Methods
Add an element to the message. The correct type of element must be added, depending on the header values
Parameters: | element (spinnman.messages.eieio.data_messages.abstract_eieio_data_element.AbstractEIEIODataElement) – The element to be added |
---|---|
Raises: |
|
The minimum length of a message with the given header, in bytes
Parameters: |
|
---|---|
Returns: | The minimum size of the packet in bytes |
Return type: | int |