Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
abcc_crc32.h
00001 /******************************************************************************* 00002 ******************************************************************************** 00003 ** ** 00004 ** ABCC Driver version 4.01.01 (2015-12-14) ** 00005 ** ** 00006 ** Delivered with: ** 00007 ** ABP 7.16.01 (2015-10-14) ** 00008 ** */ 00009 /******************************************************************************* 00010 ******************************************************************************** 00011 ** COPYRIGHT NOTIFICATION (c) 2013 HMS Industrial Networks AB ** 00012 ** ** 00013 ** This code is the property of HMS Industrial Networks AB. ** 00014 ** The source code may not be reproduced, distributed, or used without ** 00015 ** permission. When used together with a product from HMS, permission is ** 00016 ** granted to modify, reproduce and distribute the code in binary form ** 00017 ** without any restrictions. ** 00018 ** ** 00019 ** THE CODE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. HMS DOES NOT ** 00020 ** WARRANT THAT THE FUNCTIONS OF THE CODE WILL MEET YOUR REQUIREMENTS, OR ** 00021 ** THAT THE OPERATION OF THE CODE WILL BE UNINTERRUPTED OR ERROR-FREE, OR ** 00022 ** THAT DEFECTS IN IT CAN BE CORRECTED. ** 00023 ******************************************************************************** 00024 ******************************************************************************** 00025 ** File Description: 00026 ** This is the public header file for the CRC calculation routines. 00027 ******************************************************************************** 00028 ******************************************************************************** 00029 ** Services: 00030 ** 00031 ** CRC_Crc32() - CRC32 checksum calculation function. 00032 ******************************************************************************** 00033 ******************************************************************************** 00034 */ 00035 00036 #ifndef CRC32_H 00037 #define CRC32_H 00038 00039 #include "abcc_drv_cfg.h" 00040 #include "abcc_td.h" 00041 00042 /******************************************************************************* 00043 ** Typedefs 00044 ******************************************************************************** 00045 */ 00046 00047 /******************************************************************************* 00048 ** Public Services 00049 ******************************************************************************** 00050 */ 00051 00052 /*------------------------------------------------------------------------------ 00053 ** CRC_Crc32() 00054 ** 00055 ** Calculates a CRC32 checksum on the indicated bytes including transforming 00056 ** input bytes from LSB to MSB for the SPI use. 00057 **------------------------------------------------------------------------------ 00058 ** Inputs: 00059 ** pbBufferStart - Where to start the calculation. 00060 ** iLength - The amount of bytes to include. 00061 ** 00062 ** Outputs: 00063 ** Returns - The calculated CRC32 checksum for the SPI. 00064 ** 00065 ** Usage: 00066 ** iCrc = CRC_Crc16( pbStart, 20 ); 00067 **------------------------------------------------------------------------------ 00068 */ 00069 00070 EXTFUNC UINT32 CRC_Crc32( UINT16* piBufferStart, UINT16 iLength ); 00071 00072 00073 00074 #endif /* inclusion lock */ 00075 00076 /******************************************************************************* 00077 ** End of abcc_crc32.h 00078 ******************************************************************************** 00079 */
Generated on Tue Jul 12 2022 15:51:56 by
