/* 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 ------------------------------------------------------------*/ /* USER CODE BEGIN ET */ /* USER CODE END ET */ /* Exported constants --------------------------------------------------------*/ /* USER CODE BEGIN EC */ /* USER CODE END EC */ /* Exported macro ------------------------------------------------------------*/ /* USER CODE BEGIN EM */ /* USER CODE END EM */ /* Exported functions prototypes ---------------------------------------------*/ void func_record_lfs_init(void); //记录文件初始化 void func_record_lfs_main(void const *argument); //文件操作主函数 void func_record_lfs_test(void); int32_t func_record_lfs_write(void *buf ,uint32_t len); uint32_t func_record_lfs_read(uint8_t *buf ,uint32_t len); uint32_t func_record_lfs_delete(uint8_t *buf,uint32_t len); int32_t func_record_lfs_remove(void *buf, uint32_t len); uint8_t func_record_lfs_stat_set(uint8_t stat); uint8_t func_record_lfs_stat_get(void); /* Private defines -----------------------------------------------------------*/ #ifdef __cplusplus } #endif #endif /* FUNC_RECORD_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/