Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
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 CR REV_IN LL_CRC_SetInputDataReverseMode. | |
__STATIC_INLINE uint32_t | LL_CRC_GetInputDataReverseMode (CRC_TypeDef *CRCx) |
Return type of reversal for input data bit order CR REV_IN LL_CRC_GetInputDataReverseMode. | |
__STATIC_INLINE void | LL_CRC_SetOutputDataReverseMode (CRC_TypeDef *CRCx, uint32_t ReverseMode) |
Configure the reversal of the bit order of the Output data CR REV_OUT LL_CRC_SetOutputDataReverseMode. | |
__STATIC_INLINE uint32_t | LL_CRC_GetOutputDataReverseMode (CRC_TypeDef *CRCx) |
Configure the reversal of the bit order of the Output data CR REV_OUT LL_CRC_GetOutputDataReverseMode. | |
__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 INIT INIT LL_CRC_GetInitialData
- Parameters:
-
CRCx CRC Instance
- Return values:
-
Value programmed in Programmable initial CRC value register
Definition at line 292 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 CR REV_IN LL_CRC_GetInputDataReverseMode.
- Parameters:
-
CRCx CRC Instance
- Return values:
-
Returned value can be one of the following values: - LL_CRC_INDATA_REVERSE_NONE
- LL_CRC_INDATA_REVERSE_BYTE
- LL_CRC_INDATA_REVERSE_HALFWORD
- LL_CRC_INDATA_REVERSE_WORD
Definition at line 237 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 CR REV_OUT LL_CRC_GetOutputDataReverseMode.
- Parameters:
-
CRCx CRC Instance
- Return values:
-
Returned value can be one of the following values: - LL_CRC_OUTDATA_REVERSE_NONE
- LL_CRC_OUTDATA_REVERSE_BIT
Definition at line 264 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 POL POL LL_CRC_GetPolynomialCoef
- Parameters:
-
CRCx CRC Instance
- Return values:
-
Value programmed in Programmable Polynomial value register
Definition at line 323 of file stm32l4xx_ll_crc.h.
__STATIC_INLINE uint32_t LL_CRC_GetPolynomialSize | ( | CRC_TypeDef * | CRCx ) |
Return size of the polynomial.
CR POLYSIZE LL_CRC_GetPolynomialSize
- Parameters:
-
CRCx CRC Instance
- Return values:
-
Returned value can be one of the following values: - LL_CRC_POLYLENGTH_32B
- LL_CRC_POLYLENGTH_16B
- LL_CRC_POLYLENGTH_8B
- LL_CRC_POLYLENGTH_7B
Definition at line 206 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. CR RESET LL_CRC_ResetCRCCalculationUnit
- Parameters:
-
CRCx CRC Instance
- Return values:
-
None
Definition at line 175 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. INIT INIT LL_CRC_SetInitialData
- Parameters:
-
CRCx CRC Instance InitCrc Value to be programmed in Programmable initial CRC value register
- Return values:
-
None
Definition at line 279 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 CR REV_IN LL_CRC_SetInputDataReverseMode.
- Parameters:
-
CRCx CRC Instance ReverseMode This parameter can be one of the following values: - LL_CRC_INDATA_REVERSE_NONE
- LL_CRC_INDATA_REVERSE_BYTE
- LL_CRC_INDATA_REVERSE_HALFWORD
- LL_CRC_INDATA_REVERSE_WORD
- Return values:
-
None
Definition at line 222 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 CR REV_OUT LL_CRC_SetOutputDataReverseMode.
- Parameters:
-
CRCx CRC Instance ReverseMode This parameter can be one of the following values: - LL_CRC_OUTDATA_REVERSE_NONE
- LL_CRC_OUTDATA_REVERSE_BIT
- Return values:
-
None
Definition at line 251 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 POL POL LL_CRC_SetPolynomialCoef
- Parameters:
-
CRCx CRC Instance PolynomCoef Value to be programmed in Programmable Polynomial value register
- Return values:
-
None
Definition at line 309 of file stm32l4xx_ll_crc.h.
__STATIC_INLINE void LL_CRC_SetPolynomialSize | ( | CRC_TypeDef * | CRCx, |
uint32_t | PolySize | ||
) |
Configure size of the polynomial.
CR POLYSIZE LL_CRC_SetPolynomialSize
- Parameters:
-
CRCx CRC Instance PolySize This parameter can be one of the following values: - LL_CRC_POLYLENGTH_32B
- LL_CRC_POLYLENGTH_16B
- LL_CRC_POLYLENGTH_8B
- LL_CRC_POLYLENGTH_7B
- Return values:
-
None
Definition at line 191 of file stm32l4xx_ll_crc.h.
Generated on Tue Jul 12 2022 17:38:56 by
