STM32F0 Standard Peripheral bibliotheek  1.0
ST Microelectronics standard peripheral bibliotheek documentatie voor de STM32F0 familie
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
Configuration of the CRC computation unit functions

Configuration of the CRC computation unit functions. More...

Functions

void CRC_DeInit (void)
 Deinitializes CRC peripheral registers to their default reset values. More...
 
void CRC_ResetDR (void)
 Resets the CRC calculation unit and sets INIT register content in DR register. 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...
 

Detailed Description

Configuration of the CRC computation unit functions.

 ===============================================================================
                     ##### CRC configuration functions #####
 ===============================================================================

Function Documentation

void CRC_DeInit ( void  )

Deinitializes CRC peripheral registers to their default reset values.

Parameters
None
Return values
None
void CRC_ResetDR ( void  )

Resets the CRC calculation unit and sets INIT register content in DR register.

Parameters
None
Return values
None
void CRC_ReverseInputDataSelect ( uint32_t  CRC_ReverseInputData)

Selects the reverse operation to be performed on input data.

Parameters
CRC_ReverseInputData,:Specifies 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
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
NewState,:new state of the reverse operation on output data. This parameter can be: ENABLE or DISABLE.
Return values
None
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_InitValue,:Programmable initial CRC value
Return values
None