Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
sd_diskio.c File Reference
SD Disk I/O driver. More...
Go to the source code of this file.
Functions | |
DSTATUS | SD_initialize (void) |
Initializes a Drive. | |
DSTATUS | SD_status (void) |
Gets Disk Status. | |
DRESULT | SD_read (BYTE *buff, DWORD sector, BYTE count) |
Reads Sector(s) | |
DRESULT | SD_write (const BYTE *buff, DWORD sector, BYTE count) |
Writes Sector(s) | |
DRESULT | SD_ioctl (BYTE cmd, void *buff) |
I/O control operation. |
Detailed Description
SD Disk I/O driver.
- 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 sd_diskio.c.
Function Documentation
DSTATUS SD_initialize | ( | void | ) |
Initializes a Drive.
- Parameters:
-
None
- Return values:
-
DSTATUS,: Operation status
Definition at line 73 of file sd_diskio.c.
DRESULT SD_ioctl | ( | BYTE | cmd, |
void * | buff | ||
) |
I/O control operation.
- Parameters:
-
cmd,: Control code *buff,: Buffer to send/receive control data
- Return values:
-
DRESULT,: Operation result
Definition at line 155 of file sd_diskio.c.
DRESULT SD_read | ( | BYTE * | buff, |
DWORD | sector, | ||
BYTE | count | ||
) |
Reads Sector(s)
- Parameters:
-
*buff,: Data buffer to store read data sector,: Sector address (LBA) count,: Number of sectors to read (1..128)
- Return values:
-
DRESULT,: Operation result
Definition at line 110 of file sd_diskio.c.
DSTATUS SD_status | ( | void | ) |
Gets Disk Status.
- Parameters:
-
None
- Return values:
-
DSTATUS,: Operation status
Definition at line 91 of file sd_diskio.c.
DRESULT SD_write | ( | const BYTE * | buff, |
DWORD | sector, | ||
BYTE | count | ||
) |
Writes Sector(s)
- Parameters:
-
*buff,: Data to be written sector,: Sector address (LBA) count,: Number of sectors to write (1..128)
- Return values:
-
DRESULT,: Operation result
Definition at line 133 of file sd_diskio.c.
Generated on Tue Jul 12 2022 20:10:41 by
