Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Functions
checksumutils.h File Reference

Header for checksumutils.c module. More...

#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  CRC8_Context
 
struct  CRC16_Context
 

Functions

void CRC8_Init (CRC8_Context *inContext)
 initialize the CRC8 Context More...
 
void CRC8_Update (CRC8_Context *inContext, const uint8_t *inSrc, size_t inLen)
 Calculate the CRC8 result. More...
 
void CRC8_Final (CRC8_Context *inContext, uint8_t *outResult)
 output CRC8 result More...
 
void CRC16_Init (CRC16_Context *inContext)
 initialize the CRC16 Context More...
 
void CRC16_Update (CRC16_Context *inContext, const uint8_t *inSrc, size_t inLen)
 Calculate the CRC16 result. More...
 
void CRC16_Final (CRC16_Context *inContext, uint16_t *outResult)
 output CRC16 result More...
 

Detailed Description

Header for checksumutils.c module.

Author
MCD Application Team
Attention

Copyright (c) 2021 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file checksumutils.h.

Function Documentation

void CRC16_Final ( CRC16_Context inContext,
uint16_t *  outResult 
)

output CRC16 result

Parameters
inContextholds CRC16 result
outResutlholds CRC16 final result
Return values
none
void CRC16_Init ( CRC16_Context inContext)

initialize the CRC16 Context

Parameters
inContextholds CRC16 result
Return values
none
void CRC16_Update ( CRC16_Context inContext,
const uint8_t *  inSrc,
size_t  inLen 
)

Calculate the CRC16 result.

Parameters
inContextholds CRC16 result during calculation process
inSrcinput data
inLenlength of input data
Return values
none
void CRC8_Final ( CRC8_Context inContext,
uint8_t *  outResult 
)

output CRC8 result

Parameters
inContextholds CRC8 result
outResutlholds CRC8 final result
Return values
none
void CRC8_Init ( CRC8_Context inContext)

initialize the CRC8 Context

Parameters
inContextholds CRC8 result
Return values
none
void CRC8_Update ( CRC8_Context inContext,
const uint8_t *  inSrc,
size_t  inLen 
)

Calculate the CRC8 result.

Parameters
inContextholds CRC8 result during calculation process
inSrcinput data
inLenlength of input data
Return values
none
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.