STM32L486xx HAL User Manual
Data Fields
CRC_InitTypeDef Struct Reference

CRC Init Structure definition. More...

#include <stm32l4xx_hal_crc.h>

Data Fields

uint8_t DefaultPolynomialUse
uint8_t DefaultInitValueUse
uint32_t GeneratingPolynomial
uint32_t CRCLength
uint32_t InitValue
uint32_t InputDataInversionMode
uint32_t OutputDataInversionMode

Detailed Description

CRC Init Structure definition.

Definition at line 75 of file stm32l4xx_hal_crc.h.


Field Documentation

This parameter is a value of Polynomial sizes to configure the IP and indicates CRC length. Value can be either one of

Definition at line 93 of file stm32l4xx_hal_crc.h.

Referenced by HAL_CRC_Init().

This parameter is a value of Indicates whether or not default init value is used and indicates if default init value is used. If set to DEFAULT_INIT_VALUE_ENABLE, resort to default 0xFFFFFFFF value. In that case, there is no need to set InitValue field. If otherwise set to DEFAULT_INIT_VALUE_DISABLE, InitValue field must be set.

Definition at line 83 of file stm32l4xx_hal_crc.h.

Referenced by HAL_CRC_Init().

This parameter is a value of Indicates whether or not default polynomial is used and indicates if default polynomial is used. If set to DEFAULT_POLYNOMIAL_ENABLE, resort to default X^32 + X^26 + X^23 + X^22 + X^16 + X^12 + X^11 + X^10 +X^8 + X^7 + X^5 + X^4 + X^2+ X +1. In that case, there is no need to set GeneratingPolynomial field. If otherwise set to DEFAULT_POLYNOMIAL_DISABLE, GeneratingPolynomial and CRCLength fields must be set.

Definition at line 77 of file stm32l4xx_hal_crc.h.

Referenced by HAL_CRC_Init().

Set CRC generating polynomial as a 7, 8, 16 or 32-bit long value for a polynomial degree respectively equal to 7, 8, 16 or 32. This field is written in normal representation, e.g., for a polynomial of degree 7, X^7 + X^6 + X^5 + X^2 + 1 is written 0x65. No need to specify it if DefaultPolynomialUse is set to DEFAULT_POLYNOMIAL_ENABLE.

Definition at line 88 of file stm32l4xx_hal_crc.h.

Referenced by HAL_CRC_Init().

Init value to initiate CRC computation. No need to specify it if DefaultInitValueUse is set to DEFAULT_INIT_VALUE_ENABLE.

Definition at line 100 of file stm32l4xx_hal_crc.h.

Referenced by HAL_CRC_Init().

This parameter is a value of Input Data Inversion Modes and specifies input data inversion mode. Can be either one of the following values

Definition at line 103 of file stm32l4xx_hal_crc.h.

Referenced by HAL_CRC_Init().

This parameter is a value of Output Data Inversion Modes and specifies output data (i.e. CRC) inversion mode. Can be either

Definition at line 110 of file stm32l4xx_hal_crc.h.

Referenced by HAL_CRC_Init().


The documentation for this struct was generated from the following file: