STLcrc16.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. ******************************************************************************
  3. * @file STLcrc16.h
  4. * @author MCD Application Team
  5. * @version V1.0.0
  6. * @date May-2012
  7. * @brief This file contains the prototype of the function returning
  8. * a 16-bit CRC of part (or whole of) the Flash memory.
  9. ******************************************************************************
  10. * @copyright
  11. *
  12. * <h2><center>&copy; COPYRIGHT 2012 STMicroelectronics</center></h2>
  13. *
  14. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  15. * You may not use this file except in compliance with the License.
  16. * You may obtain a copy of the License at:
  17. *
  18. * http://www.st.com/software_license_agreement_liberty_v2
  19. *
  20. * Unless required by applicable law or agreed to in writing, software
  21. * distributed under the License is distributed on an "AS IS" BASIS,
  22. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  23. * See the License for the specific language governing permissions and
  24. * limitations under the License.
  25. */
  26. /* Define to prevent recursive inclusion -------------------------------------*/
  27. #ifndef __STL_CRC_16BIT_H
  28. #define __STL_CRC_16BIT_H
  29. /* Includes ------------------------------------------------------------------*/
  30. /* Exported types ------------------------------------------------------------*/
  31. /* Exported constants --------------------------------------------------------*/
  32. /* Exported macro ------------------------------------------------------------*/
  33. /* Exported functions ------------------------------------------------------- */
  34. uint16_t STL_crc16(uint16_t sum, const uint8_t *p, uint32_t len);
  35. #endif /* __STL_CRC_16BIT_H */
  36. /******************* (C) COPYRIGHT STMicroelectronics *****END OF FILE****/