/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.h * @brief : Header for main.c file. * This file contains the common defines of the application. ****************************************************************************** * @attention * *

© Copyright (c) 2019 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* USER CODE END Header */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef FUNC_RECORD_H #define FUNC_RECORD_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f7xx_hal.h" #include "fatfs.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /* USER CODE BEGIN EC */ /* USER CODE END EC */ /* Exported macro ------------------------------------------------------------*/ #define DATA_UNIT_NUM 150 #define DATA_UNIT_SIZE 256 /* Exported functions prototypes ---------------------------------------------*/ void func_ram_record_init(void); //记录文件初始化 uint32_t func_ram_record_write(uint8_t *buf ,uint32_t len); uint32_t func_ram_record_read(uint8_t *buf ,uint32_t len); uint32_t func_ram_record_delete(uint8_t *buf,uint32_t len); void func_ram_record_test(void); uint8_t func_ram_record_fatfs_set_OK(uint8_t stat); uint8_t func_ram_record_fatfs_isOK(void); /* Private defines -----------------------------------------------------------*/ #ifdef __cplusplus } #endif #endif /* FUNC_RECORD_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/