|
STM32L4xx_HAL_Driver
1.14.0
|
Data Structures | |
| struct | CRC_InitTypeDef |
| CRC Init Structure definition. More... | |
| struct | CRC_HandleTypeDef |
| CRC Handle Structure definition. More... | |
Enumerations | |
| enum | HAL_CRC_StateTypeDef { HAL_CRC_STATE_RESET = 0x00U, HAL_CRC_STATE_READY = 0x01U, HAL_CRC_STATE_BUSY = 0x02U, HAL_CRC_STATE_TIMEOUT = 0x03U, HAL_CRC_STATE_ERROR = 0x04U } |
| CRC HAL State Structure definition. More... | |
| struct CRC_InitTypeDef |
CRC Init Structure definition.
Definition at line 59 of file stm32l4xx_hal_crc.h.
| Data Fields | ||
|---|---|---|
| uint32_t | CRCLength |
This parameter is a value of Polynomial sizes to configure the peripheral and indicates CRC length. Value can be either one of
|
| uint8_t | DefaultInitValueUse |
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. |
| uint8_t | DefaultPolynomialUse |
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. |
| uint32_t | GeneratingPolynomial |
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. |
| uint32_t | InitValue |
Init value to initiate CRC computation. No need to specify it if DefaultInitValueUse is set to DEFAULT_INIT_VALUE_ENABLE. |
| uint32_t | InputDataInversionMode |
This parameter is a value of Input Data Inversion Modes and specifies input data inversion mode. Can be either one of the following values
|
| uint32_t | OutputDataInversionMode |
This parameter is a value of Output Data Inversion Modes and specifies output data (i.e. CRC) inversion mode. Can be either
|
| struct CRC_HandleTypeDef |
CRC Handle Structure definition.
Definition at line 103 of file stm32l4xx_hal_crc.h.
| Data Fields | ||
|---|---|---|
| CRC_InitTypeDef | Init |
CRC configuration parameters |
| uint32_t | InputDataFormat |
This parameter is a value of Input Buffer Format and specifies input data format. Can be either
Note that constant CRC_INPUT_FORMAT_UNDEFINED is defined but an initialization error must occur if InputBufferFormat is not one of the three values listed above |
| CRC_TypeDef * | Instance |
Register base address |
| HAL_LockTypeDef | Lock |
CRC Locking object |
| __IO HAL_CRC_StateTypeDef | State |
CRC communication state |
| enum HAL_CRC_StateTypeDef |
CRC HAL State Structure definition.
Definition at line 47 of file stm32l4xx_hal_crc.h.