SpiNNFrontEndCommon  7.4.0
Common support code for user-facing front end systems.
sdp_no_scp.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019 The University of Manchester
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
19 #ifndef _SDP_NO_SCP_H_
20 #define _SDP_NO_SCP_H_
21 
23 enum {
28 };
29 
31 typedef struct sdp_msg_pure_data { // SDP message (=292 bytes)
32  struct sdp_msg *next;
33  uint16_t length;
34  uint16_t checksum;
35 
36  // next part must match sdp_hdr_t
37  uint8_t flags;
38  uint8_t tag;
39  uint8_t dest_port;
40  uint8_t srce_port;
41  uint16_t dest_addr;
42  uint16_t srce_addr;
43 
46 
47  uint32_t _PAD; // Private padding
49 
50 #endif // _SDP_NO_SCP_H_
uint8_t flags
SDP flag byte; first byte actually sent.
Definition: sdp_no_scp.h:37
uint8_t srce_port
SDP source port/CPU.
Definition: sdp_no_scp.h:40
uint16_t length
Length (measured from flags field start)
Definition: sdp_no_scp.h:33
uint8_t dest_port
SDP destination port/CPU.
Definition: sdp_no_scp.h:39
uint16_t dest_addr
SDP destination address.
Definition: sdp_no_scp.h:41
struct sdp_msg * next
Next in free list.
Definition: sdp_no_scp.h:32
uint16_t checksum
Checksum (if used)
Definition: sdp_no_scp.h:34
uint32_t data[ITEMS_PER_DATA_PACKET]
User data (272 bytes when no SCP header)
Definition: sdp_no_scp.h:45
uint8_t tag
SDP IPtag.
Definition: sdp_no_scp.h:38
uint16_t srce_addr
SDP source address.
Definition: sdp_no_scp.h:42
@ ITEMS_PER_DATA_PACKET
How many multicast packets are to be received per SDP packet.
Definition: sdp_no_scp.h:25
@ LENGTH_OF_SDP_HEADER
Extra length adjustment for the SDP header.
Definition: sdp_no_scp.h:27
An SDP message with purely data, no SCP header.
Definition: sdp_no_scp.h:31