Modules | Functions

CRC driver modules. More...

Collaboration diagram for CRC:

Modules

 CRC_Exported_Constants
 
 CRC_Private_Functions
 
 CRC_Exported_Types
 
 CRC_Exported_Macros
 
 CRC_Exported_Functions
 
 CRC_Private_TypesDefinitions
 
 CRC_Private_Defines
 
 CRC_Private_Macros
 
 CRC_Private_Variables
 
 CRC_Private_FunctionPrototypes
 
 CRC_ReverseInputData
 
 CRC_PolynomialSize
 

Functions

uint32_t CRC_CalcCRC16bits (uint16_t CRC_Data)
 Computes the 16-bit CRC of a given 16-bit data. More...
 
uint32_t CRC_CalcCRC8bits (uint8_t CRC_Data)
 Computes the 8-bit CRC of a given 8-bit data. More...
 
void CRC_DeInit (void)
 Deinitializes CRC peripheral registers to their default reset values. More...
 
void CRC_PolynomialSizeSelect (uint32_t CRC_PolSize)
 Selects the polynomial size. More...
 
void CRC_ReverseInputDataSelect (uint32_t CRC_ReverseInputData)
 Selects the reverse operation to be performed on input data. More...
 
void CRC_ReverseOutputDataCmd (FunctionalState NewState)
 Enables or disable the reverse operation on output data. The reverse operation on output data is performed on 32-bit. More...
 
void CRC_SetInitRegister (uint32_t CRC_InitValue)
 Initializes the INIT register. More...
 
void CRC_SetPolynomial (uint32_t CRC_Pol)
 Initializes the polynomail coefficients. More...
 

Detailed Description

CRC driver modules.

Function Documentation

uint32_t CRC_CalcCRC16bits ( uint16_t  CRC_Data)

Computes the 16-bit CRC of a given 16-bit data.

Parameters
CRC_Datadata half-word(16-bit) to compute its CRC
Return values
16-bitCRC

Definition at line 256 of file stm32f30x_crc.c.

uint32_t CRC_CalcCRC8bits ( uint8_t  CRC_Data)

Computes the 8-bit CRC of a given 8-bit data.

Parameters
CRC_Data8-bit data to compute its CRC
Return values
8-bitCRC

Definition at line 268 of file stm32f30x_crc.c.

void CRC_DeInit ( void  )

Deinitializes CRC peripheral registers to their default reset values.

Parameters
None
Return values
None

Definition at line 95 of file stm32f30x_crc.c.

void CRC_PolynomialSizeSelect ( uint32_t  CRC_PolSize)

Selects the polynomial size.

Parameters
CRC_PolSizeSpecifies the polynomial size. This parameter can be:
  • CRC_PolSize_7: 7-bit polynomial for CRC calculation
  • CRC_PolSize_8: 8-bit polynomial for CRC calculation
  • CRC_PolSize_16: 16-bit polynomial for CRC calculation
  • CRC_PolSize_32: 32-bit polynomial for CRC calculation
Return values
None

Definition at line 130 of file stm32f30x_crc.c.

void CRC_ReverseInputDataSelect ( uint32_t  CRC_ReverseInputData)

Selects the reverse operation to be performed on input data.

Parameters
CRC_ReverseInputDataSpecifies the reverse operation on input data. This parameter can be:
  • CRC_ReverseInputData_No: No reverse operation is performed
  • CRC_ReverseInputData_8bits: reverse operation performed on 8 bits
  • CRC_ReverseInputData_16bits: reverse operation performed on 16 bits
  • CRC_ReverseInputData_32bits: reverse operation performed on 32 bits
Return values
None

Definition at line 159 of file stm32f30x_crc.c.

void CRC_ReverseOutputDataCmd ( FunctionalState  NewState)

Enables or disable the reverse operation on output data. The reverse operation on output data is performed on 32-bit.

Parameters
NewStatenew state of the reverse operation on output data. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 185 of file stm32f30x_crc.c.

void CRC_SetInitRegister ( uint32_t  CRC_InitValue)

Initializes the INIT register.

Note
After resetting CRC calculation unit, CRC_InitValue is stored in DR register
Parameters
CRC_InitValueProgrammable initial CRC value
Return values
None

Definition at line 208 of file stm32f30x_crc.c.

void CRC_SetPolynomial ( uint32_t  CRC_Pol)

Initializes the polynomail coefficients.

Parameters
CRC_PolPolynomial to be used for CRC calculation.
Return values
None

Definition at line 218 of file stm32f30x_crc.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:07:55