MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Disk

Overview

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

Function Documentation

DSTATUS mmc_disk_initialize ( uint8_t  physicalDrive)
Parameters
physicalDrivePhysical drive number.
Return values
STA_NOINITFailed.
RES_OKSuccess.
DSTATUS mmc_disk_status ( uint8_t  physicalDrive)
Parameters
physicalDrivePhysical drive number.
Return values
STA_NOINITFailed.
RES_OKSuccess.
DRESULT mmc_disk_read ( uint8_t  physicalDrive,
uint8_t *  buffer,
uint32_t  sector,
uint8_t  count 
)
Parameters
physicalDrivePhysical drive number.
bufferThe data buffer pointer to store read content.
sectorThe start sector number to be read.
countThe sector count to be read.
Return values
RES_PARERRFailed.
RES_OKSuccess.
DRESULT mmc_disk_write ( uint8_t  physicalDrive,
const uint8_t *  buffer,
uint32_t  sector,
uint8_t  count 
)
Parameters
physicalDrivePhysical drive number.
bufferThe data buffer pointer to store write content.
sectorThe start sector number to be written.
countThe sector count to be written.
Return values
RES_PARERRFailed.
RES_OKSuccess.
DRESULT mmc_disk_ioctl ( uint8_t  physicalDrive,
uint8_t  command,
void *  buffer 
)
Parameters
physicalDrivePhysical drive number.
commandThe command to be set.
bufferThe buffer to store command result.
Return values
RES_PARERRFailed.
RES_OKSuccess.