MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
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... | |
DSTATUS nand_disk_initialize | ( | uint8_t | physicalDrive | ) |
physicalDrive | Physical drive number. |
STA_NOINIT | Failed. |
RES_OK | Success. |
DSTATUS nand_disk_status | ( | uint8_t | physicalDrive | ) |
physicalDrive | Physical drive number. |
STA_NOINIT | Failed. |
RES_OK | Success. |
DRESULT nand_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 nand_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 nand_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. |