STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Functions | Variables
ff_gen_drv.c File Reference

FatFs generic low level driver. More...

#include "ff_gen_drv.h"

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. More...
 
uint8_t FATFS_LinkDriver (Diskio_drvTypeDef *drv, char *path)
 Links a compatible diskio driver and increments the number of active linked drivers. More...
 
uint8_t FATFS_UnLinkDriverEx (char *path, uint8_t lun)
 Unlinks a diskio driver and decrements the number of active linked drivers. More...
 
uint8_t FATFS_UnLinkDriver (char *path)
 Unlinks a diskio driver and decrements the number of active linked drivers. More...
 
uint8_t FATFS_GetAttachedDriversNbr (void)
 Gets number of linked drivers to the FatFs module. More...
 

Variables

Disk_drvTypeDef disk = {{0},{0},{0},0}
 

Detailed Description

FatFs generic low level driver.

Author
MCD Application Team
Version
V1.3.0
Date
08-May-2015
Attention

© COPYRIGHT 2015 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 126 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
drvpointer to the disk IO Driver structure
pathpointer to the logical drive path
Return values
Returns0 in case of success, otherwise 1.

Definition at line 78 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
drvpointer to the disk IO Driver structure
pathpointer 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
Returns0 in case of success, otherwise 1.

Definition at line 49 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
pathpointer to the logical drive path
Return values
Returns0 in case of success, otherwise 1.

Definition at line 116 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
pathpointer to the logical drive path
lun: not used
Return values
Returns0 in case of success, otherwise 1.

Definition at line 90 of file ff_gen_drv.c.

Variable Documentation

Disk_drvTypeDef disk = {{0},{0},{0},0}

Definition at line 34 of file ff_gen_drv.c.