FatFs low level disk I/O module. More...
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 |
FatFs low level disk I/O module.
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.
Initializes a Drive.
pdrv | Physical drive number (0..) |
DSTATUS | Operation status |
I/O control operation.
pdrv | Physical drive number (0..) |
cmd | Control code |
*buff | Buffer to send/receive control data |
DRESULT | Operation result |
Reads Sector(s)
pdrv | Physical drive number (0..) |
*buff | Data buffer to store read data |
sector | Sector address (LBA) |
count | Number of sectors to read (1..128) |
DRESULT | Operation result |
Gets Disk Status.
pdrv | Physical drive number (0..) |
DSTATUS | Operation status |
Writes Sector(s)
pdrv | Physical drive number (0..) |
*buff | Data to be written |
sector | Sector address (LBA) |
count | Number of sectors to write (1..128) |
DRESULT | Operation result |
Disk_drvTypeDef disk |