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... | |
Header for checksumutils.c module.
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.
void CRC16_Final | ( | CRC16_Context * | inContext, |
uint16_t * | outResult | ||
) |
output CRC16 result
inContext | holds CRC16 result |
outResutl | holds CRC16 final result |
none |
void CRC16_Init | ( | CRC16_Context * | inContext | ) |
initialize the CRC16 Context
inContext | holds CRC16 result |
none |
void CRC16_Update | ( | CRC16_Context * | inContext, |
const uint8_t * | inSrc, | ||
size_t | inLen | ||
) |
Calculate the CRC16 result.
inContext | holds CRC16 result during calculation process |
inSrc | input data |
inLen | length of input data |
none |
void CRC8_Final | ( | CRC8_Context * | inContext, |
uint8_t * | outResult | ||
) |
output CRC8 result
inContext | holds CRC8 result |
outResutl | holds CRC8 final result |
none |
void CRC8_Init | ( | CRC8_Context * | inContext | ) |
initialize the CRC8 Context
inContext | holds CRC8 result |
none |
void CRC8_Update | ( | CRC8_Context * | inContext, |
const uint8_t * | inSrc, | ||
size_t | inLen | ||
) |
Calculate the CRC8 result.
inContext | holds CRC8 result during calculation process |
inSrc | input data |
inLen | length of input data |
none |