TI-OpenThread  1.08.06.06
LP_CC2652R7/thread/doorlock_oad_secure/oad/crc32.h
Go to the documentation of this file.
1 /******************************************************************************
2 
3  @file crc32.h
4 
5  @brief TThis module contains crc32 calculation api.
6 
7  Group: CMCU, LPC
8  Target Device: cc13xx_cc26xx
9 
10  ******************************************************************************
11 
12  Copyright (c) 2017-2022, Texas Instruments Incorporated
13  All rights reserved.
14 
15  Redistribution and use in source and binary forms, with or without
16  modification, are permitted provided that the following conditions
17  are met:
18 
19  * Redistributions of source code must retain the above copyright
20  notice, this list of conditions and the following disclaimer.
21 
22  * Redistributions in binary form must reproduce the above copyright
23  notice, this list of conditions and the following disclaimer in the
24  documentation and/or other materials provided with the distribution.
25 
26  * Neither the name of Texas Instruments Incorporated nor the names of
27  its contributors may be used to endorse or promote products derived
28  from this software without specific prior written permission.
29 
30  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
31  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
32  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
33  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
34  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
35  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
36  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
37  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
38  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
39  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
40  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41 
42  ******************************************************************************
43 
44 
45  *****************************************************************************/
46 
47 #ifndef CRC32_H
48 #define CRC32_H
49 
50 #ifdef __cplusplus
51 extern "C"
52 {
53 #endif
54 
55 /*******************************************************************************
56  * Includes
57  */
58 
59 #include <stdbool.h>
60 
61 extern uint32_t CRC32_value(uint32_t inCRC);
62 extern uint32_t CRC32_calc(uint8_t page, uint32_t pageSize, uint16_t offset, uint32_t len, bool useExtFl);
63 extern void *CRC32_memCpy(void *dest, const void *src, uint16_t len);
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif /* CRC32_H */
void * CRC32_memCpy(void *dest, const void *src, uint16_t len)
Definition: CC1352P_2_LAUNCHXL/thread/doorlock_oad_secure/oad/crc32.c:88
uint32_t CRC32_value(uint32_t inCRC)
Definition: CC1352P_2_LAUNCHXL/thread/doorlock_oad_secure/oad/crc32.c:110
uint32_t CRC32_calc(uint8_t page, uint32_t pageSize, uint16_t offset, uint32_t len, bool useExtFl)
Definition: CC1352P_2_LAUNCHXL/thread/doorlock_oad_secure/oad/crc32.c:145
© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale