/* 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 */
#if USE_FATFS_RECORDD
/* 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_init(void); //记录文件初始化
void func_record_fatfs_main(void const *argument); //文件操作主函数
void func_record_test(void);
uint32_t func_record_write(uint8_t *buf ,uint32_t len);
uint32_t func_record_read(uint8_t *buf ,uint32_t len);
uint32_t func_record_delete(uint8_t *buf,uint32_t len);
uint8_t func_record_fatfs_set_OK(uint8_t stat);
uint8_t func_record_fatfs_isOK(void);
/* Private defines -----------------------------------------------------------*/
#ifdef __cplusplus
}
#endif
#endif /* FUNC_RECORD_H */
#endif //-------------------USE_FATFS_RECORDD-----------------------//
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/