def __init__(self, reply_expected=False, tag=0xff,
                 dest_port=None, dest_cpu=None, src_port=7, src_cpu=31,
                 dest_x=None, dest_y=None, src_x=0, src_y=0, data=b''):
        """Create a new SDPPacket.

        Parameters
        ----------
        dest_x : int (0-255)
            x co-ordinate of the chip to which the packet should be sent.
        dest_y : int (0-255)
            y co-ordinate of the chip to which the packet should be sent.
        dest_cpu : int (0-17)
            Index of the core which should receive the packet.
        dest_port : int (0-7)
            Port which should receive the packet (0 is reserved for debugging).
        data : bytes
            Data to append to the packet.
        reply_expected : bool
            True if a response to this packet is expected, if False (the
            default) no response is expected.

        Other Parameters
        ----------------
        tag : int
            IPTag used to determine where to send packets over IPv4. The
            default (``0xff``) indicates a packet being transmitted into
            SpiNNaker.
        src_port : int
            Source port of the packet.
        src_cpu : int
            Source CPU of the packet.
        src_x : int
            Source x co-ordinate of the packet.
        src_y : int
            Source y co-ordinate of the packet.

        .. note::
            The default values for `tag`, `src_port`, `src_cpu`, `src_x` and
            `src_y` indicate a packet being transmitted to SpiNNaker over the
            network and will not require changing for this use.
        """
        self.reply_expected = reply_expected
        self.tag = tag
        self.dest_port = dest_port
        self.dest_cpu = dest_cpu
        self.src_port = src_port
        self.src_cpu = src_cpu
        self.dest_x = dest_x
        self.dest_y = dest_y
        self.src_x = src_x
        self.src_y = src_y
        self.data = data
def __init__ ( self , reply_expected = False , tag = 0xff , dest_port = None , dest_cpu = None , src_port = 7 , src_cpu = 31 , dest_x = None , dest_y = None , src_x = 0 , src_y = 0 , data = b'' ) : self . reply_expected = reply_expected self . tag = tag self . dest_port = dest_port self . dest_cpu = dest_cpu self . src_port = src_port self . src_cpu = src_cpu self . dest_x = dest_x self . dest_y = dest_y self . src_x = src_x self . src_y = src_y self . data = data
Create a new SDPPacket.

        Parameters
        ----------
        dest_x : int (0-255)
            x co-ordinate of the chip to which the packet should be sent.
        dest_y : int (0-255)
            y co-ordinate of the chip to which the packet should be sent.
        dest_cpu : int (0-17)
            Index of the core which should receive the packet.
        dest_port : int (0-7)
            Port which should receive the packet (0 is reserved for debugging).
        data : bytes
            Data to append to the packet.
        reply_expected : bool
            True if a response to this packet is expected, if False (the
            default) no response is expected.

        Other Parameters
        ----------------
        tag : int
            IPTag used to determine where to send packets over IPv4. The
            default (``0xff``) indicates a packet being transmitted into
            SpiNNaker.
        src_port : int
            Source port of the packet.
        src_cpu : int
            Source CPU of the packet.
        src_x : int
            Source x co-ordinate of the packet.
        src_y : int
            Source y co-ordinate of the packet.

        .. note::
            The default values for `tag`, `src_port`, `src_cpu`, `src_x` and
            `src_y` indicate a packet being transmitted to SpiNNaker over the
            network and will not require changing for this use.