MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
MMC Disk Function | |
DSTATUS | mmc_disk_initialize (uint8_t physicalDrive) |
Initializes MMC disk. More... | |
DSTATUS | mmc_disk_status (uint8_t physicalDrive) |
Gets MMC disk status. More... | |
DRESULT | mmc_disk_read (uint8_t physicalDrive, uint8_t *buffer, uint32_t sector, uint8_t count) |
Reads MMC disk. More... | |
DRESULT | mmc_disk_write (uint8_t physicalDrive, const uint8_t *buffer, uint32_t sector, uint8_t count) |
Writes MMC disk. More... | |
DRESULT | mmc_disk_ioctl (uint8_t physicalDrive, uint8_t command, void *buffer) |
MMC disk IO operation. More... | |
DSTATUS mmc_disk_initialize | ( | uint8_t | physicalDrive | ) |
physicalDrive | Physical drive number. |
STA_NOINIT | Failed. |
RES_OK | Success. |
DSTATUS mmc_disk_status | ( | uint8_t | physicalDrive | ) |
physicalDrive | Physical drive number. |
STA_NOINIT | Failed. |
RES_OK | Success. |
DRESULT mmc_disk_read | ( | uint8_t | physicalDrive, |
uint8_t * | buffer, | ||
uint32_t | sector, | ||
uint8_t | count | ||
) |
physicalDrive | Physical drive number. |
buffer | The data buffer pointer to store read content. |
sector | The start sector number to be read. |
count | The sector count to be read. |
RES_PARERR | Failed. |
RES_OK | Success. |
DRESULT mmc_disk_write | ( | uint8_t | physicalDrive, |
const uint8_t * | buffer, | ||
uint32_t | sector, | ||
uint8_t | count | ||
) |
physicalDrive | Physical drive number. |
buffer | The data buffer pointer to store write content. |
sector | The start sector number to be written. |
count | The sector count to be written. |
RES_PARERR | Failed. |
RES_OK | Success. |
DRESULT mmc_disk_ioctl | ( | uint8_t | physicalDrive, |
uint8_t | command, | ||
void * | buffer | ||
) |
physicalDrive | Physical drive number. |
command | The command to be set. |
buffer | The buffer to store command result. |
RES_PARERR | Failed. |
RES_OK | Success. |