Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ff_gen_drv.h
00001 /** 00002 ****************************************************************************** 00003 * @file ff_gen_drv.h 00004 * @author MCD Application Team 00005 * @version V1.1.0 00006 * @date 22-April-2014 00007 * @brief Header for ff_gen_drv.c module. 00008 ****************************************************************************** 00009 * @attention 00010 * 00011 * <h2><center>© COPYRIGHT 2014 STMicroelectronics</center></h2> 00012 * 00013 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 00014 * You may not use this file except in compliance with the License. 00015 * You may obtain a copy of the License at: 00016 * 00017 * http://www.st.com/software_license_agreement_liberty_v2 00018 * 00019 * Unless required by applicable law or agreed to in writing, software 00020 * distributed under the License is distributed on an "AS IS" BASIS, 00021 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00022 * See the License for the specific language governing permissions and 00023 * limitations under the License. 00024 * 00025 ****************************************************************************** 00026 */ 00027 00028 /* Define to prevent recursive inclusion -------------------------------------*/ 00029 #ifndef __FF_GEN_DRV_H 00030 #define __FF_GEN_DRV_H 00031 00032 #ifdef __cplusplus 00033 extern "C" { 00034 #endif 00035 00036 /* Includes ------------------------------------------------------------------*/ 00037 #include "diskio.h" 00038 #include "ff.h" 00039 00040 /* Exported types ------------------------------------------------------------*/ 00041 00042 /** 00043 * @brief Disk IO Driver structure definition 00044 */ 00045 typedef struct 00046 { 00047 DSTATUS (*disk_initialize) (void); /*!< Initialize Disk Drive */ 00048 DSTATUS (*disk_status) (void); /*!< Get Disk Status */ 00049 DRESULT (*disk_read) (BYTE*, DWORD, BYTE); /*!< Read Sector(s) */ 00050 #if _USE_WRITE == 1 00051 DRESULT (*disk_write) (const BYTE*, DWORD, BYTE); /*!< Write Sector(s) when _USE_WRITE = 0 */ 00052 #endif /* _USE_WRITE == 1 */ 00053 #if _USE_IOCTL == 1 00054 DRESULT (*disk_ioctl) (BYTE, void*); /*!< I/O control operation when _USE_IOCTL = 1 */ 00055 #endif /* _USE_IOCTL == 1 */ 00056 00057 }Diskio_drvTypeDef; 00058 00059 /** 00060 * @brief Global Disk IO Drivers structure definition 00061 */ 00062 typedef struct 00063 { 00064 uint8_t is_initialized[_VOLUMES]; 00065 Diskio_drvTypeDef *drv[_VOLUMES]; 00066 __IO uint8_t nbr; 00067 00068 }Disk_drvTypeDef; 00069 00070 /* Exported constants --------------------------------------------------------*/ 00071 /* Exported macro ------------------------------------------------------------*/ 00072 /* Exported functions ------------------------------------------------------- */ 00073 uint8_t FATFS_LinkDriver(Diskio_drvTypeDef *drv, char *path); 00074 uint8_t FATFS_UnLinkDriver(char *path); 00075 uint8_t FATFS_GetAttachedDriversNbr(void); 00076 00077 #ifdef __cplusplus 00078 } 00079 #endif 00080 00081 #endif /* __FF_GEN_DRV_H */ 00082 00083 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 00084
Generated on Tue Jul 12 2022 20:10:41 by
