MMC.read

Name
MMC.read

Description
It reads the opened file. Therefore you must before open it

Syntax
FRESULT MMC.read (void* buff, u16 btr, u16* br) /* buff = Pointer to the read buffer (NULL:Forward data to the stream)*/ /* btr = Number of bytes to read */ /* br = Pointer to number of bytes read; return br value can be < btr */

Return FRESULT : /* FR_OK (0) -> The function succeeded. */ /* FR_DISK_ERR (1) -> The function failed due to a hard error in the disk function, a wrong FAT structure or an internal error. */ /* FR_NOT_OPENED (5) -> The file has not been opened. */ /* FR_NOT_ENABLED (6) -> The volume has not been mounted. */