STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Data Structures | Functions
ff_gen_drv.h File Reference

Header for ff_gen_drv.c module. More...

#include "diskio.h"
#include "ff.h"

Go to the source code of this file.

Data Structures

struct  Diskio_drvTypeDef
 Disk IO Driver structure definition. More...
 
struct  Disk_drvTypeDef
 Global Disk IO Drivers structure definition. More...
 

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

Detailed Description

Header for ff_gen_drv.c module.

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

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_LinkDriverEx ( Diskio_drvTypeDef drv,
char *  path,
BYTE  lun 
)
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,
BYTE  lun 
)