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.
Dependents: DISCO-F746NG_uSD Active-WolfMan_V2-5-All-Frank-Board-Functions_copy DISCO-F746NG_uSD DISCO-F746NG_uSD
ff_gen_drv.c File Reference
FatFs generic low level driver. More...
Go to the source code of this file.
Functions | |
| uint8_t | FATFS_LinkDriverEx (Diskio_drvTypeDef *drv, char *path, uint8_t lun) |
| Links a compatible diskio driver/lun id and increments the number of active linked drivers. | |
| uint8_t | FATFS_LinkDriver (Diskio_drvTypeDef *drv, char *path) |
| Links a compatible diskio driver and increments the number of active linked drivers. | |
| uint8_t | FATFS_UnLinkDriverEx (char *path, uint8_t lun) |
| Unlinks a diskio driver and decrements the number of active linked drivers. | |
| uint8_t | FATFS_UnLinkDriver (char *path) |
| Unlinks a diskio driver and decrements the number of active linked drivers. | |
| uint8_t | FATFS_GetAttachedDriversNbr (void) |
| Gets number of linked drivers to the FatFs module. | |
Detailed Description
FatFs generic low level driver.
- Version:
- V1.4.0
- Date:
- 23-December-2016
- Attention:
© COPYRIGHT 2016 STMicroelectronics
Redistribution and use in source and binary forms, with or without modification, are permitted, provided that the following conditions are met:
1. Redistribution of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of other contributors to this software may be used to endorse or promote products derived from this software without specific written permission. 4. This software, including modifications and/or derivative works of this software, must execute solely and exclusively on microcontroller or microprocessor devices manufactured by or for STMicroelectronics. 5. Redistribution and use of this software other than as permitted under this license is void and will automatically terminate your rights under this license.
THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file ff_gen_drv.c.
Function Documentation
| uint8_t FATFS_GetAttachedDriversNbr | ( | void | ) |
Gets number of linked drivers to the FatFs module.
- Parameters:
-
None
- Return values:
-
Number of attached drivers.
Definition at line 145 of file ff_gen_drv.c.
| uint8_t FATFS_LinkDriver | ( | Diskio_drvTypeDef * | drv, |
| char * | path | ||
| ) |
Links a compatible diskio driver and increments the number of active linked drivers.
- Note:
- The number of linked drivers (volumes) is up to 10 due to FatFs limits
- Parameters:
-
drv,: pointer to the disk IO Driver structure path,: pointer to the logical drive path
- Return values:
-
Returns 0 in case of success, otherwise 1.
Definition at line 97 of file ff_gen_drv.c.
| uint8_t FATFS_LinkDriverEx | ( | Diskio_drvTypeDef * | drv, |
| char * | path, | ||
| uint8_t | lun | ||
| ) |
Links a compatible diskio driver/lun id and increments the number of active linked drivers.
- Note:
- The number of linked drivers (volumes) is up to 10 due to FatFs limits.
- Parameters:
-
drv,: pointer to the disk IO Driver structure path,: pointer to the logical drive path lun : only used for USB Key Disk to add multi-lun management else the paramter must be equal to 0
- Return values:
-
Returns 0 in case of success, otherwise 1.
Definition at line 68 of file ff_gen_drv.c.
| uint8_t FATFS_UnLinkDriver | ( | char * | path ) |
Unlinks a diskio driver and decrements the number of active linked drivers.
- Parameters:
-
path,: pointer to the logical drive path
- Return values:
-
Returns 0 in case of success, otherwise 1.
Definition at line 135 of file ff_gen_drv.c.
| uint8_t FATFS_UnLinkDriverEx | ( | char * | path, |
| uint8_t | lun | ||
| ) |
Unlinks a diskio driver and decrements the number of active linked drivers.
- Parameters:
-
path,: pointer to the logical drive path lun : not used
- Return values:
-
Returns 0 in case of success, otherwise 1.
Definition at line 109 of file ff_gen_drv.c.
Generated on Tue Jul 12 2022 21:16:22 by
1.7.2