RTEMS 6.1-rc2
Loading...
Searching...
No Matches
stm32h7xx_hal_crc.c File Reference

CRC HAL module driver. This file provides firmware functions to manage the following functionalities of the Cyclic Redundancy Check (CRC) peripheral: More...

#include "stm32h7xx_hal.h"

Detailed Description

CRC HAL module driver. This file provides firmware functions to manage the following functionalities of the Cyclic Redundancy Check (CRC) peripheral:

Author
MCD Application Team
  • Initialization and de-initialization functions
  • Peripheral Control functions
  • Peripheral State functions
Attention

Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

===============================================================================
                    ##### How to use this driver #####
===============================================================================
   [..]
        (+) Enable CRC AHB clock using __HAL_RCC_CRC_CLK_ENABLE();
        (+) Initialize CRC calculator
            (++) specify generating polynomial (peripheral default or non-default one)
            (++) specify initialization value (peripheral default or non-default one)
            (++) specify input data format
            (++) specify input or output data inversion mode if any
        (+) Use HAL_CRC_Accumulate() function to compute the CRC value of the
            input data buffer starting with the previously computed CRC as
            initialization value
        (+) Use HAL_CRC_Calculate() function to compute the CRC value of the
            input data buffer starting with the defined initialization value
            (default or non-default) to initiate CRC calculation