]> rtime.felk.cvut.cz Git - arc.git/blob - include/Crc.h
realized I removed some stuff unnecessarely during mpc5606b port
[arc.git] / include / Crc.h
1 \r
2 /* -------------------------------- Arctic Core ------------------------------\r
3  * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
4  *\r
5  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
6  *\r
7  * This source code is free software; you can redistribute it and/or modify it\r
8  * under the terms of the GNU General Public License version 2 as published by the\r
9  * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
10  *\r
11  * This program is distributed in the hope that it will be useful, but\r
12  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
13  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
14  * for more details.\r
15  * -------------------------------- Arctic Core ------------------------------*/\r
16 \r
17 #ifndef CRC_H_\r
18 #define CRC_H_\r
19 \r
20 #include "Std_Types.h"\r
21 /** req 3.1.5|CRC022 */\r
22 #include "Crc_Cfg.h"\r
23 #include "MemMap.h"\r
24 \r
25 #define CRC_VENDOR_ID                       1\r
26 #define CRC_MODULE_ID                       MODULE_ID_CRC\r
27 #define CRC_AR_MAJOR_VERSION            3\r
28 #define CRC_AR_MINOR_VERSION            1\r
29 #define CRC_AR_PATCH_VERSION            5\r
30 \r
31 #define CRC_SW_MAJOR_VERSION            1\r
32 #define CRC_SW_MINOR_VERSION            0\r
33 #define CRC_SW_PATCH_VERSION            0\r
34 \r
35 \r
36 uint32 Crc_CalculateCRC32(const uint8 *dataPtr, uint32 len, uint32 startVal );\r
37 uint16 Crc_CalculateCRC16(      const uint8* dataPtr, uint32 len, uint16 startVal );\r
38 \r
39 #if ( CRC_VERSION_INFO_API == STD_ON )\r
40 #define Crc_GetVersionInfo(_vi) STD_GET_VERSION_INFO(_vi,CRC)\r
41 #endif\r
42 \r
43 \r
44 #endif /* CRC_H_ */\r