STM32L486xx HAL User Manual
Functions
CRC Configuration functions
CRC Exported Functions

Functions

__STATIC_INLINE void LL_CRC_ResetCRCCalculationUnit (CRC_TypeDef *CRCx)
 Reset the CRC calculation unit.
__STATIC_INLINE void LL_CRC_SetPolynomialSize (CRC_TypeDef *CRCx, uint32_t PolySize)
 Configure size of the polynomial.
__STATIC_INLINE uint32_t LL_CRC_GetPolynomialSize (CRC_TypeDef *CRCx)
 Return size of the polynomial.
__STATIC_INLINE void LL_CRC_SetInputDataReverseMode (CRC_TypeDef *CRCx, uint32_t ReverseMode)
 Configure the reversal of the bit order of the input data.
__STATIC_INLINE uint32_t LL_CRC_GetInputDataReverseMode (CRC_TypeDef *CRCx)
 Return type of reversal for input data bit order.
__STATIC_INLINE void LL_CRC_SetOutputDataReverseMode (CRC_TypeDef *CRCx, uint32_t ReverseMode)
 Configure the reversal of the bit order of the Output data.
__STATIC_INLINE uint32_t LL_CRC_GetOutputDataReverseMode (CRC_TypeDef *CRCx)
 Configure the reversal of the bit order of the Output data.
__STATIC_INLINE void LL_CRC_SetInitialData (CRC_TypeDef *CRCx, uint32_t InitCrc)
 Initialize the Programmable initial CRC value.
__STATIC_INLINE uint32_t LL_CRC_GetInitialData (CRC_TypeDef *CRCx)
 Return current Initial CRC value.
__STATIC_INLINE void LL_CRC_SetPolynomialCoef (CRC_TypeDef *CRCx, uint32_t PolynomCoef)
 Initialize the Programmable polynomial value (coefficients of the polynomial to be used for CRC calculation).
__STATIC_INLINE uint32_t LL_CRC_GetPolynomialCoef (CRC_TypeDef *CRCx)
 Return current Programmable polynomial value.

Function Documentation

__STATIC_INLINE uint32_t LL_CRC_GetInitialData ( CRC_TypeDef *  CRCx)

Return current Initial CRC value.

Note:
If the CRC size is less than 32 bits, the least significant bits are used to read the correct value
Reference Manual to LL API cross reference:
INIT INIT LL_CRC_GetInitialData
Parameters:
CRCxCRC Instance
Return values:
Valueprogrammed in Programmable initial CRC value register

Definition at line 290 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE uint32_t LL_CRC_GetInputDataReverseMode ( CRC_TypeDef *  CRCx)

Return type of reversal for input data bit order.

Reference Manual to LL API cross reference:
CR REV_IN LL_CRC_GetInputDataReverseMode
Parameters:
CRCxCRC Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 235 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE uint32_t LL_CRC_GetOutputDataReverseMode ( CRC_TypeDef *  CRCx)

Configure the reversal of the bit order of the Output data.

Reference Manual to LL API cross reference:
CR REV_OUT LL_CRC_GetOutputDataReverseMode
Parameters:
CRCxCRC Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 262 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE uint32_t LL_CRC_GetPolynomialCoef ( CRC_TypeDef *  CRCx)

Return current Programmable polynomial value.

Note:
Please check Reference Manual and existing Errata Sheets, regarding possible limitations for Polynomial values usage. For example, for a polynomial of degree 7, X^7 + X^6 + X^5 + X^2 + 1 is written 0x65
Reference Manual to LL API cross reference:
POL POL LL_CRC_GetPolynomialCoef
Parameters:
CRCxCRC Instance
Return values:
Valueprogrammed in Programmable Polynomial value register

Definition at line 321 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE uint32_t LL_CRC_GetPolynomialSize ( CRC_TypeDef *  CRCx)

Return size of the polynomial.

Reference Manual to LL API cross reference:
CR POLYSIZE LL_CRC_GetPolynomialSize
Parameters:
CRCxCRC Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 204 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE void LL_CRC_ResetCRCCalculationUnit ( CRC_TypeDef *  CRCx)

Reset the CRC calculation unit.

Note:
If Programmable Initial CRC value feature is available, also set the Data Register to the value stored in the CRC_INIT register, otherwise, reset Data Register to its default value.
Reference Manual to LL API cross reference:
CR RESET LL_CRC_ResetCRCCalculationUnit
Parameters:
CRCxCRC Instance
Return values:
None

Definition at line 173 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE void LL_CRC_SetInitialData ( CRC_TypeDef *  CRCx,
uint32_t  InitCrc 
)

Initialize the Programmable initial CRC value.

Note:
If the CRC size is less than 32 bits, the least significant bits are used to write the correct value
LL_CRC_DEFAULT_CRC_INITVALUE could be used as value for InitCrc parameter.
Reference Manual to LL API cross reference:
INIT INIT LL_CRC_SetInitialData
Parameters:
CRCxCRC Instance
InitCrcValue to be programmed in Programmable initial CRC value register
Return values:
None

Definition at line 277 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE void LL_CRC_SetInputDataReverseMode ( CRC_TypeDef *  CRCx,
uint32_t  ReverseMode 
)

Configure the reversal of the bit order of the input data.

Reference Manual to LL API cross reference:
CR REV_IN LL_CRC_SetInputDataReverseMode
Parameters:
CRCxCRC Instance
ReverseModeThis parameter can be one of the following values:
Return values:
None

Definition at line 220 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE void LL_CRC_SetOutputDataReverseMode ( CRC_TypeDef *  CRCx,
uint32_t  ReverseMode 
)

Configure the reversal of the bit order of the Output data.

Reference Manual to LL API cross reference:
CR REV_OUT LL_CRC_SetOutputDataReverseMode
Parameters:
CRCxCRC Instance
ReverseModeThis parameter can be one of the following values:
Return values:
None

Definition at line 249 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE void LL_CRC_SetPolynomialCoef ( CRC_TypeDef *  CRCx,
uint32_t  PolynomCoef 
)

Initialize the Programmable polynomial value (coefficients of the polynomial to be used for CRC calculation).

Note:
LL_CRC_DEFAULT_CRC32_POLY could be used as value for PolynomCoef parameter.
Please check Reference Manual and existing Errata Sheets, regarding possible limitations for Polynomial values usage. For example, for a polynomial of degree 7, X^7 + X^6 + X^5 + X^2 + 1 is written 0x65
Reference Manual to LL API cross reference:
POL POL LL_CRC_SetPolynomialCoef
Parameters:
CRCxCRC Instance
PolynomCoefValue to be programmed in Programmable Polynomial value register
Return values:
None

Definition at line 307 of file stm32l4xx_ll_crc.h.

__STATIC_INLINE void LL_CRC_SetPolynomialSize ( CRC_TypeDef *  CRCx,
uint32_t  PolySize 
)

Configure size of the polynomial.

Reference Manual to LL API cross reference:
CR POLYSIZE LL_CRC_SetPolynomialSize
Parameters:
CRCxCRC Instance
PolySizeThis parameter can be one of the following values:
Return values:
None

Definition at line 189 of file stm32l4xx_ll_crc.h.