Bases: object
Represents the header of an SDP message. Each optional parameter in the constructor can be set to a value other than None once, after which it is immutable. It is an error to set a parameter that is not currently None.
| Parameters: |
|
|---|---|
| Raises spinnman.exceptions.SpinnmanInvalidParameterException: | |
If one ofthe parameters is not valid |
|
Attributes
| destination_chip_x | The x-coordinate of the destination chip of the packet |
| destination_chip_y | The y-coordinate of the destination chip of the packet |
| destination_cpu | The core on the destination chip |
| destination_port | The destination port of the packet |
| flags | The flags of the packet |
| source_chip_x | The x-coordinate of the source chip of the packet |
| source_chip_y | The y-coordinate of the source chip of the packet |
| source_cpu | The core on the source chip |
| source_port | The source port of the packet |
| tag | The tag of the packet |
Methods
| read_sdp_header(byte_reader) | Read an SDP header from a byte_reader |
| write_sdp_header(byte_writer) | Write the SDP header to a byte_writer |
Detailed Methods
Read an SDP header from a byte_reader
| Parameters: | byte_reader (spinnman.data.abstract_byte_reader.AbstractByteReader) – The reader to read the data from |
|---|---|
| Returns: | Nothing is returned |
| Return type: | None |
| Raises: |
|
Write the SDP header to a byte_writer
| Parameters: | byte_writer (spinnman.data.abstract_byte_writer.AbstractByteWriter) – The writer to write the data to |
|---|---|
| Returns: | Nothing is returned |
| Return type: | None |
| Raises: |
|