func_ram_record.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * @file : main.h
  5. * @brief : Header for main.c file.
  6. * This file contains the common defines of the application.
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
  11. * All rights reserved.</center></h2>
  12. *
  13. * This software component is licensed by ST under BSD 3-Clause license,
  14. * the "License"; You may not use this file except in compliance with the
  15. * License. You may obtain a copy of the License at:
  16. * opensource.org/licenses/BSD-3-Clause
  17. *
  18. ******************************************************************************
  19. */
  20. /* USER CODE END Header */
  21. /* Define to prevent recursive inclusion -------------------------------------*/
  22. #ifndef FUNC_RECORD_H
  23. #define FUNC_RECORD_H
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /* Includes ------------------------------------------------------------------*/
  28. #include <stdint.h>
  29. #include "stm32f7xx_hal.h"
  30. /* Private includes ----------------------------------------------------------*/
  31. /* USER CODE BEGIN Includes */
  32. /* USER CODE END Includes */
  33. /* Exported types ------------------------------------------------------------*/
  34. /* Exported constants --------------------------------------------------------*/
  35. /* USER CODE BEGIN EC */
  36. /* USER CODE END EC */
  37. /* Exported macro ------------------------------------------------------------*/
  38. #define DATA_UNIT_NUM 150
  39. #define DATA_UNIT_SIZE 256
  40. /* Exported functions prototypes ---------------------------------------------*/
  41. void func_ram_record_init(void); //¼Ç¼Îļþ³õʼ»¯
  42. uint32_t func_ram_record_write(uint8_t *buf ,uint32_t len);
  43. uint32_t func_ram_record_read(uint8_t *buf ,uint32_t len);
  44. uint32_t func_ram_record_delete(uint8_t *buf,uint32_t len);
  45. uint32_t func_ram_obj_num(uint32_t obj_size);
  46. void func_ram_record_test(void);
  47. uint8_t func_ram_record_fatfs_set_OK(uint8_t stat);
  48. uint8_t func_ram_record_fatfs_isOK(void);
  49. /* Private defines -----------------------------------------------------------*/
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif /* FUNC_RECORD_H */
  54. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/