3D-ICE 3.0.0
network_message.h
Go to the documentation of this file.
1/******************************************************************************
2 * This file is part of 3D-ICE, version 3.1.0 . *
3 * *
4 * 3D-ICE is free software: you can redistribute it and/or modify it under *
5 * the terms of the GNU General Public License as published by the Free *
6 * Software Foundation, either version 3 of the License, or any later *
7 * version. *
8 * *
9 * 3D-ICE is distributed in the hope that it will be useful, but WITHOUT *
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
12 * more details. *
13 * *
14 * You should have received a copy of the GNU General Public License along *
15 * with 3D-ICE. If not, see <http://www.gnu.org/licenses/>. *
16 * *
17 * Copyright (C) 2021 *
18 * Embedded Systems Laboratory - Ecole Polytechnique Federale de Lausanne *
19 * All Rights Reserved. *
20 * *
21 * Authors: Arvind Sridhar Alessandro Vincenzi *
22 * Giseong Bak Martino Ruggiero *
23 * Thomas Brunschwiler Eder Zulian *
24 * Federico Terraneo Darong Huang *
25 * Luis Costero Marina Zapater *
26 * David Atienza *
27 * *
28 * For any comment, suggestion or request about 3D-ICE, please register and *
29 * write to the mailing list (see http://listes.epfl.ch/doc.cgi?liste=3d-ice) *
30 * Any usage of 3D-ICE for research, commercial or other purposes must be *
31 * properly acknowledged in the resulting products or publications. *
32 * *
33 * EPFL-STI-IEL-ESL Mail : 3d-ice@listes.epfl.ch *
34 * Batiment ELG, ELG 130 (SUBSCRIPTION IS NECESSARY) *
35 * Station 11 *
36 * 1015 Lausanne, Switzerland Url : http://esl.epfl.ch/3d-ice *
37 ******************************************************************************/
38
39#ifndef _3DICE_NETWORK_MESSAGE_H_
40#define _3DICE_NETWORK_MESSAGE_H_
41
44#ifdef __cplusplus
45extern "C"
46{
47#endif
48
49/******************************************************************************/
50
51#include "types.h"
52
58# define MESSAGE_LENGTH 256
59
60/******************************************************************************/
61
71 {
75
79
83
87
91
92 } ;
93
97
98
99
100/******************************************************************************/
101
102
103
111 void network_message_init (NetworkMessage_t *message) ;
112
113
114
124
125
126
135
136 (NetworkMessage_t *message, Quantity_t new_size) ;
137
138
139
150
151
152
162 void insert_message_word (NetworkMessage_t *message, void *word) ;
163
164
165
183
184 (NetworkMessage_t *message, void *word, Quantity_t index) ;
185
186/******************************************************************************/
187
188#ifdef __cplusplus
189}
190#endif
191
192#endif /* _3DICE_NETWORK_MESSAGE_H_ */
void network_message_destroy(NetworkMessage_t *message)
void insert_message_word(NetworkMessage_t *message, void *word)
Error_t extract_message_word(NetworkMessage_t *message, void *word, Quantity_t index)
void build_message_head(NetworkMessage_t *message, MessageType_t type)
void increase_message_memory(NetworkMessage_t *message, Quantity_t new_size)
void network_message_init(NetworkMessage_t *message)
Structure used to store messages to be sent over network.
MessageWord_t * Content
MessageWord_t * MType
MessageWord_t * Memory
Quantity_t MaxLength
MessageWord_t * Length
Error_t
Definition: types.h:401
uint32_t MessageWord_t
Definition: types.h:717
MessageType_t
Definition: types.h:559
uint32_t Quantity_t
Definition: types.h:59