Cordio Stack and Cordio Profiles
r2p3-02rel0
Main Page
Usage and Description
Reference
crc32.h
Go to the documentation of this file.
1
/*************************************************************************************************/
2
/*!
3
* \file crc32.h
4
*
5
* \brief CRC-32 utilities.
6
*
7
* Copyright (c) 2010-2018 Arm Ltd. All Rights Reserved.
8
* ARM Ltd. confidential and proprietary.
9
*
10
* IMPORTANT. Your use of this file is governed by a Software License Agreement
11
* ("Agreement") that must be accepted in order to download or otherwise receive a
12
* copy of this file. You may not use or copy this file for any purpose other than
13
* as described in the Agreement. If you do not agree to all of the terms of the
14
* Agreement do not use this file and delete all copies in your possession or control;
15
* if you do not have a copy of the Agreement, you must contact ARM Ltd. prior
16
* to any use, copying or further distribution of this software.
17
*/
18
/*************************************************************************************************/
19
#ifndef CRC32_H
20
#define CRC32_H
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
/*! \addtogroup WSF_UTIL_API
27
* \{ */
28
29
/*************************************************************************************************/
30
/*!
31
* \brief Calculate the CRC-32 of the given buffer.
32
*
33
* \param crcInit Initial value of the CRC.
34
* \param len Length of the buffer.
35
* \param pBuf Buffer to compute the CRC.
36
*
37
* \return None.
38
*
39
* This routine was originally generated with crcmod.py using the following parameters:
40
* - polynomial 0x104C11DB7
41
* - bit reverse algorithm
42
*/
43
/*************************************************************************************************/
44
uint32_t
CalcCrc32
(
uint32_t
crcInit,
uint32_t
len,
const
uint8_t
*pBuf);
45
46
/*! \} */
/* WSF_UTIL_API */
47
48
#ifdef __cplusplus
49
};
50
#endif
51
52
#endif
/* CRC32_H */
CalcCrc32
uint32_t CalcCrc32(uint32_t crcInit, uint32_t len, const uint8_t *pBuf)
Calculate the CRC-32 of the given buffer.
uint32_t
unsigned long uint32_t
Unsigned 32-bit value.
Definition:
wsf_types.h:71
uint8_t
unsigned char uint8_t
Unsigned 8-bit value.
Definition:
wsf_types.h:63
Copyright © 2017-2018 Arm Ltd. All rights reserved.
Arm Confidential
Cordio Stack and Cordio Profiles