CMSIS2000  0.0.7
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
crc32.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define crc32_end(crc)   (((uint32_t)(crc)) ^ ((uint32_t)0xffffffff))
 Finish CRC calculation.
#define crc32_init()   ((uint32_t)0xffffffff)
 Begin CRC calculation.

Functions

static uint32_t crc32 (uint32_t curr_crc, const uint8_t *data, size_t len)
uint32_t crc32_no_comp (uint32_t curr_crc, const uint8_t *data8, size_t len)
uint32_t crc32_update (uint32_t crc_in, uint8_t val8)

Macro Definition Documentation

#define crc32_end (   crc)    (((uint32_t)(crc)) ^ ((uint32_t)0xffffffff))

Finish CRC calculation.

crc current CRC value
Returns
end CRC value

Definition at line 43 of file crc32.h.

Referenced by crc32(), and image_check_hcrc().

#define crc32_init ( )    ((uint32_t)0xffffffff)

Begin CRC calculation.

Returns
CRC calc start value

Definition at line 37 of file crc32.h.

Referenced by crc32().

Function Documentation

static uint32_t crc32 ( uint32_t  curr_crc,
const uint8_t data,
size_t  len 
)
inlinestatic

Definition at line 75 of file crc32.h.

References crc32_end, crc32_init, and crc32_no_comp().

Referenced by image_check_dcrc().

Here is the call graph for this function:

Here is the caller graph for this function:

uint32_t crc32_no_comp ( uint32_t  curr_crc,
const uint8_t data8,
size_t  len 
)

Definition at line 63 of file crc32.c.

References crc32_update().

Referenced by crc32(), and image_check_hcrc().

Here is the call graph for this function:

Here is the caller graph for this function:

uint32_t crc32_update ( uint32_t  crc_in,
uint8_t  val8 
)

Definition at line 46 of file crc32.c.

Referenced by crc32_copy(), and crc32_no_comp().

Here is the caller graph for this function: