]> rtime.felk.cvut.cz Git - arc.git/blob - communication/Com/Com_misc.h
Initial commit.
[arc.git] / communication / Com / Com_misc.h
1 /* -------------------------------- Arctic Core ------------------------------
2  * Arctic Core - the open source AUTOSAR platform http://arccore.com
3  *
4  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>
5  *
6  * This source code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 as published by the
8  * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  * for more details.
14  * -------------------------------- Arctic Core ------------------------------*/
15
16
17
18
19
20
21
22
23 \r
24 #ifndef COM_MISC_H_\r
25 #define COM_MISC_H_\r
26 \r
27 #include "Com.h"\r
28 /*\r
29  * The following function are exported only for testing purposes.\r
30  */\r
31 uint8 Com_Filter(ComSignal_type *signal);\r
32 void Com_CopyFromSignal(const ComSignal_type *signal, void *Destination);\r
33 void Com_CopyToSignal(ComSignal_type *signal, const void *Source);\r
34 \r
35 /*\r
36  * This function copies numBits bits of data from Source to Destination with the possibility to offset\r
37  * both the source and destination.\r
38  *\r
39  * Return value: the last bit it copies (sign bit).
40  */\r
41 uint8 Com_CopyData(void *Destination, const void *Source, uint8 numBits, uint8 destOffset, uint8 sourceOffset);\r
42 #endif /* COM_MISC_H_ */\r