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

FatFs low level disk I/O module. More...

#include "diskio.h"
#include "ff_gen_drv.h"

Go to the source code of this file.

Functions

DSTATUS disk_status (BYTE pdrv)
 Gets Disk Status. More...
 
DSTATUS disk_initialize (BYTE pdrv)
 Initializes a Drive. More...
 
DRESULT disk_read (BYTE pdrv, BYTE *buff, DWORD sector, UINT count)
 Reads Sector(s) More...
 
DRESULT disk_write (BYTE pdrv, const BYTE *buff, DWORD sector, UINT count)
 Writes Sector(s) More...
 
DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void *buff)
 I/O control operation. More...
 
__weak DWORD get_fattime (void)
 Gets Time from RTC. More...
 

Variables

Disk_drvTypeDef disk
 

Detailed Description

FatFs low level disk I/O module.

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

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 diskio.c.

Function Documentation

DSTATUS disk_initialize ( BYTE  pdrv)

Initializes a Drive.

Parameters
pdrvPhysical drive number (0..)
Return values
DSTATUSOperation status

Definition at line 70 of file diskio.c.

DRESULT disk_ioctl ( BYTE  pdrv,
BYTE  cmd,
void *  buff 
)

I/O control operation.

Parameters
pdrvPhysical drive number (0..)
cmdControl code
*buffBuffer to send/receive control data
Return values
DRESULTOperation result

Definition at line 136 of file diskio.c.

DRESULT disk_read ( BYTE  pdrv,
BYTE buff,
DWORD  sector,
UINT  count 
)

Reads Sector(s)

Parameters
pdrvPhysical drive number (0..)
*buffData buffer to store read data
sectorSector address (LBA)
countNumber of sectors to read (1..128)
Return values
DRESULTOperation result

Definition at line 92 of file diskio.c.

DSTATUS disk_status ( BYTE  pdrv)

Gets Disk Status.

Parameters
pdrvPhysical drive number (0..)
Return values
DSTATUSOperation status

Definition at line 55 of file diskio.c.

DRESULT disk_write ( BYTE  pdrv,
const BYTE buff,
DWORD  sector,
UINT  count 
)

Writes Sector(s)

Parameters
pdrvPhysical drive number (0..)
*buffData to be written
sectorSector address (LBA)
countNumber of sectors to write (1..128)
Return values
DRESULTOperation result

Definition at line 114 of file diskio.c.

__weak DWORD get_fattime ( void  )

Gets Time from RTC.

Parameters
None
Return values
Timein DWORD

Definition at line 154 of file diskio.c.

Variable Documentation

Definition at line 34 of file ff_gen_drv.c.