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

Overview

nand Disk Function

DSTATUS nand_disk_initialize (uint8_t physicalDrive)
 Initializes nand disk. More...
 
DSTATUS nand_disk_status (uint8_t physicalDrive)
 Gets nand disk status. More...
 
DRESULT nand_disk_read (uint8_t physicalDrive, uint8_t *buffer, uint32_t sector, uint8_t count)
 Reads nand disk. More...
 
DRESULT nand_disk_write (uint8_t physicalDrive, const uint8_t *buffer, uint32_t sector, uint8_t count)
 Writes nand disk. More...
 
DRESULT nand_disk_ioctl (uint8_t physicalDrive, uint8_t command, void *buffer)
 nand disk IO operation. More...
 

Function Documentation

DSTATUS nand_disk_initialize ( uint8_t  physicalDrive)
Parameters
physicalDrivePhysical drive number.
Return values
STA_NOINITFailed.
RES_OKSuccess.
DSTATUS nand_disk_status ( uint8_t  physicalDrive)
Parameters
physicalDrivePhysical drive number.
Return values
STA_NOINITFailed.
RES_OKSuccess.
DRESULT nand_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 nand_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 nand_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.