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.
Extended Initialization/de-initialization functions
[CRC Extended Exported Functions]
Extended Initialization and Configuration functions. More...
Functions | |
HAL_StatusTypeDef | HAL_CRCEx_Polynomial_Set (CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength) |
Initialize the CRC polynomial if different from default one. | |
HAL_StatusTypeDef | HAL_CRCEx_Input_Data_Reverse (CRC_HandleTypeDef *hcrc, uint32_t InputReverseMode) |
Set the Reverse Input data mode. | |
HAL_StatusTypeDef | HAL_CRCEx_Output_Data_Reverse (CRC_HandleTypeDef *hcrc, uint32_t OutputReverseMode) |
Set the Reverse Output data mode. |
Detailed Description
Extended Initialization and Configuration functions.
=============================================================================== ##### Extended configuration functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Configure the generating polynomial (+) Configure the input data inversion (+) Configure the output data inversion
Function Documentation
HAL_StatusTypeDef HAL_CRCEx_Input_Data_Reverse | ( | CRC_HandleTypeDef * | hcrc, |
uint32_t | InputReverseMode | ||
) |
Set the Reverse Input data mode.
- Parameters:
-
hcrc,: CRC handle InputReverseMode,: Input Data inversion mode. This parameter can be one of the following values: - CRC_INPUTDATA_INVERSION_NONE no change in bit order (default value)
- CRC_INPUTDATA_INVERSION_BYTE Byte-wise bit reversal
- CRC_INPUTDATA_INVERSION_HALFWORD HalfWord-wise bit reversal
- CRC_INPUTDATA_INVERSION_WORD Word-wise bit reversal
- Return values:
-
HAL status
Definition at line 171 of file stm32l4xx_hal_crc_ex.c.
HAL_StatusTypeDef HAL_CRCEx_Output_Data_Reverse | ( | CRC_HandleTypeDef * | hcrc, |
uint32_t | OutputReverseMode | ||
) |
Set the Reverse Output data mode.
- Parameters:
-
hcrc,: CRC handle OutputReverseMode,: Output Data inversion mode. This parameter can be one of the following values: - CRC_OUTPUTDATA_INVERSION_DISABLE no CRC inversion (default value)
- CRC_OUTPUTDATA_INVERSION_ENABLE bit-level inversion (e.g. for a 8-bit CRC: 0xB5 becomes 0xAD)
- Return values:
-
HAL status
Definition at line 197 of file stm32l4xx_hal_crc_ex.c.
HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set | ( | CRC_HandleTypeDef * | hcrc, |
uint32_t | Pol, | ||
uint32_t | PolyLength | ||
) |
Initialize the CRC polynomial if different from default one.
- Parameters:
-
hcrc,: CRC handle Pol,: CRC generating polynomial (7, 8, 16 or 32-bit long). This parameter 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
- for a polynomial of degree 16, X^16 + X^12 + X^5 + 1 is written 0x1021
PolyLength,: CRC polynomial length. This parameter can be one of the following values: - CRC_POLYLENGTH_7B 7-bit long CRC (generating polynomial of degree 7)
- CRC_POLYLENGTH_8B 8-bit long CRC (generating polynomial of degree 8)
- CRC_POLYLENGTH_16B 16-bit long CRC (generating polynomial of degree 16)
- CRC_POLYLENGTH_32B 32-bit long CRC (generating polynomial of degree 32)
- Return values:
-
HAL status
Definition at line 107 of file stm32l4xx_hal_crc_ex.c.
Generated on Tue Jul 12 2022 11:00:03 by
