STM32F37 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F37 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
stm32f37x_crc.h File Reference

This file contains all the functions prototypes for the CRC firmware library. More...

#include "stm32f37x.h"

Go to the source code of this file.

Macros

#define CRC_ReverseInputData_No   ((uint32_t)0x00000000)
 
#define CRC_ReverseInputData_8bits   CRC_CR_REV_IN_0
 
#define CRC_ReverseInputData_16bits   CRC_CR_REV_IN_1
 
#define CRC_ReverseInputData_32bits   CRC_CR_REV_IN
 
#define IS_CRC_REVERSE_INPUT_DATA(DATA)
 
#define CRC_PolSize_7   CRC_CR_POLSIZE
 
#define CRC_PolSize_8   CRC_CR_POLSIZE_1
 
#define CRC_PolSize_16   CRC_CR_POLSIZE_0
 
#define CRC_PolSize_32   ((uint32_t)0x00000000)
 
#define IS_CRC_POL_SIZE(SIZE)
 

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_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...
 
uint32_t CRC_CalcCRC (uint32_t CRC_Data)
 Computes the 32-bit CRC of a given data word(32-bit). More...
 
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...
 
uint32_t CRC_CalcBlockCRC (uint32_t pBuffer[], uint32_t BufferLength)
 Computes the 32-bit CRC of a given buffer of data word(32-bit). More...
 
uint32_t CRC_GetCRC (void)
 Returns the current CRC value. More...
 
void CRC_SetIDRegister (uint8_t CRC_IDValue)
 Stores an 8-bit data in the Independent Data(ID) register. More...
 
uint8_t CRC_GetIDRegister (void)
 Returns the 8-bit data stored in the Independent Data(ID) register. More...
 

Detailed Description

This file contains all the functions prototypes for the CRC firmware library.

Author
MCD Application Team
Version
V1.0.0
Date
20-September-2012
Attention

© COPYRIGHT 2012 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.