WILLY BAYOT / stm32_adafruit

Dependents:   TDEMNucleo

Embed: (wiki syntax)

« Back to documentation index

ff_gen_drv.c File Reference

ff_gen_drv.c File Reference

FatFs generic low level driver. More...

Go to the source code of this file.

Functions

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_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.

Author:
MCD Application Team
Version:
V1.1.0
Date:
22-April-2014
Attention:

© COPYRIGHT 2014 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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:
Numberof attached drivers.

Definition at line 94 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:
Returns0 in case of success, otherwise 1.

Definition at line 47 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:
Returns0 in case of success, otherwise 1.

Definition at line 71 of file ff_gen_drv.c.